setter of selectOneMenu – jsf [duplicate]

This question already has an answer here:

The setter of bean.name is not called after loading the xhtml page. But if i do a value changes in the Combobox the setter is called or if submit the setter is also called. But i Need to call the setter of bean.name if the xhtml page by loading, because i have a second selectoneMenu which Need the value of bean.name. Can i set the setter of bean.name by loading the xhtml page ?

<h:selectOneMenu value="#{bean.name}">
     <f:selectItems value="#{bean.names}" />
</h:selectOneMenu>


Source: ajax

Leave a Reply