Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Administer applications using wsadmin.sh


Manage JavaServer Faces implementations using wsadmin.sh

JavaServer Faces (JSF) is a user interface framework or API that eases the development of Java based web applications. The product supports JSF at a runtime level, which reduces the size of web applications because runtime binaries do not need to be included in your web application. Use the wsadmin tool to set the JSF implementation as the Sun Reference 1.2 implementation or the Apache MyFaces 2.0 project.

The JSF runtime:


Procedure

  1. Start wsadmin.sh.
  2. Determine whether to use JSF with the applications.

    Review specification documentation for JSF 2.0 to determine whether to use JSF with the applications. Then, determine which implementation to use. We can use the Sun Reference Implementation or the open source Apache MyFaces project. MyFaces is the default implementation.

  3. Set the JSF implementation.

    Use the modifyJSFImplementation command to set the JSF implementation.

    • The following example sets the Sun Reference Implementation for JSF:
      AdminTask.modifyJSFImplementation('myApplication', '[-implName "SunRI1.2"]')
      
    • The following example sets the MyFaces implementation for JSF:
      AdminTask.modifyJSFImplementation('myApplication', '[-implName "MyFaces"]')
      

  4. Recompile the JSP if you switched implementations and use precompiled JSP that contain JSF.


JavaServer Faces
JSP class loading settings


Related


JSFCommands command group
JSP and JSF option settings

+

Search Tips   |   Advanced Search