This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes JSF and the fly likes how to get Object selected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how to get Object selected " Watch "how to get Object selected " New topic
Author

how to get Object selected

Doan Long
Greenhorn

Joined: Jul 26, 2012
Posts: 20

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16303
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Doan Long
Greenhorn

Joined: Jul 26, 2012
Posts: 20
I want using have update component other no submit
when the selection changes implement update values ​​in txtLoginName
Doan Long
Greenhorn

Joined: Jul 26, 2012
Posts: 20
it no update when select item selectOneListbox for inputText
Demo

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16303
    
  21

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to get Object selected