PPR - Simple
This examples demonstrates the basic ajax update feature.
This examples demonstrates the basic ajax update feature.
<h:form>
<h:panelGrid columns="4" cellpadding="5">
<h:outputLabel for="name" value="Name:" style="font-weight:bold"/>
<p:inputText id="name" value="#{pprBean.firstname}" />
<p:commandButton value="Submit" update="display"/>
<h:outputText value="#{pprBean.firstname}" id="display" />
</h:panelGrid>
</h:form>
package org.primefaces.examples.view;
import java.io.Serializable;
public class PPRBean implements Serializable {
private String firstname;
public String getFirstname() {
return firstname;
}
public void setFirstname(String firstname) {
this.firstname = firstname;
}
}
Running PrimeFaces-4.0-SNAPSHOT on Mojarra-2.1.22
