I wanted to submit this patch awhile ago but didnt have time, I know this
isn't exactly in patch format, sorry =)  But this is the doEndTag method of
column.tag, I created this patch awhile ago and compared it today to the
latest snapshot, the only diff I noticed is the new snapshot does not throw
an exception if your missing attribute information on a column tag, so if
that needs to be removed from my patch thats great.

Anyway the idea behind this patch is to give more freedom to displaying
information from the tag.  For example I have a userName column that I want
to make a sortable property of my list, but at the same time I want it to
link me to my area where I can edit that user.  Well that becomes difficult
with the way things currently are set.  So what this patch does is change
the priority order of how the column gets displayed.   Previously (forgive
me its been a month or two) I belive the order was: Property Value then Body
Value then none.  With my patch the order will go Body Content if specified,
Property Value, then none.  This gives the user freedom do so such things
as:

<display-el:column property="userName" title="UserName" sortable="true"
class="displayTag">
    <a href="<html-el:rewrite
forward="employee.support.web.userAdmin.editUser"/>?id=<bean:write
name="user" property="id"/>" target="_top"><bean:write name="user"
property="userName"/></a>
</display-el:column>

Meanwhile maintaining sorting ability on that column, etc.  Which is
immensly useful for me anyway =)

I've attached the column.tag source, I just merged in that method with the
latest snapshot.
Hope this helps, and I hope to be able to have more time to contribute in
the future.
-David Erickson


Attachment: ColumnTag.java
Description: Binary data

Reply via email to