Hi!
What I want to achieve is to update a form's input elements by selecting a specific value from a select input. This should act like a template mechanism.
My idea was to define some select input like <rich:inplaceSelect> with an a4j:support component like this:
<rich:inplaceSelect defaultLabel="Load from template" value="#{mybean.fmtString}"> <f:selectItem itemValue="###0" itemLabel="1234"/> <f:selectItem itemValue="###0,00" itemLabel="1234,56"/> <f:selectItem itemValue="#.##0" itemLabel="1.234"/> <f:selectItem itemValue="#.##0,00" itemLabel="1.234,56"/> <a4j:support event="onchange" action="#{mybean.updateFormat()}" reRender="someComponents" /> </rich:inplaceSelect>
The Ajax4JSF forums are closed, please ask you question on the RichFaces Users forum.
Thanks,
Nick