Hello,
Not exactly, I’ve got two tiles with one list per tile:
-------------------
Master Line 1
*Master Line 2
Master Line 3
-------------------
Detail Line 21
Detail Line 22
Detail Line 23
-------------------
When I select (due to AREF) “Master line 2” I refresh the page and I display the master list + the corresponded detail.
The problem I have: If you have 20 master lines, how can the user known which one is selected (Which one is the master for the given detail)?
For this I have to highlight the master row, but not just with a star at the beginning, for example with another background color.
I’ve tried a lot of things and at least I’ve got two working solutions (And other non-working solutions-see my previous post 12/29/2003):
1) Code it by myself in the display Tag core (new Attribute in tld, etc...) (Of course I will share the code if you want)
2) Such an horrible thing:
<display:table align="left" id="row" styleClass="odd"
width="100%" name="listBean" >
<display:column width="20%" title="Id">
<c:choose>
<c:when test="${row_rowNum==selectedRow*}" >
<span class="selectedRow"><c:out value="${row.comp_id.orgNod.orgNodeApplId}"/></span>
<c:set var="rowClass" value="selectedRow" scope="page"
/>
</c:when>
<c:otherwise>
<span class=""><c:out value="${row.comp_id.orgNod.orgNodeApplId}"/></span>
<c:set var="rowClass" value="unselectedRow" scope="page"
/>
</c:otherwise>
</c:choose>
</display:column>
<display:column
property="comp_id.orgNod.orgNodeApplId" width="20%" title="Id"
/>
……..
</display:table>
*selectedRow is a request scope attribute
It would be great if you have an elegant solution for this problem.
Thanks in advance
Regards
Steve
> I think you mean to say that when you click on the master the detail is displayed, and when
> you save the detail, you want to return to the master and highlight the row that was
> updated. Is this correct?
>
> Matt
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Steve Hostettler
> > Sent: Sunday, January 04, 2004 4:54 AM
> > To: [EMAIL PROTECTED]
> > Subject: [displaytag-user] Row Highlight really needed
> >
> >
> > Hi,
> >
> > I need to produce a master-details representation, when you
> > click on the master the detail is updated. Once I've clicked
> > on the master I want to hightlight the selected row. I've
> > tried many solutions but nothing works.
> >
> > Has somebody an idea?
> >
> > Best regards,
> > Steve