last page visited

2011-06-23 Thread leandroaispuru
Hi all!

I want to know what is the best way to obtain the last visited page ?

For example...
I am navigating page A and when I click in a link I go to a page B. When I
am in B I want to know that before being here I was in page A.

My tapestry version is 5.1.0.5 and i can't migrate the project to a new one
because of some dependencies.

Thanks in advance!

Leandro.


Re: last page visited

2011-06-23 Thread Taha Hafeez
Hi

Take a look at https://github.com/argoyle/tapestry-breadcrumbs

regards
Taha

On Thu, Jun 23, 2011 at 7:07 PM, leandroaisp...@gmail.com wrote:

 Hi all!

 I want to know what is the best way to obtain the last visited page ?

 For example...
 I am navigating page A and when I click in a link I go to a page B. When I
 am in B I want to know that before being here I was in page A.

 My tapestry version is 5.1.0.5 and i can't migrate the project to a new one
 because of some dependencies.

 Thanks in advance!

 Leandro.



Re: last page visited

2011-06-23 Thread Muhammad Mohsen
May be a primitive solution like, when a page is attached, it sets a
session variable unique to the page ?

On Thu, Jun 23, 2011 at 3:40 PM, Taha Hafeez tawus.tapes...@gmail.comwrote:

 Hi

 Take a look at https://github.com/argoyle/tapestry-breadcrumbs

 regards
 Taha

 On Thu, Jun 23, 2011 at 7:07 PM, leandroaisp...@gmail.com wrote:

  Hi all!
 
  I want to know what is the best way to obtain the last visited page ?
 
  For example...
  I am navigating page A and when I click in a link I go to a page B. When
 I
  am in B I want to know that before being here I was in page A.
 
  My tapestry version is 5.1.0.5 and i can't migrate the project to a new
 one
  because of some dependencies.
 
  Thanks in advance!
 
  Leandro.
 




-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


Re: last page visited

2011-06-23 Thread Thiago H. de Paula Figueiredo
On Thu, 23 Jun 2011 12:34:22 -0300, Muhammad Mohsen m.gelb...@gmail.com  
wrote:



May be a primitive solution like, when a page is attached, it sets a
session variable unique to the page ?


I don't think that would work well. You'd need to add this code to all  
pages or at least add this code to a mixin to be added to all pages.
I'd just write a ComponentRequestFilter that would set a session state  
object.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: last page visited

2011-06-23 Thread leandroaispuru
Hi again, I think that I have to describe the whole scenario so you can
understan why i have written the question of the first email.

Here is my situation:

* I have two pages p1 and p2, each page belongs to layout A. This layout
contains two tabs, one is p1 and the other is p2.

* If I go to p1 page from two special pages I want to see just this two
pages p1 and p2, but if I came from any other page I want to see that two
pages plus three others, so I need other layout that contains the five
pages.

What is the best solution to resolve this problem?

Thanks !

2011/6/23 Thiago H. de Paula Figueiredo thiag...@gmail.com

 On Thu, 23 Jun 2011 12:34:22 -0300, Muhammad Mohsen m.gelb...@gmail.com
 wrote:

  May be a primitive solution like, when a page is attached, it sets a
 session variable unique to the page ?


 I don't think that would work well. You'd need to add this code to all
 pages or at least add this code to a mixin to be added to all pages.
 I'd just write a ComponentRequestFilter that would set a session state
 object.

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, Ars Machina Tecnologia da Informação Ltda.
 http://www.arsmachina.com.br

 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@tapestry.**apache.orgusers-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org