Posts

Showing posts with the label java server faces

SETTING UP JSF

If you have knowledge on java web applications it is very easy to set up Java server faces application.If you have  normal web application follow the below steps to convert it into a jsf app. An entry in the web application's web.xml to process all the requests by JSF controller servlet called Faces Servlet and a certain URL pattern is specified.              <!-- Faces Servlet -->     <servlet>         <servlet-name>Faces Servlet</servlet-name>         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>         <load-on-startup> 1 </load-on-startup>     </servlet>     <!-- Faces Servlet Mapping -->     <servlet-mapping>         <servlet-...

ORIGIN OF JSF

Before jsf was introduced there were many frameworks which gained popularity (Spring,Struts etc).All of them offered many benefits explicitly by following MVC2 approach.Despite of those benefits they  lacked something i.e a robust user-interface-oriented framework .We need  better way to handle the view tier. To address this need,several leading software vendors including SUN,IBM,Oracle and BEA met through the Java Community Process in may 2001 and given  detailed specification for building J2EE thin client web applications whose primary goal is to provide a simple way to build user interfaces for java web applications.This result in Java Specification Request JSR #127.Here are the design goals of JSF taken from the java community process. Create a standard GUI component framework which can be leveraged by development tools to make it easier for tool users to both create high quality GUIs and manage the GUI's connections to application behavior. Define...