Wednesday, November 15, 2006

Tips on IE6 and IE7

With the release of Internet Explorer 7 the rendering engine of the most widely used browser has changed. Some of our customers reported display issues with our controls. Some of them were bugs in our controls (both in the internal rendering implementation and skins) other were problems with custom defined skins or page layout. In 5 cases out of 10 the problem was due to one of the following reasons:

  1. IE7 no longer accepts CSS attributes starting with underscore. Using underscores was a widely used CSS hack to circumvent rendering issues in IE6. Here is a quick example to illustrate the underscore hack:

    The following CSS rule would be applied in IE6 (the background would be red) but wont be applied in IE7 (background stays white):

    <style>
    .myDiv
    {
    _background-color: red;
    }
    </style>

    <div class=myDiv>Test Content</div>
  2. Width and height are now interpreted according the W3C specification they fix the size of an element and it cannot grow. In IE6 width and height were treated as min-widh and min-height from the W3C specification. In IE6 an element whose width and height properties are set would stretch to accommodate its content (provided the content exceeds the specified dimensions).

You can find here a KB article with more detailed info and screenshots.

Get more information

Can't find what you're looking for? Try Google Search!
Google
 
Web eshwar123.blogspot.com

Tuesday, November 14, 2006

ICEFaces powerful AJaX JSF extension framework

ICEfaces is a profoundly powerful extension framework for JavaServer Faces which provides excellent Ajax integration with no heavy lifting. Implemented as a JSF RenderKit, you can get started with ICEfaces in your JSF apps quickly and easily. That is the beauty of standards-based development, isn't it?

In addition to releasing as open source, ICEsoft has also created ICEfaces.org, a new community site to focus on ICEfaces development. You can download the full ICEfaces package, check out their demos and component showcase, and participate in support forums for the tools.


ICEFaces powerful AJaX JSF extension framework

 

 

 


This is a big day for JSF. I know all eyes are on Sun because of yesterday's news about GPL Java, but trust me that this is also important news which you don't want to overlook. ICEsoft and ICEfaces are very cool, and as open source ICEfaces is more attractive than ever.

Get more information

Can't find what you're looking for? Try Google Search!
Google
 
Web eshwar123.blogspot.com

Java Robot class

Java.awt.Robot class is used to take the control of mouse and keyboard. Once you get the control, you can do any type of operation related to mouse and keyboard through your java code. This class is used generally for test automation.

This sample code will show the use of Robot class to handle the keyboard events. If you run this code and open a notepad then this code will write ‘hi budy’ in the notepad.
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;

public class RobotExp {

public static void main(String[] args) {

try {

Robot robot = new Robot();
// Creates the delay of 5 sec so that you can open notepad before
// Robot start writting
robot.delay(5000);
robot.keyPress(KeyEvent.VK_H);
robot.keyPress(KeyEvent.VK_I);
robot.keyPress(KeyEvent.VK_SPACE);
robot.keyPress(KeyEvent.VK_B);
robot.keyPress(KeyEvent.VK_U);
robot.keyPress(KeyEvent.VK_D);
robot.keyPress(KeyEvent.VK_Y);

} catch (AWTException e) {
e.printStackTrace();
}
}
}

Get more information

Can't find what you're looking for? Try Google Search!
Google
 
Web eshwar123.blogspot.com

Hide user accounts in Windows XP

The Windows XP Welcome screen. Pretty pictures for each user account. What a nice thought on Microsoft's part. The only trouble is - I want to create an administrator account, and not have others tempted to try getting into it while they are on my computer.

The welcome screen displays all of the local users on the system, except the built-in administrator account that was created during setup. If we want to hide a specific user from the list, we need to create a special value under this registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows
NT\CurrentVersion\Winlogon\SpecialAccounts\UserList

Under this key you simply create a new DWORD value - the name matches the users name exactly, and the value is one of the following (Decimal format)

0 - Hides the user just from the welcome screen
1 - The user is shown

Know more

Can't find what you're looking for? Try Google Search!
Google
 
Web eshwar123.blogspot.com

Monday, November 13, 2006

Stikkit a Sticky notes to the browser

Stikkit is a beauty web service: It's sticky notes in your browser.

Stikkit replaces the traditional yellow sticky note with a hyper-powered web version, 3M and Moleskine be damned. Anything that you'd put on sticky notes or in a notebook -- phone numbers, names, appointments, reminders -- can be typed into the site's bare bones interface.

We've seen digital sticky notes before. Mac OS X and Windows have stickies on the desktop, and websites Nottr (which Scott reviewed this morning) give you a solution to those "Gotta write this down" moments. But Stikkit extends the basic functionality of those tools in an innovative way.

As you're typing a name and contact information, for instance, Stikkit will give you a little alert at the bottom of the screen that says "Stikkit thinks this is a(n) peep" (meaning people, as in "one of my peeps"). The service can auto-recognize dates and times, contact information and to do lists, and then store them under the corresponding category. There's also a category for bookmarks, so if your stikkit is just a URL and a description, Stikkit files it under bookmarks.

Stikkits can be tagged with keywords for easy filing and they can be shared with other stikkit users. Other users can comment on your stikkit and save it as their own.

Bookmarking is extended through the Stikkit bookmarklet for your browser. When you're browsing around and you see a page you want to remember, share or make a note about, click the Stikkit! bookmarklet and a little stikkit box opens up. Annotate, save, and move on. I like that you create the stikkit in an Ajax box, so you never have to leave the page you're on.

The app has its own shorthand that you have to learn. I had to go into the FAQ to learn how to apply tags to a stikkit. There are commands, or "hints" that you have to use -- tagging is "tag as" or the @ sign. Also, the category recognition isn't perfect. For example, if you type "yesterday" or "tomorrow" or "saturday" next to a time, Stikkit won't match the proper date with the time. It will just assume your appointment is today unless you give it a hard date. Or, again, use the shorthand.

Even with its youthful faults, Stikkit is very cool. It works as a notepad, a bookmark service, a calendar, a contacts book. It's really anything you want it to be, and in that respect, it reminded me of SBook and other open-ended apps with seemingly limitless uses.

Much like del.icio.us, I can see people using it as a sort of novelty at first, then gradually realizing that it's ruling their lives.

I first saw the product at the Launch Pad event at this week's Web 2.0 Summit. I remember thinking to myself, "Oh, that's cool. I should make a note to check that out." The irony is that, had I already signed up for Stikkit's public beta, I wouldn't have had to open up my notebook and actually make a note with a pen. I'm such a stooge.

Get more information

Can't find what you're looking for? Try Google Search!
Google
 
Web eshwar123.blogspot.com