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

how to get Object selected

 
Doan Long
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what that is supposed to mean.

JSF will automatically set the value of listUsersBean.currentUser before invoking listUsersBean.changeValue. You do not have to write your own code to get the selection value. The selection value will be the current value of listUsersBean.currentUser. Guaranteed.
 
Doan Long
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want using have update component other no submit
when the selection changes implement update values ​​in txtLoginName
 
Doan Long
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it no update when select item selectOneListbox for inputText
Demo

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keep the examples as short as possible. If they're too long, no one will take the trouble to read them.

Normally, when you submit a form, every input control on the form is also submitted. When using the f:ajax tag, you can code attributes on that tag that indicate that only selected controls should be submitted, instead of all of them.

Regardless, all submitted control values MUST be valid. If even one of them is not, then an error is returned and neither listeners nor action methods will be invoked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic