struts-user mailing list archives

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

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;"
width="50"><%Util.formatWorkDuration(myRow.getWorkDuration());%></layout:col
lectionItem>
</layout:collection>


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?

Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message