mojarra
mojarra copied to clipboard
View state still disappear with Ajax on JSF 2.3.5 (spec 790)
Based on https://arjan-tijms.omnifaces.org/p/jsf-23.html "Updating multiple forms via AJAX", it should be possible to update multiple form at the same time.
It only work if you specify the form on the render attribute (f:ajax). If I add the form on the server side, the form doesn't get the new view state.
FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add("form");
I cannot add dynamically a new form to render on the server side which is not optimal.