• Post Reply Bookmark Topic Watch Topic
  • New Topic

confusion in binding property + setId method of componenet

 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a page in which i have binded on componenet (checkBox) to a backing bean component.



and in the backing Bean i am calling a function on click of a button




and in the console i am getting the following output everytime



According to me the id should change after the click event but it is not changing. I don't know why? Can someone explain me this in detail?

Thanks in advance.
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain this to me.....
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The view is already created. To get this to work, you should to recreate the complete view. But that's a bad practice.

Why would you ever change the ID programmatically? For which problem did you think that this is the solution? Take a step back and elaborate about that problem and we could suggest you a better solution.
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Bauke. Actually this is not a part of some problem I was trying my hand on binding property and just tried to change the id and it did't work.

Thanks for replying.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!