我正在尝试根据下拉列表中选择的值渲染输入框。
我已将输入框放在panelGrid下面,如下所示
IdleTicketsChecker.Data.Test11Entities objModel = new Data.Test11Entities();
List<GeResult_Result> objTicketList =ExecuteCustomStoredProc<GetIdleTicketsByMinutes_Result>("GeResult", " @DeptID",
new SqlParameter("DeptID", DeptID)).ToList();
我有如下的selectOneMenu
<h:panelGrid id="pnl1" styleClass="Container90"
columnClasses="Wid20, Wid80" columns="2" cellpadding="5">
<p:outputLabel for="clientRegAcessToken1"
value="Client Registration Token"
rendered="#{clientRegistration.regSecretShown}" />
<p:inputText id="clientRegAcessToken1"
rendered="#{clientRegistration.regSecretShown}"
value="#{clientRegistration.regToken}" />
</h:panelGrid>
bean中的方法定义(ViewScoped)如下所示
<p:selectOneMenu styleClass="w250"
id="idTokenSignedResponseAlg"
value="#{clientRegistration.client.idTokenSignedResponseAlg}"
>
<f:selectItems
value="#{clientRegistration.getJwsAlgorithms()}" var="algo"
itemValue="#{algo}" itemLabel="#{algo.name}" />
<p:ajax update="ViewClientRegistration:pnl1"
listener="#{clientRegistration.onHmacSigningKeySelected}"/>
</p:selectOneMenu>
我看到更改值是发送网络请求。但是,我没有看到在服务器端执行该方法。有什么我想念的吗?