I want to render the same button that execute the ajax call
<p:commandButton id="load"
actionListener="#{bean.Valid}"
rendered="#{bean.renderButton}"
value="Load Object"
ajax="true"
update="load,group,ip1">
</p:commandButton>
I try to do that via the p:commanButton update and also via RequestContext.getCurrentInstance() in the bean but both of them are not working
RequestContext requestContext = RequestContext.getCurrentInstance();
requestContext.update("mainForm:load");
Any advice what I am missing here ?
Thanks