Thank you Ed. Your suggestions worked.
thanks again
> Date: Tue, 22 Jan 2008 16:47:14 +0000> From: Ed Webb <[EMAIL PROTECTED]>>
> Subject: Re: [displaytag-user] How to change the URL in displaytag> To:
> displaytag-user@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]>>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed> > Minimol Joseph
> wrote:> > Thank you Ed for the reply.> > > > I tried the suggestion but it
> always defaults to the first value> > [code]> > That's because I didn't fully
> understand where you were getting the > value to test from. If you want to
> alter the contents of the cell > depending on a value of the row object then
> you need to put the > <c:choose> tag inside a <display:column> tag and create
> the link > yourself (see below). If you were choosing which column to display
> based > on another object then my original suggestion is the one to go for.>
> > The contents of the <display:table> are only evaluated once when the >
> table is started so in the original suggestion every row in the whole > table
> was using the first <display:column>.> > The contents of the <display:column>
> are evaluated for each row allowing > you to make decisions based on the
> values in each row object.> > <display:column titleKey="apps.id"
> sortable="true" />> > <c:choose>> > <c:when test="${CRList.status == s}">> >
> <a href="editCRs.html?appid=${CRList.appid}">${CRList.appid}</a>> >
> </c:when>> > <c:otherwise>> > <a
> href="viewCRs.html?appid=${CRList.appid}">${CRList.appid}</a>> >
> </c:otherwise>> > </c:choose>> > </display:column>> > If you are using this
> column in more than one place it is probably > better to place the code into
> a decorator.> > > > Ed!> > > > ------------------------------> > Message: 3>
> Date: Tue, 22 Jan 2008 16:54:39 +0000> From: Ed Webb <[EMAIL PROTECTED]>>
> Subject: Re: [displaytag-user] how to hide a column ?> To:
> displaytag-user@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]>>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed> > Olivier
> Revollat wrote:> > I want to display a table sorted with a column, but I
> don't want to > > display the column ... how can I do that ? I don't see
> somehting like > > "vivible" property for the "display:column" tag> > Thanks
> ;)> > Before you send your list to the presentation layer for Displaytag to >
> render you will need to order it yourself using the property you want to >
> sort by. Then simply do not include the property in a <display:column>.> >
> Ed!> > > > ------------------------------> > Message: 4> Date: Tue, 22 Jan
> 2008 18:00:17 +0100> From: David Pilato <[EMAIL PROTECTED]>> Subject: Re:
> [displaytag-user] how to hide a column ?> To:
> displaytag-user@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]>>
> Content-Type: text/plain; charset=us-ascii> > > Before you send your list to
> the presentation layer for Displaytag to> > render you will need to order it
> yourself using the property you want to> > sort by. Then simply do not
> include the property in a <display:column>.> Or perhaps that you can use the
> media field ?> > Something like :> <display:column property="myfield"
> media="none" />> > David.> > > > > ------------------------------> > Message:
> 5> Date: Tue, 22 Jan 2008 18:06:44 +0100> From: David Pilato <[EMAIL
> PROTECTED]>> Subject: Re: [displaytag-user] how to hide a column ?> To:
> displaytag-user@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]>>
> Content-Type: text/plain; charset=us-ascii> > > Or perhaps that you can use
> the media field ?> > > > Something like :> > <display:column
> property="myfield" media="none" />> > You can also use the CSS to hide your
> field :> <display:column property="index" title="" class="hidden">
> headerClass="hidden" />> > And in the CSS :> .dataTable td.hidden {> display:
> none;> }> .dataTable th.hidden {> display: none;> }> > > > > > >
> ------------------------------> >
> ------------------------------------------------------------------------->
> This SF.net email is sponsored by: Microsoft> Defy all challenges.
> Microsoft(R) Visual Studio 2008.>
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> >
> ------------------------------> >
> _______________________________________________> displaytag-user mailing
> list> displaytag-user@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/displaytag-user> > > End of
> displaytag-user Digest, Vol 21, Issue 18>
> ***********************************************
_________________________________________________________________
Connect and share in new ways with Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user