This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 15962
    
  19

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: 15962
    
  19

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.
 
jQuery in Action, 2nd edition
 
subject: how to get Object selected
 
Similar Threads
f:ajax doesn't render.
Using dropDown in jsf
a4j:support in h:datatable
<h:selectOneListbox with dynamic values submit error
JSF managed bean question