-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(al)Fred Heller wrote:
> Hi,
> 
> I'm rather new to Tapestry and find it difficult to grasp,
> how to do things and where to find relevant information.
> Therefore the first question - where would I be able to find
> infos on the details of Tapestry developments that go deeper
> than tutorials?
> The actual problem: I do have a method that is called by a
> component within a page. The method does have to decide on
> basis of the page that called. How can I determine what page
> that called? .. or can I call something like
> getEngine().getPage() etc.
> Thanks for answering
> 
> Fred

You can use the DirectLink component to specify a listener method. In that
method you can get a page with:

in Page file:
<component id="goToPage" type="DirectLink">
        <binding name="listener" expression="listners.listnerMethod"/>
</component>

in html file:
<a href="#" jwcid="goToPage">Go somewhere</a>

in your class file:
public void listnerMethod(IRequestCycle cycle)
{
        YourPage page = (YourPage)cycle.getPage("pagename");
        page.setupsomeparameters();
        cylce.activate(page);
}

after that method your new page should be respond.

good luck

Best Regards,

 m.
- --
Mathias Herkt (Diplomand)    | SQS Software Quality Systems AG
                             | Stollwerckstrasse 11
Phone:+49 2203/9154-7110     | D-51149 Cologne, GERMANY
Fax:+49 2203/9154-15         | http://www.sqs.de

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFCqYgS8hWAS3IShqURAn2kAKCNMxuV7WrcuESr9++iMRdUnjzTyQCgkb91
tn++MGX5hvabw/VtVUfJt+I=
=Juo5
-----END PGP SIGNATURE-----

Reply via email to