Hi,
I have Visit class that is declared in web.xml in <servlet> section
<init-param>
<param-name>org.apache.tapestry.visit-class</param-name>
<param-value>some.path.project.tapestry.Visit</param-value>
</init-param>
When I try to reach in from some page class (from BasePage), everything is
ok.
Visit visit = (Visit) getVisit();
The problem appear when I try to get Visit object in a component. For
example Border.
Here is the listener method from the Border.java (Example from Tapestry in
Action)
public void login(IRequestCycle cycle)
{
Visit visit = (Visit) cycle.getEngine().getVisit(); <<Always NULL
if (visit != null && visit.isUserLoggedIn())
return;
.
}
Q. How to initialize Visit to be accessed from not only pages but also
components?
Thank you much,
Vielen Dank,
:)
Andrey
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]