Search code examples
formsjsf-2primefaces

PrimeFaces elements that need h:form to be updated


I need list of primefaces elements that need to be wraped by <h:form> in order to be updated by any action of <p:ajax>
some primeface elements even if they have id and in <p:ajax update="thisID"> it still needs an <h:form> with an id in ordered to be updated so which elements need <h:form> and whick not


Solution

  • Every component submitting/receiving Content from/to a backing bean needs to be wrapped by <h:form>.

    So everything you want to update or every Button / Link setting something needs to be inside a form. Also this isn't a Primefaces thing. This rules apply for normal JSF too.