You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by DmitryM <ns...@aol.com> on 2010/09/03 06:16:45 UTC
Wicket AjaxButton multiple responses
Hello, everybody
I have a long-running Ajax request (about 7 seconds) and would like to
notify user about its progress.
A preferred way would be to push multiple ajax responses back to the
Response (for the current request).
Is there any way to do that?
I would prefer to avoid using 'push' from the server since it doesn't
support Comet anyway.
I can do a kind of lame implementation via JavaScript (to display fake
process status updates) but would prefer something corresponding to the
actual request processing status.
Any other suggestions?
Regards,
Dmitry
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-AjaxButton-multiple-responses-tp2525096p2525096.html
Sent from the Wicket - User 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: Wicket AjaxButton multiple responses
Posted by DmitryM <ns...@aol.com>.
Igor,
I responded in another topic and I'm closing this one.
Basically, simple HTML streaming into IFrame just works for me.
The topic about 'live' html streaming is here (for anyone interested):
http://apache-wicket.1842946.n4.nabble.com/Live-streaming-on-Link-click-td2533475.html#a2533475
http://apache-wicket.1842946.n4.nabble.com/Live-streaming-on-Link-click-td2533475.html#a2533475
Thanks,
Dmitry
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-AjaxButton-multiple-responses-tp2525096p2539294.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: Wicket AjaxButton multiple responses
Posted by DmitryM <ns...@aol.com>.
Igor, one more thing:
I can probably 'hack' the system and try to get to the current request's
response output stream and even make up a chunk of XML emulating an ajax
response.
But most likely the client Wicket javascript would not allow for multiple
XML chunks returned from one request.
Am I right here?
-Dmitry
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-AjaxButton-multiple-responses-tp2525096p2525151.html
Sent from the Wicket - User 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: Wicket AjaxButton multiple responses
Posted by DmitryM <ns...@aol.com>.
Thanks for the immediate response.
But that's not really what I was asking for. =(
I didn't really want to start a session-attached thread on the server and
then poll it for the status.
I would really appreciate if the AjaxButton.onSubmit allowed for several XML
responses to be pushed down the response output stream to be picket up in
the browser.
I would push some Javascript calls which would update the page to indicate
the request processing progress.
That would save on requests (only one request would be made to the server).
I appreciate the fact it's like AjaxStreaming and may not be supported
consistently by all browsers. =(
Right now I'm only concerned about WebKit (mobile Safari).
Regards,
Dmitry
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-AjaxButton-multiple-responses-tp2525096p2525149.html
Sent from the Wicket - User 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: Wicket AjaxButton multiple responses
Posted by Igor Vaynberg <ig...@gmail.com>.
search this list for ajaxpoller
-igor
On Thu, Sep 2, 2010 at 9:16 PM, DmitryM <ns...@aol.com> wrote:
>
> Hello, everybody
>
> I have a long-running Ajax request (about 7 seconds) and would like to
> notify user about its progress.
> A preferred way would be to push multiple ajax responses back to the
> Response (for the current request).
>
> Is there any way to do that?
> I would prefer to avoid using 'push' from the server since it doesn't
> support Comet anyway.
>
> I can do a kind of lame implementation via JavaScript (to display fake
> process status updates) but would prefer something corresponding to the
> actual request processing status.
> Any other suggestions?
>
> Regards,
> Dmitry
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-AjaxButton-multiple-responses-tp2525096p2525096.html
> Sent from the Wicket - User 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