Asta Slade wrote:
>  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:
>
>  Details
>
>  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?

Somewhat, although I'm wondering what you expect to happen and/or how
you're getting links from a column.  So I'm guessing you have something
like this:

<display:table name="list">
  <display:column property="prop" sortable="true"/>
</display:table>

So if you have list of beans with a getProp() method, you might get this:

<Prop>
Value1
Value2
Value3

The <Prop> tital would be a sorting link. The values wouldn't be links,
though, so I'm not sure what you're expecting to click on that you want to
have appear in another window.  I'll just make something up though, so see
if this is close to what you want:


<display:table name="list" uid="item">
  <display:column title="Prop" sortable="true" sortProperty="prop">
    <a href="doSomething.do" target="_blank"><c:out
value="${item.prop}"/></a>
  </display:column>
</display:table>

Now you'd get the same behavior as the first example, but each row would
be a link to the doSomething.do action.  You can also use item properties
in the href so that you get different behavior each time.  Like suppose
your bean has id and name properties:

<a href="doSomething.do?id=<c:out value="${item.id}"/>" target="_blank">
  <c:out value="${item.name}"/>
</a>

Does that help?

-- 
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



-------------------------------------------------------
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

Reply via email to