• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is binding in following respect

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) what is binding in following respect

<h:selectManyListbox id="list" value="#{optionBean.optionSelected}" >
<f:selectItems value="#{optionBean.optionList}"></f:selectItem>
</h:selectManyListbox>

If getOptionlist returns the ArrayList of SelectItems then optionSelected should get SelectItem object whichever is selected this object will have value and label both fields...
But it returns null ....rather if the optionSelected is made String type it returns ....

What is binding attribute of these tags ..it is present for almost all tags ....how it works

Thanks
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The 'binding' attribute allows you instant access to the desired UIComponent inside the backing bean. It is useful if you want to get/set a bit more than only the value.
 
reply
    Bookmark Topic Watch Topic
  • New Topic