You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by wicketnan <tr...@hotmail.com> on 2010/09/14 09:26:04 UTC

submit form with popup window

Hi, everyone, 

I found out the submit link doesn't support popupwindowsettings. i need a
blank popup window with loading messages like "Please wait" after clicking
submit link.  

onsubmit(){
//read the value in the input field
//show popup window
//execute setResponsePage...
}

Please advise me. thanks/ 
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538547.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: submit form with popup window

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Replace replace "on too"="on top" on previous e-mail.

On Tue, Sep 14, 2010 at 10:48 AM, Ernesto Reinaldo Barreiro
<re...@gmail.com> wrote:
> You could do this as follows:
>
> -add a veil that blocks the page (so that user cannot do something
> else while file is generated)
> -add a panel (div) on too of the veil. This panel could have an
> AjaxTimer that checks the server every few seconds to see if excel has
> been already generated (or display some progress info if not).
> -once the file is generated update the (div) panel with a link for
> downloading the file.
>
> Ernesto
>
>
> On Tue, Sep 14, 2010 at 10:36 AM, wicketnan <tr...@hotmail.com> wrote:
>>
>> Thanks, i am trying the one you suggested.
>>
>> i know it sounds weird,  the user need to click the submit click to download
>> the excel, a pop up widow with loading messages should show before the excel
>> file is ready (taking some time). i could manage to implement this using
>> PopupSettings with general link, but it fails to submit the form.
>> --
>> View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538633.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

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


Re: submit form with popup window

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
You could do this as follows:

-add a veil that blocks the page (so that user cannot do something
else while file is generated)
-add a panel (div) on too of the veil. This panel could have an
AjaxTimer that checks the server every few seconds to see if excel has
been already generated (or display some progress info if not).
-once the file is generated update the (div) panel with a link for
downloading the file.

Ernesto


On Tue, Sep 14, 2010 at 10:36 AM, wicketnan <tr...@hotmail.com> wrote:
>
> Thanks, i am trying the one you suggested.
>
> i know it sounds weird,  the user need to click the submit click to download
> the excel, a pop up widow with loading messages should show before the excel
> file is ready (taking some time). i could manage to implement this using
> PopupSettings with general link, but it fails to submit the form.
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538633.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: submit form with popup window

Posted by wicketnan <tr...@hotmail.com>.
Thanks, i am trying the one you suggested. 

i know it sounds weird,  the user need to click the submit click to download
the excel, a pop up widow with loading messages should show before the excel
file is ready (taking some time). i could manage to implement this using
PopupSettings with general link, but it fails to submit the form.    
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538633.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: submit form with popup window

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
May I ask why do you need the popup? Can you describe your use case?

Ernesto

On Tue, Sep 14, 2010 at 9:43 AM, wicketnan <tr...@hotmail.com> wrote:
>
> continued from above: it's more like to show a busy indicator in a pop up
> window, instead of on the page itself.
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538568.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: submit form with popup window

Posted by wicketnan <tr...@hotmail.com>.
continued from above: it's more like to show a busy indicator in a pop up
window, instead of on the page itself.
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538568.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: submit form with popup window

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
You could  use a "veil" on your page to show some server side activity
is taking place. See [1] or search the list for "busy indicator".

Ernesto

1-https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html

On Tue, Sep 14, 2010 at 9:26 AM, wicketnan <tr...@hotmail.com> wrote:
>
> Hi, everyone,
>
> I found out the submit link doesn't support popupwindowsettings. i need a
> blank popup window with loading messages like "Please wait" after clicking
> submit link.
>
> onsubmit(){
> //read the value in the input field
> //show popup window
> //execute setResponsePage...
> }
>
> Please advise me. thanks/
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538547.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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