blay
6 Dec 2010, 11:06 AM
Maybe it´s a so basic question, but I hadn´t realized of this until now.
When I create a new widget which extends a LayoutContainer or a ContentPanel, etc, sometimes I defined a new constructor, sometimes override the onRender method. Both cases it seems to work right, but I know I´m not doing it as it should be done; because I suppouse each method has it pourpouse. So, can anyone explain me the differences between using one method or the other one? Or at least, what onRender should be used for and what the constructor should be used for
Thanks
When I create a new widget which extends a LayoutContainer or a ContentPanel, etc, sometimes I defined a new constructor, sometimes override the onRender method. Both cases it seems to work right, but I know I´m not doing it as it should be done; because I suppouse each method has it pourpouse. So, can anyone explain me the differences between using one method or the other one? Or at least, what onRender should be used for and what the constructor should be used for
Thanks