You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lennart Benoot <lb...@axelera.net> on 2003/02/27 11:47:58 UTC

Caching

Hey Folks,

When setting the vm property: -Dnet.sf.tapestry.disable-caching=true
The login mechanism of my web application failed. The login mechanism is 
implemented with the tapestry VLib application as an example. An AdminPage 
checks wether a user is logged in. If he isn't, a PageRedirectException is 
thrown:

Login lPage = (Login) cycle.getPage( IConstants.PAGE_LOGIN);
lPage.setCallback(new PageCallback(this));
		
throw new PageRedirectException( lPage);

later, when logging in,  it seems that the PageCallback that should be 
available in the LoginPage is null.

Any solutions to this problem?

Regards,
Lennart


RE: Caching

Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
Did you make the callBack property of your Login page persistent?  In 2.3,
this means invoking fireObservedChange() from the accessor method.  In 2.4
you would probably declare the property in the page spec and let Tapestry do
the rest.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/proposals/tapestry



> -----Original Message-----
> From: Lennart Benoot [mailto:lbe@axelera.net] 
> Sent: Thursday, February 27, 2003 5:48 AM
> To: tapestry-user@jakarta.apache.org
> Subject: Caching
> 
> 
> Hey Folks,
> 
> When setting the vm property: -Dnet.sf.tapestry.disable-caching=true
> The login mechanism of my web application failed. The login 
> mechanism is 
> implemented with the tapestry VLib application as an example. 
> An AdminPage 
> checks wether a user is logged in. If he isn't, a 
> PageRedirectException is 
> thrown:
> 
> Login lPage = (Login) cycle.getPage( IConstants.PAGE_LOGIN); 
> lPage.setCallback(new PageCallback(this));
> 		
> throw new PageRedirectException( lPage);
> 
> later, when logging in,  it seems that the PageCallback that 
> should be 
> available in the LoginPage is null.
> 
> Any solutions to this problem?
> 
> Regards,
> Lennart
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>