Thanks for the quick reply and nice site btw:)

Now maybe you can enlighten me on how did you get to have the
collapse/expand. I don't mean the javascript or css. I mean you have the
expand/collapse <tr> without having a corresponding title(displaycolumn).
I'm new to displaytag so maybe I got something totaly wrong?
Ultimately I want to have parent/child relationship so for me the
collapse/expand should show/hide another  table, meaning with different
data.

In case I didn't explain it well:
this:
<display:table name="persons" class="table" requestURI="" id="personList"
export="true" pagesize="25">
   <display:column property="id" sortable="true" href="editPerson.html"
       paramId="id" paramProperty="id" titleKey="person.id "/>
   <display:column property="firstName" sortable="true" titleKey="
person.firstName"/>
   <display:column property="lastName" sortable="true" titleKey="
person.lastName"/>
   <display:setProperty name="paging.banner.item_name" value="person"/>
   <display:setProperty name="paging.banner.items_name" value="people"/>
</display:table>

outputs this:

<table id="personList"
class="table">
<thead>
<tr>
<th
class="sortable">
<a href="?d-2634561-o=2&amp;d-2634561-s=0"
Id </a></th>
<th class="sortable"

<a href="?d-2634561-o=2&amp;d-2634561-s=1">First Name </a
</th>
<th class="sortable">

<a href="?d-2634561-o=2&amp;d-2634561-s=2">Last Name </a></
th></tr></thead>
<tbody>
 <tr
class="odd">
   <td>
   <a href=
"editPerson.html?id=1">1</a></td>
   <td>doggas</td>

   <td>o megistos</td></tr>
 <tr class=
"even">
   <td>
   <a href=
"editPerson.html?id=2">2</a></td>
   <td>paparis</td>

   <td>xatzipaparidis</td>
 </tr>
 </tbody>
</
table>

What I want to have is one extra row with every iteration that will be
initially hidden and will hold the data of the children of each item on the
list. I didn't understand in your website how did you manage to get the
thanks again
stelios

On 28/04/07, Jorge Barroso <[EMAIL PROTECTED]> wrote:

There should be, but this is really not a displaytag issue.  It's an
html/css/javscript issue.
Nonetheless, I so happened to have implemented something approaching (no
nested tables/ partial collapse) what you want with a displaytag-generated
table.   You can see it in action here.

http://www.thegorb.com/search/all.gorb?es=UW1SS1RUWkRZbUZIYkhOaVIwWjVaVlk1YW1KSGJIVmtSemwxVVVoU2IxcFhaSFpqYlVsMVdUSTVkQW89CmUwdEJQNQ==#nav
Have a look at the html, javascript, and css.

Hope that helps.

-Jorge

----- Original Message ----
From: Stelios Togias < [EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, April 27, 2007 9:07:22 PM
Subject: [displaytag-user] Expand/collapse rows

Hi,

Just started using display tag and stumbled accross this problem. I want
to have a table and when clicking on a row to expand under that row another
table. I tried using nested tables but no good. Is there anyway to do this?

Any thoughts appreciated
Stelios
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! 
Autos.<http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to