struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaet" <>
Subject Format a property in a <collectionItem>
Date Tue, 01 Mar 2005 11:32:00 GMT

I would like to format a property of a <collectionItem> tag by calling a
java method
I have tried the following code :

<layout:collection name="myVector" id="myRow" align="left">
    <layout:collectionItem title="libelle.workDuration" sortable="true"
style="text-align: right;"

where "myRow.getWorkDuration()" returns a number of hours worked like "1600"
and "Util.formatWorkDuration(myRow.getWorkDuration())" format "1600" to "10
months and 2 days"

Obviously this doesn't work as "myRow" is not found by the java compiler..

How can I do this?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message