This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

fields not getting updated.

 
Higgledy Smith
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you insure the fields get refreshed after a Listener event fires in the backing bean? For instance, in the code below is a data table with a row selecter. When the user selects a row, the handleRowSelection method in the backing bean fires. This method sets the selected row's values to a variable named selectedUser. In the same view, the variable, selectedUser, is tied to a series of inputtext fields grouped to be a form. This form contains additional fields about the selectedUser. This works. But when the user goes back to the original table and selects a different row, the form does not update correctly (especially the multi checkbox component). Why?

Data Table:


Form:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic