Showing posts with label IceFaces Framework. Show all posts
Showing posts with label IceFaces Framework. Show all posts

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?

IceFaces Intro

My first use of this framework is at the end of 2008, during my team research on Java web technology. If you like to use asp.net with C# because it is simple and straightforward. You click the button on aspx page, C# page is opened for you with action method created automatically. I think this is the framework you need to look if you want a simple, easy to use JSF ajax framework. My friend who introduce this framework to me said that this is the best framework he ever meet. He said that the Java web become more easy and excited with this framework. But you need to use Netbeans IDE so you can feel like you do coding on asp.net

Icefaces provide full sample and source code on their website http://www.icefaces.org/main/home/. If you use Netbeans 6.5 please installed Icefaces plugin in Plugin windows.