我有四个位置可供选择,显示为“selectOneRadio”。当我选择一个位置时,当我单击命令链接之一时,bean 会得到更新。
<ui:composition template="/WEB-INF/templates/BasicTemplate.xhtml">
<ui:define name="content">
<h:form>
<h:commandLink action="#{wrapper.goBack}" value="GESTERN"></h:commandLink>
---------
<h:commandLink action="#{wrapper.goForward}" value="MORGEN"></h:commandLink>
<br />
<h:selectOneRadio id="locationSelection" value="#{wrapper.actualLocation}" >
<f:selectItems value="#{wrapper.allLocations}" var="actualLocation" ></f:selectItems>
</h:selectOneRadio>
</h:form>
</ui:define>
</ui:composition>
当我想在单击单选按钮时立即更改支持 bean 时,我必须更改什么?
非常感谢任何帮助。