Hi,
i have a modalPanel with a request bean and if the user is typing, the bean should updated. I mean the setter of an attribute(voteId) should be called. The demo example is working using a4j:support, but in my case there is no update. can somebody help please?
<f:view> <a4j:form> . some content . </a4j:form> <rich:modalPanel id="mp" minHeight="200" minWidth="450" height="200" width="500" zindex="2000"> <f:facet name="header"> <h:outputText value="An Terminabstimmung teilnehmen" /> </f:facet> <f:facet name="controls"> <h:graphicImage value="/images/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" /> </f:facet> <a4j:keepAlive beanName="openVote" /> <h:form id="panelForm"> <h:panelGrid border="0" columns="1" style="font-size:1.1em;"> <h:outputText style="white-space: nowrap" value="Geben Sie die Id ein und klicken Sie auf OK." /> <h:inputText id="idInput" value="#{openVote.voteId}"> <a4j:support event="onkeyup" reRender="okText" immediate="true"/> </h:inputText> </h:panelGrid> <h:panelGrid border="0" columns="2" style="font-size:1.1em;"> <a4j:commandLink style="white-space: nowrap" value="close" onclick="Richfaces.hideModalPanel('mp')"/> <h:outputLink id="outPutLinkId" value="${facesContext.externalContext.requestContextPath}/pages/vote.jsf"> <f:param id="voteParam" name="voteId" value="#{openVote.voteId}" /> <h:outputText id="okText" value="ok #{openVote.voteId}" /> </h:outputLink> </h:panelGrid> </h:form> </rich:modalPanel> </f:view>
remove immediate="true". Its usage skips updating model.