Tuesday, February 17, 2009

JSF : How to use the Switcher?

Use of the Switcher :

The switcher component dynamically decides which facet component should be rendered. It has two properties. The switcher will render the facet matching "facetName".

Step-1 : Create JSP page with Dropdown. Use Switcher with Facet.


--



Step-2 : Change autoSubmit and valuePassThrough property as True




Note : Switcher should be in any of the UI Component which have PartialTrigger Attribute.




Step-3 : Write some Code.