Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SelectBooleanCheckbox dynamic id ?  RSS feed

 
jack catler
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should the following setting of 'id' work, or do I have to use binding ?

<h:selectBooleanCheckbox id="#{mybean.theId}" value=" {mybean.selected}"/>

// the getter..
public String getTheId() { return this.Id;}

There is an ocean of talk on this, but none 'seem' to go straight to the point.

I just want to set the id at runtime from the bean, would prefer this way than then binding.

Thanks!

[ April 12, 2006: Message edited by: jack catler ]
[ April 12, 2006: Message edited by: jack catler ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!