• Post Reply Bookmark Topic Watch Topic
  • New Topic

value and binding attribute

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we assign the components value to backing bean property using value attribute, the components value which user enters gets assigned to backing bean property.
But in case where we assign the components instance to backing bean property using binding attribute, what value gets assigned to backing bean property?
I mean does the bean property contains the value which user enters and if so what is the difference between the two attributes?

Kindly help me.
 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"value" uses an EL expression to connect a tag to a bean data property.

"binding" uses an EL expression to connect a tag to a bean UIComponent property. This injects the compiled version of the tag into the bean where its properties can be manipulated. One of those properties is its "value" property.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!