Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4669376
By: whiskogs

Hi,

Bit of a newbie to this library, so sorry if this has been covered before.

I'm using a <display:table> in which the first <display:column> is giving me
a headache, somehow: the row object instance contains a sub-object that contains
another sub-object, which can be of type A or B (distiller or blender, to make
things clear). I want to link to that object's page, which, obvously has a 
different
url structure depending on its nature (/distiller or /blender, innit); the only
parameter is the id of said object. Also, I want the column to be sortable.
Now, I've had to rely on something like:

<display:column sortable="true">
  <% if (distiller) { %>
    <a href="/distiller?id=..."><%=...%></a>
  <% } else if (blender) {
    <a href="/blender?id=..."><%=...%></a>
  <% } %>
</display:column>

Of course, it messes up with the sorting, since it doesn't sort the content,
but the urls themselves... Result to be seen on
http://www.whiskogs.com/user/collection?id=1
I've also tried:

<display:column property="manufacturerName" href="manufacturerLink" paramId="id"
paramProperty="manufacturerId" sortable="true" />

where manufacturerXxx are decorators, with no luck: the name is displayed 
perfectly
and sortable alright, but the href is always the same (I believe the latest
to be translated) and the paramProperty attribute doesn't seem to work with
decorators at all (gives, say, /blender?id:). I've tried various mixes of the
above, including with the paramName attribute, but never succeeded in displaying
all the names correctly, sortable and the links pointing to where they should.
I'm a bit lost and would greatly appreciate help.

Thanks in advance.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249318

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to