Thanks for replying. Didn't realize one could add links when sorting
the list...
Anyway, I'm using displaytag 1.1 and the link is in a table cell:
<display:column class="list" width="5%"
href="" paramId="id"
paramProperty="personalId">Details</a></display:column>
I tried adding the target tag and it didn't work (error message said
Attribute target invalid for tag column according to TLD).
Does this help?
Asta.
Message: 3
Date: Thu, 23 Mar 2006 10:21:10 -0800 (PST)
Subject: Re: [displaytag-user] Open new window/target tag
From: "Rick Herrick"
To: [email protected]
Reply-To: [email protected]
It depends on which link you want to change. If it's one of the sorting
links (I'd doubt that, opening a new page everytime someone sorts the
table seems like a recipe for disaster!), I really don't know how you'd
do
that. I think it would vary depending on if you're using 1.1 or 1.0
(I'm
just now starting to look through the 1.1 code, and it's fairly
different), but would probably involve using a custom decorator.
However,
if you're already generating some kind of custom link (outside of the
built-in autolinking), you've probably already got a custom decorator.
If you're composing a table cell explicitly, then you're probably using
an
or tag, in which case you'd just need to add the
target attribute.
Basically, we'd need more information to understand the context for
what
you want to do to really tell you how to do it. But those are the two
main options, I'd think.
Asta Slade wrote:
> Hi,
>
> I'm new to the displaytag world (and other related web tools), so
bear
> with me if I ask silly questions.
>
> I have jsp pages from a third party using displaytags to present
tables,
> and I need to change one of the links in the table so that it opens
in a
> seperate window. I looked through the archives and saw posts on the
> problem but no solution. Is there a solution or a reasonable work
> around?
>
> Any help/pointers would be greatly appreciated, thanks, Asta.
>
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low
rates.
--
Rick Herrick
[EMAIL PROTECTED]
I haven't got time for inner peace.
"No reasonable definition of reality could be expected to permit
this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935
Ann Saust Rossi, Ph.D.
Senior Software Developer, Polaris Health Directions
267-583-6336 x 30
[EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

