Hi Martin,

sorry for late replying. Issues in another project prevented me from testing 
your hint.

Using ClientSideBootstrapTabbedPanel solved my problem completely.
I simply replaced "class MyAjaxTabbedPanel extends 
AjaxBootstrapTabbedPanel<ITab>"
with 
"class MyAjaxTabbedPanel extends ClientSideBootstrapTabbedPanel<ITab> "
and removed unnecessary methods.
Then, wicket gave me useful hints related to a ClassCastException and to a 
missing call to tabbedPanel.setOutputMarkupId(true) .

Thank you for quick response.

Regards,
Ulrich Knaack


> -----Ursprüngliche Nachricht-----
> Von: Martin Grigorov [mailto:mgrigo...@apache.org]
> Gesendet: Mittwoch, 3. Mai 2017 15:04
> An: users@wicket.apache.org
> Betreff: Re: Modal dialog, form validation in AjaxBootstrapTabbedPanel
> 
> Hi,
> 
> I think I see the problem.
> When using AjaxBootstrapTabbedPanel the tabs' content is loaded one at a
> time. This makes it hard to validate the complete form because not all
> fields are available at any time.
> You may need to use
> https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/wicket-
> 7.x/bootstrap-
> core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/ta
> bs/ClientSideBootstrapTabbedPanel.java
> instead. It will switch the tabs
> via JavaScript and make the validation once you use the submit button.
> If this doesn't help you then I'll try to take a look at your application
> after work!
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to