That's excactly what's going on; when IRequestCycle.activate() is
invoked, the PageValidationListeners for the new page are invoked. 
Any of them may throw PageRedirectException, in which case that new
page is activated ... but if that page was already a "potential"
activatee, it's an error (because otherwise, it's an endless loop).

On 8/18/05, cracru <[EMAIL PROTECTED]> wrote:
> Its good to know that this is *supposed* to work.
> 
> The pageValidate() is located in the superclass for the called page.
> The account/signIn page derives from BasePage, so it doesnt share the
> pageValidate() code.
> 
> Does anyone know what the error actually means? Is it trying to say
> that a potentially infinite validation loop was detected for
> account/signIn?
> 
> -C.
> 
> On 8/17/05, Yoritaka Sakakura <[EMAIL PROTECTED]> wrote:
> > Is the same pageValidate on account/signIn (maybe from common base
> > class)?
> >
> >         -Yori
> >
> > -----Original Message-----
> > From: Kevin Menard [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 17, 2005 9:13 PM
> > To: Tapestry users
> > Subject: Re: Simple redirect from pageValidate, and Tapestry is unhappy
> >
> >
> >
> > On Aug 17, 2005, at 9:03 PM, cracru wrote:
> >
> > >  And here is the exception:
> > >
> > >  "A validate cycle during page activation was detected:
> > > account/signIn; account/signIn. "
> > >
> > >
> > > Isn't this redirect allowed? Note that the pageValidate() code is very
> > > similar to the Tapestry PetShop example.
> >
> > I'm not sure what your issue may be, but I can definitely throw a
> > PageRedirectException from my pageValidate() method.  Not that I'm
> > throwing an actual page instance rather than its name though.
> >
> > --
> > Kevin
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to