getting source id from p:ajax

UI Components for JSF
Post Reply
lordpixel
Posts: 134
Joined: 17 Jun 2010, 17:46

14 Jun 2011, 12:58

Hi all
I've an inputText with ajax event on onchange....

Code: Select all

<h:inputText id="TX_Text" value="#{ceDett.comm}" size="13">
          <p:ajax event="change" process="TX_Text" update="TX_Text"
                                            listener="#{cefoglio.ricercaComm(ceDett.pmCefoglioPK)}"
                                            oncomplete="alert(sourceID???)" />
</h:inputText>
The inputText is in a dataTable so the id changes in every row.
I need to get the source ID of the inputText from the oncomplete event of the p:ajax.
Some idea???

Thanks!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests