jsf 1.1 - Passing input value as paramter to action or actionlistner
I'm trying to pass a input value to a jsf action/actionlistner and am
having some problems with it: When I try this method, I get EL error
saying something about ( is not valid:
<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)}" />
When I try this method, I'm getting null value in backend 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>
No comments:
Post a Comment