David,

You can use multiple media values in one column.  So, you'll probably end up 
only needing two display:column instances, like so,
<display:column ... media="html" ...>...</display:column> for the html output, 
and

<display:column ... media="rtf pdf excel" ...>...</display:column> for the rest
or other combinations as you may need.

-Jorge

----- Original Message ----
From: David Zhang <[EMAIL PROTECTED]>
To: Jorge Barroso <[EMAIL PROTECTED]>
Sent: Sunday, March 18, 2007 9:48:55 PM
Subject: Re: [displaytag-user] How to remove hyperlink info for columns in RTF 
output


Jorge,

Thanks so much for your input. My understanding is
that I have to use ONE <display:column> separately for
EACH media type (excel, pdf, csv, xml, rtf) for the
same column called "username". For the rtf media, I
need to do something like the following:

<display:column property="username" media="rtf"
titleKey="username" sortable="true" />

which does not create hyperlink for rtf media. For all
other media types I need to use something such as the
following (for html media for example)

<display:column property="username" media="html" 
href="editUser.html" paramId="id" paramProperty="id"
titleKey="system.users.username" sortable="true" />


Is that right?

Best regards,
David




--- Jorge Barroso <[EMAIL PROTECTED]> wrote:

> David,
> 
> Use the media attribute of the column tag.  It
> specifies the target media for a particular column. 
> If it's not specified, the column appears in every
> media type, html, excel, pdf, rtf, etc...  The sol'n
> is to use media='html' for the html version of your
> column, and media='rtf' for the rtf version.  You'll
> need one column tag per media type.
> 
> -Jorge
> 
> ----- Original Message ----
> From: David Zhang <[EMAIL PROTECTED]>
> To: displaytag-user@lists.sourceforge.net
> Cc: [EMAIL PROTECTED]
> Sent: Saturday, March 17, 2007 7:41:57 PM
> Subject: [displaytag-user] How to remove hyperlink
> info for columns in RTF output
> 
> 
> Hello, I am using DisplayTag 1.1.
> 
> I need to output content to a RTF file. One of the
> columns  is called username. Within a browser, a
> cell
> value for this column is clickable (i.e., a
> hyperlink).
> 
> The output in RTF looks like the following:
> 
> Username
> <a href="editUser.html?id=22">smith</a>
> 
> That looks ugly. I want "smith" to get output, not
> the
> whole link.
> 
> How can I do that?
> 
> Here is my settings in displaytag.properties:
> 
> export.types=csv excel xml pdf rtf
>
export.rtf.class=org.displaytag.export.DefaultRtfExportView
> export.rtf=true
> 
> 
> Thanks in advance!
> -David
> 
> 
> 
>  
>
____________________________________________________________________________________
> No need to miss a message. Get email on-the-go 
> with Yahoo! Mail for Mobile. Get started.
> http://mobile.yahoo.com/mail 
> 
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get
> the chance to share your
> opinions on IT & business topics through brief
> surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> 
> 
> 
> 
> 
> 
>  
>
____________________________________________________________________________________
> Sucker-punch spam with award-winning protection. 
> Try the free Yahoo! Mail Beta.
>
http://advision.webevents.yahoo.com/mailbeta/features_spam.html



 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367







 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to