2
In the commandButton
of primefaces
we have u attribute ajax
which may be true
or false
. What effect does it have on submission? I am making a silly example where the user type a name and triggers the button, soon after the name entered is displayed. In this case only works if the ajax
is false
, because ?
<h:form>
<h:panelGrid columns="3">
<p:outputLabel value="Nome" />
<p:inputText id="nome" value="#{modelo.nome}"/>
<p:outputLabel id="resultado" styleClass="data" rendered="#{!empty modelo.nome}" value="#{modelo.nome}"/>
</h:panelGrid>
<p:commandButton id="su" value="Salvar" update="resultado" ajax="false"/>
</h:form>
Thanks for the explanation. Show
– Roknauta