probleme initialisation d'un h:selectOneRadio
salut
j'utilise un selectOneRadio pour selectionner mon niveau de logging
tout va bien sauf pour l'initaialisation du selectOneRadio .
je veut l'initialiser à setInfoLevel
ma page jsp:
Code:
1 2 3 4 5 6 7 8
| <h:selectOneRadio id="myRadio" valueChangeListener="#{servicesOperations.modifierLevel}"
value="#{servicesOperations.choixLogLevel}" onclick="submit()">
<f:selectItem itemValue="setDebugLevel" itemLabel="debug"/>
<f:selectItem itemValue="setInfoLevel" itemLabel="info"/>
<f:selectItem itemValue="setWarnLevel" itemLabel="warn"/>
<f:selectItem itemValue="setErrorLevel" itemLabel="error"/>
<f:selectItem itemValue="setFatalLevel" itemLabel="fatal"/>
</h:selectOneRadio> |
mon bean est:
Code:
1 2 3 4 5 6 7 8 9 10 11
|
public class ServicesOperations {
private String choixLogLevel="setInfoLevel";
...
public String getChoixLogLevel() {
return choixLogLevel;
}
public void setChoixLogLevel(String choixLogLevel) {
this.choixLogLevel = choixLogLevel;
} |