Friday, February 19, 2010

What icefaces??

where open source Ajax developers can learn, share, and contribute information and ideas to a growing community of enterprise Ajax JSF developers. ICEfaces.org provides a wide range of development and support resources to benefit all Java developers looking to build rich J2EE Ajax applications. Source code and pre-bundled IDE tool integrations are available for download. Numerous tutorials, on-line support, user forums and sample code are all easily accessible to help get you up and developing open source Ajax applications that much quicker.

To get more explain about this new technology. refer to icefaces website :

We need to use some tools :
1. Eclipse IDE for Java EE Developers v3.5 (Galileo)
This bundle includes required Eclipse WTP v3.1 (Web Tool Platform). It can be downloaded from
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/galileor
2. ICEfaces- 1.8–Eclipse- 3.5.0-plugins- v3.6.1.zip
This is core package of ICEfaces Eclipse Integration. It can be downloaded from
http://www.icefaces.org/main/downloads/os-downloads.iface.


JSF is using for building server-side user interfaces that will make web application development even easier.


I will explain how to start the JSF..
  1. You must locate the latest stable version of Tomcat from website. To minimize installation complexities, choose the "zip" file.
  2. You need to save the zip file (named something like gina-tomcat-5.5.7.zip) to your computer.
  3. Then unzip the file into a directory of your choice (such as /usr/local or c:\). The program is contained in a subdirectory named something like jakarta-tomcat-5.5.7.
  4. Then download the latest version of the JSF Reference Implementation from http://java.sun.com/j2ee/javaserverfaces/download.html
  5. Save the zip file (named something like jsf-1_1_01.zip) to your computer.
  6. Unzip the file into a directory of your choice (such as /usr/local or c:\). The program is contained in a subdirectory named something like jsf-1_1_01.
    NOTE: For your own sanity,
    do not unzip into a directory containing spaces (such as Program Files or My Documents).
  7. Copy all JAR files files from the lib subdirectory of your JSF installation (such as c:\jsf-1_1_01\lib) to the common/lib subdirectory of Tomcat
  8. Copy the following two JAR files from the webapps/jsp-examples/WEB-INF/lib subdirectory of your Tomcat installation.
    • jstl.jar
    • standard.jar
  9. to get a detail and more explaination, refer this website http://www.horstmann.com/

the facade

The Facade design pattern simplifies complex APIs by providing a simplified interface to a complex subsystem.


Below is example of using the facade in application :

package MyProjectAPI;

import java.util.Vector;

public class MyFacade
{
ProjectAPI api;
public MyFacade()
{
api = new ProjectAPI();
}
public void addUserLogin(Project_Bean bean)
{
api.addUserLogin(bean);
}
public Vector getUserLogin()
{
return api.getUserLogin();
}
}

;;