Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)
JSFCommands command group
We can use Jython to display and modify the JavaServer Faces (JSF) implementation.
Use the following command to administer JSF:
listJSFImplementation
The listJSFImplementation command displays the JSF implementation and version for a specific application.
Target object
Specify the name of the application of interest. (String, required)
Required parameters None.
Return valueThe command displays the JSF implementation and version. For example, if the command returns "SUNRI1.2", then JSF uses version 1.2 of the Sun Reference Implementation.
Batch example...
- Jython string:
AdminTask.listJSFImplementation('application1')
- Use Jython list:
AdminTask.listJSFImplementation('application1')
Interactive example...
### Jython
AdminTask.listJSFImplementation('-interactive')
modifyJSFImplementation
The modifyJSFImplementation command modifies the JSF implementation for a specific application.
Target object
Specify the name of the application of interest. (String, required)
Required parameters
-implName
Name of the implementation to use. Specify SUNRI1.2 to use the Sun Reference 1.2 Implementation, or specify MyFaces to use the Apache MyFaces 2.0 project implementation. By default, applications use MyFaces. (String, required)
Return valueThe command does not return output.
Batch mode example usage
- Jython string:
AdminTask.modifyJSFImplementation('-implName MyFaces')
- Use Jython list:
AdminTask.modifyJSFImplementation('-implName', 'MyFaces')
Interactive example...
### Jython
AdminTask.modifyJSFImplementation('-interactive')
JavaServer Faces
JSP class loading settings
Manage JavaServer Faces implementations using wsadmin.sh
Administer applications using wsadmin.sh
Related
JSP and JSF option settings