Nothing apparent. Can you post the markup too?

Shawn Tumey wrote:
> Thank you Matej, I was aware of this, but I still don't see what I am 
> doing wrong. I believe I have included the relevant code.
> 
> With the below code the form does not display the feedback panel for 
> components that failed validation like it should. If all the fields 
> validate, the modalWindow is shown.
> 
> What am I missing?
> 
> The Wicket Ajax Debug tool shows the ajax request completing normally
> 
> <input type="submit" wicket:id="submit"/>
> 
> 
>         final ModalWindow classification = new 
> ModalWindow("classification");
>         classification.setPageMapName("classification");
>         classification.setPageCreator(new ModalWindow.PageCreator()
>         {
>             public Page createPage()
>             {
>                 return new ClassificationPage(reqModel);
>             }
>         });
>         classification.setWindowClosedCallback(new 
> ModalWindow.WindowClosedCallback()
>         {
>             public void onClose(AjaxRequestTarget target)
>             {
>                
>             }
>         });
>         classification.setCloseButtonCallback(new 
> ModalWindow.CloseButtonCallback()
>         {
>             public boolean onCloseButtonClicked(AjaxRequestTarget target)
>             {
>                 return true;
>             }
>         });
>        
>         final Form form = new Form("reqForm",formModel);
>         form.setOutputMarkupId(true);
>         form.add(classification);
> 
> form.add(new AjaxSubmitButton("submit", form) {
>             protected void onSubmit(AjaxRequestTarget target, Form form) {
>                 classification.show(target);
>             }
>         });
> 
> ---
> 
> On 1/26/07, *Matej Knopp* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 
> wrote:
> 
>     Hi
> 
>     I'm not sure what exactly are you trying to accomplish. But in any case,
>     remember that the modal window is an ajax component, thus to display it
>     you need an ajax request.
> 
>     So if you want to submit the form and open the ModalWindow afterwards,
>     you need to use AjaxSubmitButton or AjaxSubmitLink.
> 
>     -Matej
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to