Hi again! For instance: i have a page with the following tml: <t:progressivedisplay t:id="processingWork" update="show" initial="block:loadingBlock" />
<t:block id="loadingBlock"> <div align="center"> Working....</div> </t:block> <t:block id="workErrorBlock"> <div align="center"> Error! </div> </t:block> <t:block id="workDoneBlock"> <div align="center"> Work done! </div> </t:block> And in the java file : @Inject private Block workDoneBlock; @Inject private Block workErrorBlock; public Object onProgressiveDisplayFromProcessingWork() { try { // working code return workDoneBlock; } catch (Exception e) { return workErrorBlock; } } You can find more info here: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/ajax/progressivedisplay and here: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/ajax/progressivedisplayvariations BR!! ------------------------------------------------------------------ David Germán Canteros 2011/10/21 Wechsung, Wulf <wulf.wechs...@sap.com> > Hi David, > > I'm using 5.2.6 as well. What happens when your progressively-displayed > grid can't render and throws an exception? > > Best Regards, > Wulf > > -----Original Message----- > From: David Canteros [mailto:davidcanteros....@gmail.com] > Sent: Donnerstag, 20. Oktober 2011 18:33 > To: Tapestry users > Subject: Re: progressive display > > Wich tap version are you using?? > > I'm doing something like that with grids and it works OK, using tap 5.2.6 > > BR > > ------------------------------------------------------------------ > David Germán Canteros > > > 2011/10/20 Steve Eynon <steve.ey...@alienfactory.co.uk> > > > It may be something to do with this (now fixed) Jira : > > https://issues.apache.org/jira/browse/TAP5-1706 > > > > Try munky patching your tapestry.js page with the suggestion in the > > Jira and see if it makes any difference. > > > > Steve. > > > > > > > > > > On 20 October 2011 05:07, Wechsung, Wulf <wulf.wechs...@sap.com> wrote: > > > Hello T-User, > > > > > > I would like to start using the progressive display component to create > > the illusion of responsitivity (:) ) but I'm facing the problem that if > > anything goes wrong > > > during the rendering of the P-D's body it will not show an error page > and > > instead keeps showing the load animation. > > > > > > Is there a quick way fix for that? > > > > > > > > > My component template looks like this: > > > > > > <t:progressivedisplay update="show"> > > > > > > <t:grid source="systemResults" /> > > > > > > </t:progressivedisplay> > > > > > > > > > And my component eventhandler is like this: > > > > > > @OnEvent(EventConstants.PROGRESSIVE_DISPLAY) > > > void onProgressiveDisplay() { > > > ... create query etc ... > > > /** this might take a while ...**/ > > > systemResults = em.createQuery(query).getResultList(); > > > > > > } > > > > > > > > > The grid rendering fails with a class cast exception because I haven't > > provided a proper beanmodel yet. I can see the trace in the console but > the > > P-D just keeps loading. > > > > > > Best Regards, > > > Wulf > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >