wicket-select2 icon indicating copy to clipboard operation
wicket-select2 copied to clipboard

Select2 Does not work inside TabbedPanel

Open antonellyb opened this issue 3 years ago • 0 comments

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

antonellyb avatar Jul 14 '21 15:07 antonellyb