1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| <h:form id="form">
<p:panel id="panel" header="New Lotissement">
<p:messages id="msgs" />
<h:panelGrid columns="9">
<h:outputLabel for="name" value="name *" />
<p:inputText id="name" value="#{myBean.model.name}"
required="true" label="name" style="margin-left:87px;">
<f:validateLength minimum="2" />
</p:inputText>
<!-- <p:message for="designation" display="icon"/> -->
<h:outputLabel for="lastName" value="lastName *"
style="margin-left:21px;" />
<p:inputText id="lastName" value="#{myBean.model.lastName}"
label="lastName" required="true" style="margin-left:100px;">
<f:validateLength minimum="2" />
</p:inputText>
<h:panelGrid id="panelRadio" columns="2" style="margin-bottom:10px" cellpadding="5">
<h:outputText value="Type de Lot:" />
<p:selectOneRadio id="typePerson" value="#{myBean.model.type_lot}"
onchange="addNew(this.value);">
<f:selectItem itemLabel="Lot individuel "
itemValue="Lot individue " />
<f:selectItem itemLabel="Lot Collectif Equippement"
itemValue="Lot Collectif Equippement" />
</p:selectOneRadio>
</h:panelGrid>
<h:panelGrid id="panelNew">
</h:panelGrid>
<p:commandButton value="Save" update="panel"
action="#{myBean.save()}" rendered="true" />
</p:panel>
</h:form> |
Partager