[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Re: Help needed with DirectLink and page parameters (Was: Contrib:Table and page parameters)
From: Kaspar Fischer <fischerk () inf ! ethz ! ch>
Date: 2007-12-20 11:10:10
Message-ID: B7165714-1CA1-4188-BB3D-F14D2E0598AC () inf ! ethz ! ch
[Download RAW message or body]
Hi Andreas,
On 20.12.2007, at 11:36, Andreas Pursian wrote:
>> How can I use a DirectLink on a page that depends on a parameter, for
>> instance of, on a page like this
>>
>> http://my.org/app?page=Article&id=27
>
> So if i got the point, you just want to create a link that refers to a
> special article wich is identified by an id ... right?
>
>> The tapestry manual gives an example on how to use DirectLink with
>> listeners:
>>
>> http://tapestry.apache.org/tapestry4/QuickStart/directlink.html
>
> if you read a bit further there is a part "Passing data in the links"
> ... which should solve your problem.
I have read this, and you are right: it solves the problem in this
particular
case where I only want to generate a link.
However, if you look at my original post, then I do not see anymore how
to solve the problem. The latter post is about generating links, too.
But this time
it is not me who is generating the links but Contrib:Table. (It
generates
links to sort a table.) Again, I run into the same problem: The links
generated
by Contrib:Table only identify the page class (Article) but *not* its
id.
So when you click on the link, the page does not know which article
to show.
In the DirectLink example, I can -- as you say -- pass parameters
manually.
But how would I do it with Contrib:Table?
Kaspar
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic