sebfz1 / wicket-jquery-ui

jQuery UI & Kendo UI integration in Wicket
http://www.7thweb.net/wicket-jquery-ui/
Other
92 stars 58 forks source link

CustomTooltipBehavior already starts rendering in onBind() / which let Wicket log warnings #354

Open Patrick1701 opened 1 year ago

Patrick1701 commented 1 year ago

Hi Sebastien, have a look at CustomTooltipBehavior#bind().

The call this.render(this.newContent(CONTENT_ID)) is too early and leads to wicket warning logs "Tried to retrieve a localized string for a component that has not yet been added to the page."

Would it be possible to move the code in onConfigure() or onBeforeRender()?

best regards Patrick

Patrick1701 commented 1 year ago

I have a local custom sub-class of your CustomTooltipBehavior. First test result: It looks like, setting the option "content" can be done in your beforeRender(Component component).

kind regards Patrick

Patrick1701 commented 1 year ago

No, not safe. Must be onConfigure().