This content has been marked as final.
Show 2 replies
-
1. Re: Identifying the ID of the JSF component that triggered an ajax request
ilya_shaikovsky Mar 25, 2010 3:53 AM (in response to jonathan2009)<h:form id="myform"> <h:panelGrid columns="2"> <h:inputText id="myinput" value="#{userBean.job}"> <a4j:support onsubmit="alert(this.id);" event="onkeyup" reRender="outtext" action="#{userBean.action}"/> </h:inputText> <h:outputText id="outtext" value="#{userBean.name}" /> </h:panelGrid> </h:form>
-
2. Re: Identifying the ID of the JSF component that triggered an ajax request
nbelaevski Mar 25, 2010 6:58 AM (in response to ilya_shaikovsky)Hi,
Not all AJAX requests have associated DOM elements (e.g. a4j:jsFunction). Anyway, you can try adding a4j:queue and use its event handlers.