Last active
June 6, 2016 11:11
-
-
Save oliviermarin/4eb5222b1082fde177d63c75004672ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xhtml | Face : | |
<p:row> | |
<p:column> | |
<p:outputLabel for="zone-geographique" | |
value="#{messages['operationimmobiliere.zone.geographique']} : " /> | |
</p:column> | |
<p:column> | |
<p:selectOneRadio id="zone-geographique" | |
value="#{operationImmobiliereFace.codeZoneGeographique}"> | |
<p:ajax listener="#{operationImmobiliereFace.onChangeZoneGeographique}" /> | |
<f:selectItems value="#{operationImmobiliereFace.allZonesGeographiques}" | |
var="zoneGeographique" | |
itemLabel="#{zoneGeographique.libelle}" | |
itemValue="#{zoneGeographique.code}"/> | |
</p:selectOneRadio> | |
</p:column> | |
</p:row> | |
Java | View : | |
// attribut | |
private String codeZoneGeographique; | |
// listener | |
public void onChangeZoneGeographique() { | |
LOGGER.info(String.format("code de la zone geographique : %s", this.codeZoneGeographique)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment