我正在尝试将输入值传递给 jsf action/actionlistner,但遇到了一些问题:当我尝试这种方法时,我收到 EL 错误,说明 ( 无效:
<h:inputText binding="#{pageNoInput1 }" style="font-family:verdana;font-size:0.9em;" maxlength="4" size="4"/>
<a4j:commandLink style="font-family:verdana;font-size:0.9em; margin-left:5px;" value="GO" reRender="deviceList, messagesForm" actionListener="#{viewDevicesBean.goToPageNo(pageNoInput1.value)}" />
当我尝试这种方法时,我在后端 bean 中得到空值: event.getComponent().getAttributes().get("pageNo");
<h:inputText binding="#{pageNoInput1 }" style="font-family:verdana;font-size:0.9em;" maxlength="4" size="4"/>
<a4j:commandLink style="font-family:verdana;font-size:0.9em; margin-left:5px;" value="GO" reRender="deviceList, messagesForm" actionListener="#{viewDevicesBean.goToPageNo}">
<f:param value="#{pageNoInput1.value}" name="pageNo"/>
</a4j:commandLink>