I'm currently creating a custom component which I would like to update after an ajax request. In my case, after a submit, messages could appear to inform the user whether or not the input is correct.
Code: Select all
<h:panelGrid id="grid" style="padding-top:20px" >
<ctb:myCustomComponent value="#{genericFormController}" showInlineErrorMessages="true">
<f:facet name="save">
<p:commandButton value="First Save" ajax="true" action="#{genericFormController.save}" update="grid"></p:commandButton>
</f:facet>
</ctb:myCustomComponent >
</h:panelGrid>
<p:commandButton value="Second Save" action="#{genericFormController.save}" update="grid" ajax="true"/>
Am I doiing something wrong?
Thanks in advance,
Koen