Overriding The JSF Renderers

Override the JSF component renderers needs just to do the following:
1. Create the Renderer class.
2. Register the Renderer class in the faces-config.xml.
In the example, I will make the simple scenario. It is extending the JSF Label component (Assume that you want to make your JSF labels start with *).
Following the described steps above
1. Create the Renderer class :


2. Register the Renderer class in the faces-config.xml.

3. Write the test JSP page.

4. This is the output.


I hope that this post is useful.




0 comments: