Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dynamic values for ID  RSS feed

 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

is it possible to give dynamic values for id attributes ?




if i pass a value "1" to this jsf page, can i suffix the id attribute with 1 , so id="newBorrowerPage" will become id="newBorrowerPage1" and the rest too. When i tried scriplet , the jsf page shows the error message " The content of elements must consist of well-formed character data or markup.."
Not sure if im in the right direction.

Please let me know if there is any way to make it work !

Thanks,
Rajeev.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found that using binding attribute its possible to set the ID of UIComponents. But i have need set the id of <f:subview> dynamically, and subview is not a component.

Is it possible or am i trying to do something which is impossible ? Any help or suggestion on this is appretiated !

Thanks,
Rajeev.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!