Using JSF2 and richfaces 4.
I have two regions in my form with multiple regions. I want to call render for another region. How can I do it?
<h:form>
<a4j:region id="rg_1">
<h:inputText id="field1" value="#{bean.field1}"/>
</a4j:region>
<a4j:region id="rg_2">
<a4j:commandLink action="#{mybean.resetBean} render="region1" />
</a4j:region>
</h:form>
h:commandLink does not have
renderattribute ,f:ajaxdoes…If you want to re render rg_1 from within rg_2 without page refresh (ajax)
do the following
also make sure that
mybean.resetBeanmethod is avoidmethod or returnsnull