• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

how to get Object selected  RSS feed

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

 
Bartender
Posts: 19731
92
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
Bartender
Posts: 19731
92
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!