ahh, I see your problem now. I've had various problems with this approach 
in the past. In some cases, you may want it to sort based on what the 
property is, but in other cases, you want it to sort based on what the 
value in the column is. We clearly don't have a good solution to this 
problem at this point.

I think the easiest thing for you would be if we had a target attribute 
for each column, then I think this would work. I'm not sure if the rest of 
the group has ahd any better luck with this problem, but you might try 
downloading the code and adding the attribute. It ought to be a pretty 
simple addition and you'll definitely get it working quicker than this 
group will. If you do this, please submit a patch to us and we can include 
it in future releases.

John


On Fri, 16 Apr 2004, David Erickson wrote:

> K gotcha. Here is the situation though and where this causes problems.  Each
> row of our result represents one main object in the database.  We have a
> screen setup to edit each of these objects.  We want the links across one
> row to all point to the same place, ie /system/editObject.do?id=XXX.  So in
> theory we could just use
> <display:column title="whatever">
> <a href="/system/editObject.do?id=<c:out value="${whatever.id}"/>"
> target="_blank"/>
> </display:column>
> 
> However we want this on EACH column across the row.. and at the same time we
> want to be able to sort these columns.  What would truly be ideal is to be
> able to enter a property="whatever" etc, and then instead of displaying that
> value, if there is a body value have it be the default display, and yet
> still maintain the ability to sort based on what was specified in property.
> What do you think?
> -David
> ----- Original Message ----- 
> From: "John York" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 16, 2004 2:04 PM
> Subject: Re: [displaytag-devel] Column href links, target?
> 
> 
> > Here's the easy way to use a table:
> >
> > <display:table id="row" name="data">
> >   <display:column property="key"/>
> >   <display:column property="value"/>
> > </display:table>
> >
> > Doing this will let you reference the row objects...
> >
> > <display:table id="row" name="data">
> >   <display:column title="Key">
> >     Another way to print the key:
> >     <c:out value="${row.key}"/>
> >   </display:column>
> >   <display:column property="value"/>
> > </display:table>
> >
> > of course, this is using JSTL, but it should work without as well.
> >
> >
> > On Fri, 16 Apr 2004, David Erickson wrote:
> >
> > > John I was wondering if that is possible.  How can I get a handle on the
> row
> > > object and column object from within the column tags?  I've been looking
> for
> > > an example on how to do that and havn't found one.
> > > Thanks,
> > > David
> > > ----- Original Message ----- 
> > > From: "John York" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, April 16, 2004 1:28 PM
> > > Subject: Re: [displaytag-devel] Column href links, target?
> > >
> > >
> > > > you might be able to just create the link yourself within the body of
> the
> > > > column tags, you should be able to access all the row data as well, so
> you
> > > > ought to be able to construct a link with a target this way.
> > > >
> > > > John
> > > >
> > > >
> > > > On Fri, 16 Apr 2004, David Erickson wrote:
> > > >
> > > > > Hi I was wondering if anyone has or was planning on implementing a
> > > > > hrefTarget attribute on the columns for those of us using the
> display
> > > tag
> > > > > within frames?  I would be happy to implement it if it hasn't been
> done
> > > yet.
> > > > > Or is there another good way to accomplish this?  I understand I
> could
> > > > > implement this using a decorator class, however I need parameters
> from
> > > the
> > > > > row object to render my href that aren't passed into the column
> objects.
> > > > > Thanks in advance,
> > > > > David
> > > > >
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: IBM Linux Tutorials
> > > > > Free Linux tutorial presented by Daniel Robbins, President and CEO
> of
> > > > > GenToo technologies. Learn everything from fundamentals to system
> > > > >
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > > > > _______________________________________________
> > > > > displaytag-devel mailing list
> > > > > [EMAIL PROTECTED]
> > > > > https://lists.sourceforge.net/lists/listinfo/displaytag-devel
> > > > >
> > > >
> > > > -- 
> > > > John York
> > > > Software Engineer
> > > > CareerSite Corporation
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: IBM Linux Tutorials
> > > > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > > > GenToo technologies. Learn everything from fundamentals to system
> > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > > > _______________________________________________
> > > > displaytag-devel mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/displaytag-devel
> > > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: IBM Linux Tutorials
> > > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > > GenToo technologies. Learn everything from fundamentals to system
> > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > > _______________________________________________
> > > displaytag-devel mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/displaytag-devel
> > >
> >
> > -- 
> > John York
> > Software Engineer
> > CareerSite Corporation
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > GenToo technologies. Learn everything from fundamentals to system
> > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > displaytag-devel mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/displaytag-devel
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> displaytag-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-devel
> 

-- 
John York
Software Engineer
CareerSite Corporation



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to