You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alan O'Leary <al...@gmail.com> on 2004/07/28 12:47:51 UTC

Feedback for long operations

Hello,
    I am currently evaluating Tapestry for an reporting based
application (built on top of Spring and Hibernate).
    Its a large learning curve but what each layer gives me is great.
For the Web/Client tier I am evaluating Tapestry alongside JSF. At the
moment I really like Tapestry and have a nice demo web site up and
running...

However, since this is a reporting application some operation take a
bit of time.... and I simply want to present the user with a page or
feedback that says " Processing please wait....." or throw up an
animated gif to show indeterminate progress...

The problem I have is (while waiting for the Tapestry in Action book
to arrive) is being a relative newbie to the internals of Tapestry...

I'd like simply to do something like

// code
cycle.activate("PleaseWaitPage");
// do stuff that takes a while
cycle.activate("ChartPage");


My chart page is currently working (JFreeChart  png generated by
spring from data in the database ) but it takes a bit of time for long
reports....

Thanks in advance
-Alan

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Feedback for long operations

Posted by RW...@boystown.com.au.



No.  We also use IE and the animation works fine after a submit.

Best Regards,
Roland Winter
Programmer.
Boystown
P.O. Box 2000
Milton QLD 4064
Australia
rwinter@boystown.com.au
Phone: +61 7 3867 1219
Fax: +61 7 3868 1599
URL: http://www.boystown.com.au/

Glen Stampoultzis <gs...@iinet.net.au> wrote on 29/07/2004 12:36:14:

>
> At 10:29 AM 29/07/2004, you wrote:
>
>
>
>
> >Hi,
> >
> >We usually use a bit of dynamic HTML for this incorporated into the page
> >initiating the long process.
> >
> >
> >Here's a cut back version the HTML.
> >
> >
> >
> >All that happens on the submit is that we make a DIV visible that
displays
> >an animated GIF until the next page is sent back to the brower.
> >
>
> I've found that IE stops animated gifs when a form is submitted.  Do you
> not have this problem?
>


#####################################################################################
This e-mail message has been scanned for viruses by our email server and cleared.
#####################################################################################

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Feedback for long operations

Posted by Glen Stampoultzis <gs...@iinet.net.au>.
At 10:29 AM 29/07/2004, you wrote:




>Hi,
>
>We usually use a bit of dynamic HTML for this incorporated into the page
>initiating the long process.
>
>
>Here's a cut back version the HTML.
>
>
>
>All that happens on the submit is that we make a DIV visible that displays
>an animated GIF until the next page is sent back to the brower.
>

I've found that IE stops animated gifs when a form is submitted.  Do you 
not have this problem?


Re: Feedback for long operations

Posted by RW...@boystown.com.au.



Hi,

We usually use a bit of dynamic HTML for this incorporated into the page
initiating the long process.


Here's a cut back version the HTML.


<html>
<head>
<script language="javascript">
function displayLoading () {
  document.all["loading"].style.pixelLeft = 100;
  document.all["loading"].style.pixelTop = 100;
  document.all["loading"].style.visibility="visible";
  return true;
}
</script>

</head>

<body>
  <div id='loading' style="visibility: hidden; position: absolute">
    <img src="Please Wait Image.gif">
  </div>

<form>

<input type="submit" value="Submit Long Process" onClick="
displayLoading();">
</form>


</body>
</html>

All that happens on the submit is that we make a DIV visible that displays
an animated GIF until the next page is sent back to the brower.


Best Regards,
Roland Winter
Programmer.
Boystown
P.O. Box 2000
Milton QLD 4064
Australia
rwinter@boystown.com.au
Phone: +61 7 3867 1219
Fax: +61 7 3868 1599
URL: http://www.boystown.com.au/


                                                                           
             Alan O'Leary                                                  
             <alanoleary@gmail                                             
             .com>                                                      To 
                                       tapestry-user@jakarta.apache.org    
             28/07/2004 20:47                                           cc 
                                                                           
                                                                   Subject 
             Please respond to         Feedback for long operations        
             "Tapestry users"                                              
             <tapestry-user@ja                                             
             karta.apache.org>                                             
                                                                           
                                                                           
                                                                           




Hello,
    I am currently evaluating Tapestry for an reporting based
application (built on top of Spring and Hibernate).
    Its a large learning curve but what each layer gives me is great.
For the Web/Client tier I am evaluating Tapestry alongside JSF. At the
moment I really like Tapestry and have a nice demo web site up and
running...

However, since this is a reporting application some operation take a
bit of time.... and I simply want to present the user with a page or
feedback that says " Processing please wait....." or throw up an
animated gif to show indeterminate progress...

The problem I have is (while waiting for the Tapestry in Action book
to arrive) is being a relative newbie to the internals of Tapestry...

I'd like simply to do something like

// code
cycle.activate("PleaseWaitPage");
// do stuff that takes a while
cycle.activate("ChartPage");


My chart page is currently working (JFreeChart  png generated by
spring from data in the database ) but it takes a bit of time for long
reports....

Thanks in advance
-Alan

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org




#####################################################################################
This e-mail message has been scanned for viruses by our email server and cleared.
#####################################################################################

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Feedback for long operations [auf Viren geprueft]

Posted by phillip rhodes <rh...@yahoo.com>.
I know this!  I spent a month planning with threads
and servlet containers before giving up.  I tried
using request and response wrappers, every little
trick but failed to achieve a filter that would
accomplish this uniformly in all tomcats versions,
oc4j, jetty, etc...

I did not do any threading in my filter, and it works.

Please check it out again.

--- Howard Lewis Ship <hl...@gmail.com> wrote:

> Threads and servlets don't mix ... later requests
> will go to an
> arbitrary server in the cluster. Or it least it can.
> 
> The correct approach is to, yes, render the repsonse
> page multiple
> times, forming an intersertial (you have to set the
> reponse type to a
> mime type, as a wrapper around the series of
> reponses you send).  I've
> been wanting to add this capability to Tapestry for
> a long time,
> though I'm still uncertain which browsers will
> support it. This would
> be quite a coup of Tapestry when it does get
> implemented!
> 
> On Mon, 2 Aug 2004 20:48:37 -0700 (PDT), phillip
> rhodes
> <rh...@yahoo.com> wrote:
> > I wrote a servlet filter that you can place in
> front
> > of anything that provides a "wait page"
> > 
> > That means that you don't have to do any thread
> > programming,etc... Just declare a filter and
> viola!
> > You are done.
> > 
> > cvs, demo, etc...
> > 
> > http://rhoderunner.com/longrequest/index.jsp
> > 
> > 
> > 
> > 
> > --- Mika�l_Cluseau <nw...@nwrk.dyndns.org> wrote:
> > 
> > >
> > > I have done exactly the same thing for a generic
> > > search system, using a
> > > service to get a refreshable link. I work fine
> until
> > > the search is done,
> > > but then the page is unusable because it doesn't
> > > supports rewinding. I'm
> > > working on it now (harvesting Form and
> ActionLink
> > > components).
> > >
> > > Done this in about 30h of work (including model
> > > refinments).
> > >
> > > I can give it to you if you leave the "@author"
> > > intact... ask me if
> > > you're interested. Maybe you'll find help me to
> > > solve my problem...
> > >
> > > Cyril Godefroy wrote:
> > > > Of all strategies, one of the finest I met was
> > > WebObjects'. I don't know
> > > > right now if it's feasible with Tapestry, but
> I
> > > don't see a reason why
> > > > you shouldn't be able:
> > > >
> > > > Create a separate Thread for the long
> operation.
> > > Add a mechanism to poll
> > > > that thread. Ideally, it would give you a %
> done.
> > > Then create a refresh
> > > > page that polls the thread and once it is
> done,
> > > activate a different page.
> > > >
> > > > For example, your component should implement
> > > runnable and have a
> > > > refresh() listener. The refresh polls the
> status,
> > > checks if there are
> > > > exceptions etc. If the action is done ,
> > > cycle.activate("FinishedPage");
> > > >
> > > > Unfortunately, that's as far as I can go. I'd
> love
> > > to help you more but
> > > > that is all I know. You might have trouble
> with
> > > the pooling mechanism of
> > > > Tapestry.
> > > >
> > > > You might get more info from a plain servlet
> > > mailing list or search.
> > > >
> > > > JM2C,
> > > > Cyril
> > > >
> > > > On Jul 28, 2004, at 1:29 PM, Jonathan O'Connor
> > > wrote:
> > > >
> > > >> Alan,
> > > >> I think this sort of thing is very difficult
> to
> > > do properly. The
> > > >> webserver
> > > >> only responds to calls from the client
> browser.
> > > So it can't send a new
> > > >> page back to the client once it has
> responded.
> > > >> However, maybe you can write some Javascript
> to
> > > poll the webserver, and
> > > >> then switch pages when the results are
> available.
> > > >> I think Aer Lingus do this on their booking
> page.
> > > >>
> > > >> PS: Did we work together in Cognotec?
> > > >> Ciao,
> > > >> Jonathan O'Connor
> > > >> XCOM Dublin
> > > >>
> > > >>
> > > >>
> > > >> "Alan O'Leary" <al...@gmail.com>
> > > >> 28/07/2004 11:47
> > > >> Please respond to
> > > >> "Tapestry users"
> > > <ta...@jakarta.apache.org>
> > > >>
> > > >>
> > > >> To
> > > >> tapestry-user@jakarta.apache.org
> > > >> cc
> > > >>
> > > >> Subject
> > > >> Feedback for long operations [auf Viren
> geprueft]
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> Hello,
> > > >>     I am currently evaluating Tapestry for an
> > > reporting based
> > > >> application (built on top of Spring and
> > > Hibernate).
> > > >>     Its a large learning curve but what each
> > > layer gives me is great.
> > > >> For the Web/Client tier I am evaluating
> Tapestry
> > > alongside JSF. At the
> > > >> moment I really like Tapestry and have a nice
> > > demo web site up and
> > > >> running...
> > > >>
> > > >> However, since this is a reporting
> application
> > > some operation take a
> > > >> bit of time.... and I simply want to present
> the
> > > user with a page or
> > > >> feedback that says " Processing please
> wait....."
> > > or throw up an
> > > >> animated gif to show indeterminate
> progress...
> > > >>
> > > >> The problem I have is (while waiting for the
> > > Tapestry in Action book
> > > >> to arrive) is being a relative newbie to the
> > > internals of Tapestry...
> > > >>
> > > >> I'd like simply to do something like
> > > >>
> > > >> // code
> > > >> cycle.activate("PleaseWaitPage");
> > > >> // do stuff that takes a while
> > > >> cycle.activate("ChartPage");
> > > >>
> > > >>
> > > >> My chart page is currently working
> (JFreeChart
> > > png generated by
> > > >> spring from data in the database ) but it
> takes a
> > > bit of time for long
> > > >> reports....
> > > >>
> > > >> Thanks in advance
> > > >> -Alan
> > > >>
> > > >>
> > >
> >
>
---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail:
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Feedback for long operations [auf Viren geprueft]

Posted by Howard Lewis Ship <hl...@gmail.com>.
Threads and servlets don't mix ... later requests will go to an
arbitrary server in the cluster. Or it least it can.

The correct approach is to, yes, render the repsonse page multiple
times, forming an intersertial (you have to set the reponse type to a
mime type, as a wrapper around the series of reponses you send).  I've
been wanting to add this capability to Tapestry for a long time,
though I'm still uncertain which browsers will support it. This would
be quite a coup of Tapestry when it does get implemented!

On Mon, 2 Aug 2004 20:48:37 -0700 (PDT), phillip rhodes
<rh...@yahoo.com> wrote:
> I wrote a servlet filter that you can place in front
> of anything that provides a "wait page"
> 
> That means that you don't have to do any thread
> programming,etc... Just declare a filter and viola!
> You are done.
> 
> cvs, demo, etc...
> 
> http://rhoderunner.com/longrequest/index.jsp
> 
> 
> 
> 
> --- Mika�l_Cluseau <nw...@nwrk.dyndns.org> wrote:
> 
> >
> > I have done exactly the same thing for a generic
> > search system, using a
> > service to get a refreshable link. I work fine until
> > the search is done,
> > but then the page is unusable because it doesn't
> > supports rewinding. I'm
> > working on it now (harvesting Form and ActionLink
> > components).
> >
> > Done this in about 30h of work (including model
> > refinments).
> >
> > I can give it to you if you leave the "@author"
> > intact... ask me if
> > you're interested. Maybe you'll find help me to
> > solve my problem...
> >
> > Cyril Godefroy wrote:
> > > Of all strategies, one of the finest I met was
> > WebObjects'. I don't know
> > > right now if it's feasible with Tapestry, but I
> > don't see a reason why
> > > you shouldn't be able:
> > >
> > > Create a separate Thread for the long operation.
> > Add a mechanism to poll
> > > that thread. Ideally, it would give you a % done.
> > Then create a refresh
> > > page that polls the thread and once it is done,
> > activate a different page.
> > >
> > > For example, your component should implement
> > runnable and have a
> > > refresh() listener. The refresh polls the status,
> > checks if there are
> > > exceptions etc. If the action is done ,
> > cycle.activate("FinishedPage");
> > >
> > > Unfortunately, that's as far as I can go. I'd love
> > to help you more but
> > > that is all I know. You might have trouble with
> > the pooling mechanism of
> > > Tapestry.
> > >
> > > You might get more info from a plain servlet
> > mailing list or search.
> > >
> > > JM2C,
> > > Cyril
> > >
> > > On Jul 28, 2004, at 1:29 PM, Jonathan O'Connor
> > wrote:
> > >
> > >> Alan,
> > >> I think this sort of thing is very difficult to
> > do properly. The
> > >> webserver
> > >> only responds to calls from the client browser.
> > So it can't send a new
> > >> page back to the client once it has responded.
> > >> However, maybe you can write some Javascript to
> > poll the webserver, and
> > >> then switch pages when the results are available.
> > >> I think Aer Lingus do this on their booking page.
> > >>
> > >> PS: Did we work together in Cognotec?
> > >> Ciao,
> > >> Jonathan O'Connor
> > >> XCOM Dublin
> > >>
> > >>
> > >>
> > >> "Alan O'Leary" <al...@gmail.com>
> > >> 28/07/2004 11:47
> > >> Please respond to
> > >> "Tapestry users"
> > <ta...@jakarta.apache.org>
> > >>
> > >>
> > >> To
> > >> tapestry-user@jakarta.apache.org
> > >> cc
> > >>
> > >> Subject
> > >> Feedback for long operations [auf Viren geprueft]
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> Hello,
> > >>     I am currently evaluating Tapestry for an
> > reporting based
> > >> application (built on top of Spring and
> > Hibernate).
> > >>     Its a large learning curve but what each
> > layer gives me is great.
> > >> For the Web/Client tier I am evaluating Tapestry
> > alongside JSF. At the
> > >> moment I really like Tapestry and have a nice
> > demo web site up and
> > >> running...
> > >>
> > >> However, since this is a reporting application
> > some operation take a
> > >> bit of time.... and I simply want to present the
> > user with a page or
> > >> feedback that says " Processing please wait....."
> > or throw up an
> > >> animated gif to show indeterminate progress...
> > >>
> > >> The problem I have is (while waiting for the
> > Tapestry in Action book
> > >> to arrive) is being a relative newbie to the
> > internals of Tapestry...
> > >>
> > >> I'd like simply to do something like
> > >>
> > >> // code
> > >> cycle.activate("PleaseWaitPage");
> > >> // do stuff that takes a while
> > >> cycle.activate("ChartPage");
> > >>
> > >>
> > >> My chart page is currently working (JFreeChart
> > png generated by
> > >> spring from data in the database ) but it takes a
> > bit of time for long
> > >> reports....
> > >>
> > >> Thanks in advance
> > >> -Alan
> > >>
> > >>
> >
> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > >> For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> > >>
> > >>
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Feedback for long operations [auf Viren geprueft]

Posted by phillip rhodes <rh...@yahoo.com>.
I wrote a servlet filter that you can place in front
of anything that provides a "wait page"

That means that you don't have to do any thread
programming,etc... Just declare a filter and viola!
You are done.

cvs, demo, etc...

http://rhoderunner.com/longrequest/index.jsp



--- Mika�l_Cluseau <nw...@nwrk.dyndns.org> wrote:

> 
> I have done exactly the same thing for a generic
> search system, using a 
> service to get a refreshable link. I work fine until
> the search is done, 
> but then the page is unusable because it doesn't
> supports rewinding. I'm 
> working on it now (harvesting Form and ActionLink
> components).
> 
> Done this in about 30h of work (including model
> refinments).
> 
> I can give it to you if you leave the "@author"
> intact... ask me if 
> you're interested. Maybe you'll find help me to
> solve my problem...
> 
> Cyril Godefroy wrote:
> > Of all strategies, one of the finest I met was
> WebObjects'. I don't know 
> > right now if it's feasible with Tapestry, but I
> don't see a reason why 
> > you shouldn't be able:
> > 
> > Create a separate Thread for the long operation.
> Add a mechanism to poll 
> > that thread. Ideally, it would give you a % done.
> Then create a refresh 
> > page that polls the thread and once it is done,
> activate a different page.
> > 
> > For example, your component should implement
> runnable and have a 
> > refresh() listener. The refresh polls the status,
> checks if there are 
> > exceptions etc. If the action is done ,
> cycle.activate("FinishedPage");
> > 
> > Unfortunately, that's as far as I can go. I'd love
> to help you more but 
> > that is all I know. You might have trouble with
> the pooling mechanism of 
> > Tapestry.
> > 
> > You might get more info from a plain servlet
> mailing list or search.
> > 
> > JM2C,
> > Cyril
> > 
> > On Jul 28, 2004, at 1:29 PM, Jonathan O'Connor
> wrote:
> > 
> >> Alan,
> >> I think this sort of thing is very difficult to
> do properly. The 
> >> webserver
> >> only responds to calls from the client browser.
> So it can't send a new
> >> page back to the client once it has responded.
> >> However, maybe you can write some Javascript to
> poll the webserver, and
> >> then switch pages when the results are available.
> >> I think Aer Lingus do this on their booking page.
> >>
> >> PS: Did we work together in Cognotec?
> >> Ciao,
> >> Jonathan O'Connor
> >> XCOM Dublin
> >>
> >>
> >>
> >> "Alan O'Leary" <al...@gmail.com>
> >> 28/07/2004 11:47
> >> Please respond to
> >> "Tapestry users"
> <ta...@jakarta.apache.org>
> >>
> >>
> >> To
> >> tapestry-user@jakarta.apache.org
> >> cc
> >>
> >> Subject
> >> Feedback for long operations [auf Viren geprueft]
> >>
> >>
> >>
> >>
> >>
> >>
> >> Hello,
> >>     I am currently evaluating Tapestry for an
> reporting based
> >> application (built on top of Spring and
> Hibernate).
> >>     Its a large learning curve but what each
> layer gives me is great.
> >> For the Web/Client tier I am evaluating Tapestry
> alongside JSF. At the
> >> moment I really like Tapestry and have a nice
> demo web site up and
> >> running...
> >>
> >> However, since this is a reporting application
> some operation take a
> >> bit of time.... and I simply want to present the
> user with a page or
> >> feedback that says " Processing please wait....."
> or throw up an
> >> animated gif to show indeterminate progress...
> >>
> >> The problem I have is (while waiting for the
> Tapestry in Action book
> >> to arrive) is being a relative newbie to the
> internals of Tapestry...
> >>
> >> I'd like simply to do something like
> >>
> >> // code
> >> cycle.activate("PleaseWaitPage");
> >> // do stuff that takes a while
> >> cycle.activate("ChartPage");
> >>
> >>
> >> My chart page is currently working (JFreeChart 
> png generated by
> >> spring from data in the database ) but it takes a
> bit of time for long
> >> reports....
> >>
> >> Thanks in advance
> >> -Alan
> >>
> >>
>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> >>
> >>
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Feedback for long operations [auf Viren geprueft]

Posted by Mikaël Cluseau <nw...@nwrk.dyndns.org>.
I have done exactly the same thing for a generic search system, using a 
service to get a refreshable link. I work fine until the search is done, 
but then the page is unusable because it doesn't supports rewinding. I'm 
working on it now (harvesting Form and ActionLink components).

Done this in about 30h of work (including model refinments).

I can give it to you if you leave the "@author" intact... ask me if 
you're interested. Maybe you'll find help me to solve my problem...

Cyril Godefroy wrote:
> Of all strategies, one of the finest I met was WebObjects'. I don't know 
> right now if it's feasible with Tapestry, but I don't see a reason why 
> you shouldn't be able:
> 
> Create a separate Thread for the long operation. Add a mechanism to poll 
> that thread. Ideally, it would give you a % done. Then create a refresh 
> page that polls the thread and once it is done, activate a different page.
> 
> For example, your component should implement runnable and have a 
> refresh() listener. The refresh polls the status, checks if there are 
> exceptions etc. If the action is done , cycle.activate("FinishedPage");
> 
> Unfortunately, that's as far as I can go. I'd love to help you more but 
> that is all I know. You might have trouble with the pooling mechanism of 
> Tapestry.
> 
> You might get more info from a plain servlet mailing list or search.
> 
> JM2C,
> Cyril
> 
> On Jul 28, 2004, at 1:29 PM, Jonathan O'Connor wrote:
> 
>> Alan,
>> I think this sort of thing is very difficult to do properly. The 
>> webserver
>> only responds to calls from the client browser. So it can't send a new
>> page back to the client once it has responded.
>> However, maybe you can write some Javascript to poll the webserver, and
>> then switch pages when the results are available.
>> I think Aer Lingus do this on their booking page.
>>
>> PS: Did we work together in Cognotec?
>> Ciao,
>> Jonathan O'Connor
>> XCOM Dublin
>>
>>
>>
>> "Alan O'Leary" <al...@gmail.com>
>> 28/07/2004 11:47
>> Please respond to
>> "Tapestry users" <ta...@jakarta.apache.org>
>>
>>
>> To
>> tapestry-user@jakarta.apache.org
>> cc
>>
>> Subject
>> Feedback for long operations [auf Viren geprueft]
>>
>>
>>
>>
>>
>>
>> Hello,
>>     I am currently evaluating Tapestry for an reporting based
>> application (built on top of Spring and Hibernate).
>>     Its a large learning curve but what each layer gives me is great.
>> For the Web/Client tier I am evaluating Tapestry alongside JSF. At the
>> moment I really like Tapestry and have a nice demo web site up and
>> running...
>>
>> However, since this is a reporting application some operation take a
>> bit of time.... and I simply want to present the user with a page or
>> feedback that says " Processing please wait....." or throw up an
>> animated gif to show indeterminate progress...
>>
>> The problem I have is (while waiting for the Tapestry in Action book
>> to arrive) is being a relative newbie to the internals of Tapestry...
>>
>> I'd like simply to do something like
>>
>> // code
>> cycle.activate("PleaseWaitPage");
>> // do stuff that takes a while
>> cycle.activate("ChartPage");
>>
>>
>> My chart page is currently working (JFreeChart  png generated by
>> spring from data in the database ) but it takes a bit of time for long
>> reports....
>>
>> Thanks in advance
>> -Alan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Feedback for long operations [auf Viren geprueft]

Posted by Cyril Godefroy <cy...@ecomposite.fr>.
Of all strategies, one of the finest I met was WebObjects'. I don't 
know right now if it's feasible with Tapestry, but I don't see a reason 
why you shouldn't be able:

Create a separate Thread for the long operation. Add a mechanism to 
poll that thread. Ideally, it would give you a % done. Then create a 
refresh page that polls the thread and once it is done, activate a 
different page.

For example, your component should implement runnable and have a 
refresh() listener. The refresh polls the status, checks if there are 
exceptions etc. If the action is done , cycle.activate("FinishedPage");

Unfortunately, that's as far as I can go. I'd love to help you more but 
that is all I know. You might have trouble with the pooling mechanism 
of Tapestry.

You might get more info from a plain servlet mailing list or search.

JM2C,
Cyril

On Jul 28, 2004, at 1:29 PM, Jonathan O'Connor wrote:

> Alan,
> I think this sort of thing is very difficult to do properly. The 
> webserver
> only responds to calls from the client browser. So it can't send a new
> page back to the client once it has responded.
> However, maybe you can write some Javascript to poll the webserver, and
> then switch pages when the results are available.
> I think Aer Lingus do this on their booking page.
>
> PS: Did we work together in Cognotec?
> Ciao,
> Jonathan O'Connor
> XCOM Dublin
>
>
>
> "Alan O'Leary" <al...@gmail.com>
> 28/07/2004 11:47
> Please respond to
> "Tapestry users" <ta...@jakarta.apache.org>
>
>
> To
> tapestry-user@jakarta.apache.org
> cc
>
> Subject
> Feedback for long operations [auf Viren geprueft]
>
>
>
>
>
>
> Hello,
>     I am currently evaluating Tapestry for an reporting based
> application (built on top of Spring and Hibernate).
>     Its a large learning curve but what each layer gives me is great.
> For the Web/Client tier I am evaluating Tapestry alongside JSF. At the
> moment I really like Tapestry and have a nice demo web site up and
> running...
>
> However, since this is a reporting application some operation take a
> bit of time.... and I simply want to present the user with a page or
> feedback that says " Processing please wait....." or throw up an
> animated gif to show indeterminate progress...
>
> The problem I have is (while waiting for the Tapestry in Action book
> to arrive) is being a relative newbie to the internals of Tapestry...
>
> I'd like simply to do something like
>
> // code
> cycle.activate("PleaseWaitPage");
> // do stuff that takes a while
> cycle.activate("ChartPage");
>
>
> My chart page is currently working (JFreeChart  png generated by
> spring from data in the database ) but it takes a bit of time for long
> reports....
>
> Thanks in advance
> -Alan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

Re: Feedback for long operations [auf Viren geprueft]

Posted by Jonathan O'Connor <Jo...@xcom.de>.
Alan,
I think this sort of thing is very difficult to do properly. The webserver 
only responds to calls from the client browser. So it can't send a new 
page back to the client once it has responded.
However, maybe you can write some Javascript to poll the webserver, and 
then switch pages when the results are available.
I think Aer Lingus do this on their booking page.

PS: Did we work together in Cognotec?
Ciao,
Jonathan O'Connor
XCOM Dublin



"Alan O'Leary" <al...@gmail.com> 
28/07/2004 11:47
Please respond to
"Tapestry users" <ta...@jakarta.apache.org>


To
tapestry-user@jakarta.apache.org
cc

Subject
Feedback for long operations [auf Viren geprueft]






Hello,
    I am currently evaluating Tapestry for an reporting based
application (built on top of Spring and Hibernate).
    Its a large learning curve but what each layer gives me is great.
For the Web/Client tier I am evaluating Tapestry alongside JSF. At the
moment I really like Tapestry and have a nice demo web site up and
running...

However, since this is a reporting application some operation take a
bit of time.... and I simply want to present the user with a page or
feedback that says " Processing please wait....." or throw up an
animated gif to show indeterminate progress...

The problem I have is (while waiting for the Tapestry in Action book
to arrive) is being a relative newbie to the internals of Tapestry...

I'd like simply to do something like

// code
cycle.activate("PleaseWaitPage");
// do stuff that takes a while
cycle.activate("ChartPage");


My chart page is currently working (JFreeChart  png generated by
spring from data in the database ) but it takes a bit of time for long
reports....

Thanks in advance
-Alan

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org