On Thu, 28 Jul 2011 08:33:12 -0300, tr3pek <mathew...@gmail.com> wrote:

Hi,

Hi!

is there a way to check which event brought me to particular page?

Events are always local to a given page.

Shortly:
I have one page with two buttons. Each one is an EventLink. After clicking on each of them an event is thrown and I stay on the same page, but I want to display some content in case first button was pressed - not in the other case. Is there a way to check which event was triggered withoud adding
additional parameters?

Your first question makes it seem that you're talking about going from one page to another, now the above paragraph is all about a single page. Quite confusing.

If your question is about navigation from one page to another:
No, unless you store this information in a session state object.

Otherwise:

Use the context parameter or give each EventLink a different event name and have two separate event handler methods, one for each.

--
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

Reply via email to