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

Select2 Does not work inside TabbedPanel #123

Open
antonellyb opened this issue Jul 14, 2021 · 0 comments
Open

Select2 Does not work inside TabbedPanel #123

antonellyb opened this issue Jul 14, 2021 · 0 comments

Comments

@antonellyb
Copy link

Hi,
Wicket Select2 control does not work inside TabbedPanel element.
Pbobalbly it's because it incorrectly generates URL to query TextChoiceProvider
For example the following:

http://localhost:8080/card?6-IResourceListener-parentForm-form-tabs-panel-project&term=&page=1&wicket-ajax=true&wicket-ajax-baseurl=http%3A%2F%2Flocalhost%3A8080%2Fcard&_=1626250953250

The id of the Select2 control here is "project"
The id of the panel containing the element is "panel"
Bot instead of looking for "panel" on a particular tab, it looks for it inside "tabs" element.

Here is how I creare this element

    List<ITab> tabs = new ArrayList<>();
    tabs.add(new DocumentCardBasicInfoPanel(form)));
    tabs.add...
    form.add(tabbedPanel = new TabbedPanel<ITab>("tabs", tabs));

I use APEX v. 7.4.0 and Select2 v. 3.2

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