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

Reply via email to