When the user chooses the expert radio button, I would like to render an additional outputText with "expert" as value. I tried ajax, with event,listener and render attributes but nothing works.
This is my form:
<h:form>
<h:selectOneRadio id="rb" value="#{account.dtype}">
<f:selectItem itemId="user" itemValue="user" itemLabel="User" />
<f:selectItem itemId="admin" itemValue="admin" itemLabel="Admin" />
<f:selectItem itemId="expert" itemValue="expert" itemLabel="Expert" />
<f:ajax execute="@this" render="choice"/>
</h:selectOneRadio>
<br />
<h:outputLabel id="choice" value="#{account.dtype}" rendered="#{account.dtype}=='expert'" />
</h:form>