Assembling the components in JSF non JSP enviroments

Top  Previous  Next

The components may be used in JSF non JSP enviroments.

 

To do this the below steps should be accomplished.

 

1) Implement JSF ViewHandler.

See the sample of ViewHandler implementation in testingapplication.NonJSPViewHandler.java .

 

2) Define new ViewHandler in faces-config.xml

 

<view-handler>

    testingapplication.NonJSPViewHandler

</view-handler-->

 

3) Enter any valid url to activate faces servlet in your browser :

http://localhost:8080/webgalilefaces/test.faces

 

As the result, the components will be rendered inside ViewHandler implementation.