Title: Message
You can generate the parameter names used in table tag using the ParamEncoder class. You only need to know the id of the table:
 
ParamEncoder encoder = new ParamEncoder("id_of_the_table");
String mediaParameter = encoder.encodeParameterName(TableTagParameters.PARAMETER_EXPORTTYPE);
...
fabrizio


From: Matt Raible
Sent: Wed 5/19/2004 10:09 PM
To: [EMAIL PROTECTED]
Subject: RE: [displaytag-user] Sorting through other means

I don't know what algorithm that Fabrizio is using to caculate the one query parameter that gives all the column, direction, etc. information. You'd have to ask him.
 
Matt
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Holtzman
Sent: Wednesday, May 19, 2004 3:54 PM
To: [EMAIL PROTECTED]
Subject: [displaytag-user] Sorting through other means

I'm right with you Matt.  Use the standards, that's what they're there for.

And while we're on the topic of column titles, I have a somewhat related question:

I am using an image map as the "header" for my display table, and I'd like to be able to generate the image map to be clickable to sort the columns.  I've noticed that the querystring parameters used by display tag to keep track of which column is currently sorted, and in which direction, seem to be random.  Is there any way to predict what these query parameters will be named so I can implement my own links to handle the sorting?

Thanks,
Josh

Matt Raible wrote:
Since JSTL is a "standard" - it's just been easier (at least for me) to
use something that already exists.  You can use the <fmt:setBundle> tag
to set new bundles.  To me, it seems like a lot of work to add a column
title decorator when there's already a working solution. ;-)

Matt

  
-----Original Message-----
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On 
Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 3:45 PM
To: [EMAIL PROTECTED]
Subject: Re: [displaytag-user] translations for column titles


I know I'm annoying, but that would prevent me from using multiple 
bundles then I guess ! (I'm not much familiar with jstl)
Don't you think something like a column title decorator would be a 
sensible addition to displaytag? ;)

Cheers,

greg



Matt Raible wrote:

    
If you use the EL version, and define the JSTL Bundle attribute in
web.xml, then you can use the "titleKey" attribute to refer to your 
ResourceBundle.  It works quite nicely IMO.

For the web.xml, you simply need to add the following:

<context-param>
        

      
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</pa
ram-name>
    
        <param-value>ApplicationResources</param-value>
    </context-param>

Where ApplicationResources is the name of your default bundle.

Matt

On May 19, 2004, at 2:30 PM, [EMAIL PROTECTED] wrote:

      
hmmm. I like displaytag because it cuts down my jsp's size and adds
readabiliy. adding all that just for titles goes a bit 
        
against that 
    
advantages doesn't it?
If you ask me, I think some sort of decorator for column 
        
titles would 
    
be very nice. (That way, you'd be able to use whatever i18n system 
you like by simply pluging it in)

Any other ideas ?

g

Paul McCulloch wrote:

        
I think that the EL version of the tag has built in support for
using keys
for column titles.

In the past I have tended to define an attribute with the i18n'ed
text in
it:

<bean:define id="priorityHeading">
    <fmt:message key="event.monitor.results.priority.label"/>
</bean:define>

and use this with my column as an rt _expression_:

<display:column title="<%=priorityHeading%>">


Paul


          
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 19 May 2004 18:04
To: [EMAIL PROTECTED]
Subject: [displaytag-user] translations for column titles


Hi list,

I was wondering if there was a standard/prefered way to have
internationalized column titles?

Thanks for any tip!


greg 

            
___________________________________________________________________
    
_
Miert fizetsz az internetert? Korlatlan, ingyenes internet 
hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu/


            
          
********************************************************************
    
**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this 
message. If you are not the addressee indicated in this 
          
message (or 
    
responsible for delivery of the message to such person), 
          
you may not 
    
copy or deliver this message to anyone. In such case, you should 
destroy this message, and notify us immediately. If you or your 
employer does not consent to Internet email messages of 
          
this kind, 
    
please advise us immediately. Opinions, conclusions and other 
information expressed in this message are not given or 
          
endorsed by 
    
my Company or employer unless otherwise indicated by an 
          
authorised 
    
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer 
          
viruses from 
    
being transmitted via electronic mail attachments we cannot 
guarantee that attachments do not contain computer virus 
          
code.  You 
    
are therefore strongly advised to undertake anti virus 
          
checks prior 
    
to accessing the attachment to this electronic mail.  
          
Axios Systems 
    
Ltd grants no warranties regarding performance use or 
          
quality of any 
    
attachment and undertakes no liability for loss or damage 
          
howsoever 
    
caused.

          
**********************************************************************
    
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net 
          
Broadband Sign-up 
    
now for SourceForge Broadband and get the fastest 6.0/768 
          
connection 
    
for only $19.95/mo for the first 3 months! 
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
displaytag-user mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user



          
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net 
        
Broadband Sign-up 
    
now for SourceForge Broadband and get the fastest 6.0/768 
        
connection 
    
for only $19.95/mo for the first 3 months! 
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
displaytag-user mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
        
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net 
      
Broadband Sign-up 
    
now for SourceForge Broadband and get the fastest 6.0/768 
      
connection 
    
for only $19.95/mo for the first 3 months! 
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
displaytag-user mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


      
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband 
Sign-up now for SourceForge Broadband and get the fastest 
6.0/768 connection for only $19.95/mo for the first 3 months! 
    
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
displaytag-user mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user




-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


  

-- 
Josh Holtzman

Educational Technology Services
UC Berkeley

Reply via email to