In JSF 2.0, both <h:button /> and <h:commandButton /> tags are used to render HTML input element of type button, with different mechanism to handle the navigation. 1. JSF h:commandButton example The "h:commandButton" tag is released…
The immediate attribute in JSF is commonly misunderstood. If you don't believe me, check out Stack Overflow. Part of the confusion is likely due to immediate being available on both input (i.e.. <h:inputText />) and command (i.e. <h:commandButton…
This Blog is a compilation of various methods of passing Request Parameters in JSF (2.0 +) (1) f:viewParam One of the features added in JSF 2.0 is "View Parameters"; Simply speaking it allows adding "Query string" or "Request Par…
In JSF, <h:selectOneMenu /> tag is used to render a dropdown box – HTML select element with "size=1" attribute. //JSF... <h:selectOneMenu value="#{user.favCoffee1}"> <f:selectItem itemValue="Cream Latte" itemLa…
In JSF, <h:selectManyListbox /> tag is used to render a multiple select listbox – HTML select element with "multiple" and "size" attribute. //JSF... <h:selectManyListbox value="#{user.favFood1}"> <f:selectItem…
In JSF, <h:selectOneListbox /> tag is used to render a single select listbox – HTML select element with "size" attribute. //JSF... <h:selectOneListbox value="#{user.favYear1}"> <f:selectItem itemValue="2000" it…