On Wed, Sep 1, 2010 at 8:00 PM, Freddy Daoud <xf2...@fastmail.fm> wrote:
> Hi Lev,
>
>> i am using DisplayTag to generate tables. i have an object for
>> which i want to display one of the fields in capital letters.
>>
>> i have tried doing so using JSTL fn:toUpperCase, such as:
>>
>>         <d:table name="${actionBean.employees}" id="employee"
>>         requestURI=""
>>                  defaultsort="1" pagesize="40" export="true" sort="list">
>>             <d:column title="Name" sortable="true">
>>                 <s:format value="${fn:toUpperCase(name)}"/>
>>             </d:column>
>>         </d:table>
>>
>> however, when the table is generated, no text is displayed for the
>> entries in the specified column.
>>
>> is there a way for me to achieve capitalization using JSTL
>> fn:toUpperCase()? or, must i create a stripes formatter?
>
> Hmmm, could it be this?
>
>             <d:column title="Name" sortable="true">
>                 ${fn:toUpperCase(employee.name}
>             </d:column>
>
> Let me know if that works..

no such luck. when i do the above, the field of interest is empty
in the generated table.

as a sanity check, i removed the "fn:toUpperCase()" and left
${employee.name} between the d:column tags. this change
yields an empty field in the generated table as well.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to