You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Weisu <we...@gmail.com> on 2007/04/11 08:42:03 UTC

T5:Page navigation

Hi,
I have a login page, when user logins, it navigates to next page. How can I
hide the login page when I click the back button from IE. I am using
onActive() in Login page likes:
String onActivate()
	{
		if (!_user.isLogin()== true) {
			return null;
		}else{
			return "Start";
		}	
	}
But it still shows the login page.
Thanks.
-- 
View this message in context: http://www.nabble.com/T5%3APage-navigation-tf3557597.html#a9934010
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: T5:Page navigation

Posted by Howard Lewis Ship <hl...@gmail.com>.
When you click the browser back button, the page that is displayed
often comes from the browser cache.  T5 does not yet have the ability
to set the response headers that prevent the browser from caching
pages.

On 4/10/07, Weisu <we...@gmail.com> wrote:
>
> Hi,
> I have a login page, when user logins, it navigates to next page. How can I
> hide the login page when I click the back button from IE. I am using
> onActive() in Login page likes:
> String onActivate()
>         {
>                 if (!_user.isLogin()== true) {
>                         return null;
>                 }else{
>                         return "Start";
>                 }
>         }
> But it still shows the login page.
> Thanks.
> --
> View this message in context: http://www.nabble.com/T5%3APage-navigation-tf3557597.html#a9934010
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

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

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


Re: AW: T5:Page navigation

Posted by Patrick Moore <pa...@buildcap.com>.
I hope it will be possible to turn this off for some sessions. The case I am
concerned about is my phone browser -- which asks the user to confirm every
client-side redirect.

While I understand the reasons for page-redirects by default -- I do need to
not make our phone users life miserable.

-Pat

On 4/11/07, Howard Lewis Ship <hl...@gmail.com> wrote:
>
> Every request is a page redirect in T5.  Check the URLs in the browser
> as you work through the application.
>
>

Re: AW: T5:Page navigation

Posted by Howard Lewis Ship <hl...@gmail.com>.
Every request is a page redirect in T5.  Check the URLs in the browser
as you work through the application.

On 4/11/07, Weisu <we...@gmail.com> wrote:
>
> Thanks everyone. In T4, you can throw redirect-exception, don't think there
> is one in T5.
>
> Peter Schröder-2 wrote:
> >
> > dont know exactly, but i think you have to throw a redirect-exception
> > while you are not using some listener method.
> > but that might be T4 way to do it.
> >
> > i like this statement:
> >               if (!_user.isLogin()== true)
> >
> > very creative!
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Weisu [mailto:weisuzeng@gmail.com]
> > Gesendet: Mittwoch, 11. April 2007 08:42
> > An: users@tapestry.apache.org
> > Betreff: T5:Page navigation
> >
> >
> > Hi,
> > I have a login page, when user logins, it navigates to next page. How can
> > I
> > hide the login page when I click the back button from IE. I am using
> > onActive() in Login page likes:
> > String onActivate()
> >       {
> >               if (!_user.isLogin()== true) {
> >                       return null;
> >               }else{
> >                       return "Start";
> >               }
> >       }
> > But it still shows the login page.
> > Thanks.
> > --
> > View this message in context:
> > http://www.nabble.com/T5%3APage-navigation-tf3557597.html#a9934010
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/T5%3APage-navigation-tf3557597.html#a9950669
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

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

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


Re: AW: T5:Page navigation

Posted by Weisu <we...@gmail.com>.
Thanks everyone. In T4, you can throw redirect-exception, don't think there
is one in T5.

Peter Schröder-2 wrote:
> 
> dont know exactly, but i think you have to throw a redirect-exception
> while you are not using some listener method.
> but that might be T4 way to do it. 
> 
> i like this statement:
> 		if (!_user.isLogin()== true)
> 
> very creative!
> 
> -----Ursprüngliche Nachricht-----
> Von: Weisu [mailto:weisuzeng@gmail.com] 
> Gesendet: Mittwoch, 11. April 2007 08:42
> An: users@tapestry.apache.org
> Betreff: T5:Page navigation
> 
> 
> Hi,
> I have a login page, when user logins, it navigates to next page. How can
> I
> hide the login page when I click the back button from IE. I am using
> onActive() in Login page likes:
> String onActivate()
> 	{
> 		if (!_user.isLogin()== true) {
> 			return null;
> 		}else{
> 			return "Start";
> 		}	
> 	}
> But it still shows the login page.
> Thanks.
> -- 
> View this message in context:
> http://www.nabble.com/T5%3APage-navigation-tf3557597.html#a9934010
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/T5%3APage-navigation-tf3557597.html#a9950669
Sent from the Tapestry - User mailing list archive at Nabble.com.


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