PDA

View Full Version : doComponentLayout removing data attribute from button



jgostylo
17 Aug 2011, 2:31 PM
I was having an issue where I was using an XTemplate to populate button content. I would run button.update(myData) and through that button.data would get the value of myData. Then as soon as I called doComponentLayout on the parent panel, the button would no longer have a data member.

As a hack, I did find out that I could set a new member for the button (I called it passed_data) and that field would survive doComponentLayout. (button.passed_data = myData)