Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Patrick1701 opened this issue Jan 24, 2023 · 2 comments

Comments

@Patrick1701
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

No, not safe. Must be onConfigure().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant