JSF 2.0 & Richfaces 4 : problème show/hide d'un composant avec une checkbox
Bonjour,
Je vous explique mon problème dont je n'arrive pas à rasoudre via des heures de recherche sur internet... Voilà j'ai une page jsf qui contient le code ci-dessous. Je voudrais qu'en cliquant sur mon checkbox on affiche le panelGroup.
Code:
1 2 3 4 5 6 7 8 9 10 11
|
<h:selectBooleanCheckbox value="#{creerPersonne6.constituerValoriserVotrePatrimoine}">
<a4j:ajax event="click" render="test" />
</h:selectBooleanCheckbox>
<h:panelGroup id="test" layout="block">
<h:outputText value="#{msg['HorizonDinvestissement']} " />
<h:selectOneMenu label="" value="2025">
<f:selectItem itemValue="2025" />
</h:selectOneMenu>
</h:panelGroup> |
et voici mon backingBean :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
@ManagedBean(name = "creerPersonne6")
@ViewScoped
public class CreerPersonne6Bean implements Serializable{
private static final long serialVersionUID = -5854196076435301983L;
private boolean constituerValoriserVotrePatrimoine;
public boolean isConstituerValoriserVotrePatrimoine() {
return constituerValoriserVotrePatrimoine;
}
public void setConstituerValoriserVotrePatrimoine(
boolean constituerValoriserVotrePatrimoine) {
this.constituerValoriserVotrePatrimoine = constituerValoriserVotrePatrimoine;
}
} |
Si une personne pourrait me résoudre le problème. MErci !!!!