Amir,

It is my understanding, that the framework strongly encourages you to
delegate the encoding and decoding of all service URLs to the various
link components.  These link components abstract away the particulars of
the IEngineService impl being used.

To create an external link use the ExternalLink component.  This
component supports parameters.  This will allow you to pass 0-n
parameters to the external page listener method, for instance your
taskId member.

The only difference between the listeners for external links and the
more traditional listener (e.g. for a direct link) is that the target
page must implement the IExternalPage interface.  It is the
activeExternalPage() method specified by that interface that will
respond to the request.

Please note that I have only been using Tapestry 3.0.3 in production, so
the situation may be different with Tapestry 4.  Also if you haven't
already, read up on the various link components and the differences
between them.  This may lead you to make different choices about the
links you use.

Carlos


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 11, 2005 12:51 PM
To: [email protected]
Subject: Creating an external url link

 Hi,

I am trying to create a link (external) to a page, let say I have page
called ViewTask.html, I know to access this page I need a url like:

http://localhost:8080/example/service=page&page=ViewTask

But if ViewTask.java has a taskId member, how do you call the page and
set this required field?

Thanks in advance,
Amir


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to