TreeTable selection and inputText

UI Components for JSF
Post Reply
tommytcchan
Posts: 10
Joined: 21 Sep 2011, 23:56

02 Nov 2011, 00:13

Hi team,

I am running the primefaces labs demo on PF 3 M4 version and I have a question on this page:

ui/treeTableContextMenu.jsf

If I changed the outputText of the elements inside the dialog to inputText and then click the view button to bring up the dialog after opening a dialog previously with a different row selected, then it doesn't display the updated information. It still shows the row data from the first selection in the dialog.

Does anyone have any insight into this?

Thanks,

Tom

tommytcchan
Posts: 10
Joined: 21 Sep 2011, 23:56

02 Nov 2011, 18:20

found the solution. If anyone is interested, define an ajax event to update the panel you need it to update.

inside the <p:treeTable>:

<p:ajax event="select" update=":form:myPanel />

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 68 guests