Monday, September 14, 2009

My First Icefaces

I want to show you how easy to use Icefaces framework on Netbeans. It is not easy as developing an application on Microsoft application. Based on experience , you should know that it was difficult working on JSF web. That the nature of free software. But Icefaces framework has change your mind that developing java web will be easy and straight forward.

You'll need these two items:

IDE: Netbeans 6.5.1 + Bundled tomcat

Plugin (install if not exist):
- ICEfaces design-time and run-time libraries
- ICEfaces project integration
- VisualWeb ICEfaces


1. When creating new project please select VisualWeb ICEfaces framework

2. Add one button and textbox to the page. Image below tell you a thousand words.




3. Right click on button and textbox. Select Add Binding Attribute

4. Double click on button. Put one line that display value on textbox. See below


public String button1_action() {

//return null means stay on the same page

inputText1.setValue(“aaaaa”);

return null;

}

5. Click run to see the output on browser. Done


See you can switch your working windows easily (Design, JSP, Java). Also you can drag drop object to the page and change it location. Like a visual studio.net is it?

2 comments: