I'm new to PrimeFaces and I got very interested in the capabilities of the framework, so I decided to test it to be replaced by RichFaces in an on-going project using SEAM 2.2 and JSF 1.2 in a JBOSS server. I tried to do something very common, which is updating a region, like that:
Code: Select all
<h:form id="main">
Language:
<h:selectOneMenu value="#{localeSelector.localeString}">
<f:selectItems value="#{localeSelector.supportedLocales}"/>
</h:selectOneMenu>
<p:commandButton value="Update" action="#{localeSelector.select}" update="@form" />
<table cellspacing="6" border="0">
<tr>
<td>
#{messages['usuario.conta']}:
<h:inputText value="#{credentials.username}" style="width:120px;" />
</td>
</tr>
<tr>
<td>
#{messages['usuario.password']}:
<h:inputSecret value="#{credentials.password}" style="width:120px;" />
</td>
</tr>
<tr>
<td>
<h:selectBooleanCheckbox id="rememberMe" value="#{rememberMe.enabled}"/>
#{messages['login.rememberme']}
</td>
</tr>
<tr>
<td></td>
<td><h:commandButton id="btnOk" value="#{messages['form.enter']}" action="#{identity.login}" /></td>
</tr>
</table>
</h:form>
Is this the right way to update a region with HTML code? Am I missing something?
Thanks and cheers,
Ricardo