Re: [Wicket-user] Form submit to modal window issues

2007-01-29 Thread Shawn Tumey

Thank you for the assistance Matej. I did not realize I had to explicitly do
the target.addComponent(myForm);

Everything is now working as desired.

Thanks again,

Shawn



On 1/27/07, Matej Knopp <[EMAIL PROTECTED]> wrote:


When the validation fails the onSubmit method is not called at all.
There's an onError method that is called in this case.

-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


Re: [Wicket-user] Form submit to modal window issues

2007-01-27 Thread Matej Knopp
When the validation fails the onSubmit method is not called at all. 
There's an onError method that is called in this case.

-Matej

Shawn Tumey wrote:
> When validation should fail and the feedback panel should show up.
> 
> *INFO: 
> *Initiating Ajax POST request on 
> /inl/secure/app/page?wicket:interface=:0:panel:reqForm:submit:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=
>  
> 0.393144868947922
> *INFO: *Invoking pre-call handler(s)...
> *INFO: *Received ajax response (69 characters)
> *INFO: *
> 
> *INFO: *Response parsed. Now invoking steps...
> * INFO: *Response processed successfully.
> *INFO: *Invoking post-call handler(s)...
> 
> When the modal windows is shown because validation passes.
> 
> *INFO: 
> *Initiating Ajax POST request on 
> /inl/secure/app/page?wicket:interface=:0:panel:reqForm:submit:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=
>  
> 0.9417643576134753
> *INFO: *Invoking pre-call handler(s)...
> *INFO: *Received ajax response (1254 characters)
> *INFO: *
>  id="panel_reqForm_classification" > >
> *INFO: *Response parsed. Now invoking steps...
> *INFO: *Response processed successfully.
> *INFO: *Invoking post-call handler(s)...
> *INFO: *Calling posponed function...
> 
> *INFO: 
> *Initiating Ajax GET request on 
> /inl/secure/app/page?wicket:interface=:0:panel:reqForm:classification::IBehaviorListener&wicket:behaviorId=0&random=0.08781822351433555
> *INFO: *Invoking pre-call handler(s)...
> *INFO: *Received ajax response (130 characters)
> *INFO: *
>  encoding="UTF-8"?>
>  
> 
> *INFO: *Response parsed. Now invoking steps...
> *INFO: *Chanel busy - postponing...
> *INFO: *Response processed successfully.
> *INFO: *Invoking post-call handler(s)...
> *INFO: *Calling posponed function...
> *INFO: *
> *INFO: 
> *Initiating Ajax GET request on 
> /inl/secure/app/page?wicket:interface=:0:panel:reqForm:classification::IBehaviorListener&wicket:behaviorId=1&random=
>  
> 0.9822901756880449
> *INFO: *Invoking pre-call handler(s)...
> *INFO: *Received ajax response (69 characters)
> *INFO: *
> 
> *INFO: *Response parsed. Now invoking steps...
> * INFO: *Response processed successfully.
> *INFO: *Invoking post-call handler(s)...
> 
> Note - I'll be leaving work soon and may not be able to provide useful 
> responses until next week.
> 
> Thank you for your assistance
> 
> On 1/26/07, *Matej Knopp* <[EMAIL PROTECTED] > 
> wrote:
> 
> One more thing. Can you please post also the content of javascript
> console? And can is the onSubmit handler of AjaxSubmitButton really
> called?
> 
> -Matej
> 
> Matej Knopp wrote:
>  > 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
>  >>
>  >> 
>  >>
>  >>
>  >> 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]
>   

Re: [Wicket-user] Form submit to modal window issues

2007-01-26 Thread Shawn Tumey

When validation should fail and the feedback panel should show up.

*INFO: *
Initiating Ajax POST request on
/inl/secure/app/page?wicket:interface=:0:panel:reqForm:submit:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=
0.393144868947922
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (69 characters)
*INFO: *

*INFO: *Response parsed. Now invoking steps...
*INFO: *Response processed successfully.
*INFO: *Invoking post-call handler(s)...

When the modal windows is shown because validation passes.

*INFO: *
Initiating Ajax POST request on
/inl/secure/app/page?wicket:interface=:0:panel:reqForm:submit:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=
0.9417643576134753
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (1254 characters)
*INFO: *


*INFO: *Response parsed. Now invoking steps...
*INFO: *Response processed successfully.
*INFO: *Invoking post-call handler(s)...
*INFO: *Calling posponed function...

*INFO: *
Initiating Ajax GET request on
/inl/secure/app/page?wicket:interface=:0:panel:reqForm:classification::IBehaviorListener&wicket:behaviorId=0&random=
0.08781822351433555
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (130 characters)
*INFO: *

*INFO: *Response parsed. Now invoking steps...
*INFO: *Chanel busy - postponing...
*INFO: *Response processed successfully.
*INFO: *Invoking post-call handler(s)...
*INFO: *Calling posponed function...
*INFO: *
*INFO: *
Initiating Ajax GET request on
/inl/secure/app/page?wicket:interface=:0:panel:reqForm:classification::IBehaviorListener&wicket:behaviorId=1&random=
0.9822901756880449
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (69 characters)
*INFO: *

*INFO: *Response parsed. Now invoking steps...
*INFO: *Response processed successfully.
*INFO: *Invoking post-call handler(s)...

Note - I'll be leaving work soon and may not be able to provide useful
responses until next week.

Thank you for your assistance

On 1/26/07, Matej Knopp <[EMAIL PROTECTED]> wrote:


One more thing. Can you please post also the content of javascript
console? And can is the onSubmit handler of AjaxSubmitButton really
called?

-Matej

Matej Knopp wrote:
> 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
>>
>> 
>>
>>
>> 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] >
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
>>
>>
>>

>>

Re: [Wicket-user] Form submit to modal window issues

2007-01-26 Thread Matej Knopp
One more thing. Can you please post also the content of javascript 
console? And can is the onSubmit handler of AjaxSubmitButton really called?

-Matej

Matej Knopp wrote:
> 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
>>
>> 
>>
>>
>> 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] > 
>> 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
> 


-
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


Re: [Wicket-user] Form submit to modal window issues

2007-01-26 Thread Matej Knopp
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
> 
> 
> 
> 
> 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] > 
> 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


Re: [Wicket-user] Form submit to modal window issues

2007-01-26 Thread Shawn Tumey

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




   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]> 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


Re: [Wicket-user] Form submit to modal window issues

2007-01-26 Thread Matej Knopp
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

Shawn Tumey wrote:
> Hello,
> 
> I have a form that after validation needs to open a modal window. This 
> modal window basically acts as a very complex confirmation box. If the 
> user cancels out of the modal window, then they should be returned to 
> the form. However, if they submit / continue from the modal window, then 
> the model the form is based on gets forwarded to the next page.
> 
> I can not seem to trigger the modal window after the form validates.
> 
> Any help would be appreciated.
> 
> Regards,
> 
> -- 
> Shawn Tumey
> Cofounder
> MT Web Productions LLC
> www.mtwebproduction.com 
> 
> 
> 
> 
> -
> 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


[Wicket-user] Form submit to modal window issues

2007-01-26 Thread Shawn Tumey

Hello,

I have a form that after validation needs to open a modal window. This modal
window basically acts as a very complex confirmation box. If the user
cancels out of the modal window, then they should be returned to the form.
However, if they submit / continue from the modal window, then the model the
form is based on gets forwarded to the next page.

I can not seem to trigger the modal window after the form validates.

Any help would be appreciated.

Regards,

--
Shawn Tumey
Cofounder
MT Web Productions LLC
www.mtwebproduction.com
-
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