>>I don't see a way to massage the ResultSet values.

>simply use a Decorator class.

samples.wrapper.getlink1 wraps the data in a hyperlink, but I'm
embedding 5 values in a hyperlink.

...haven't heard back from the displaytag forum to see if that's
something that a decorator can manage.



>> Now the output table looks like this...
>>
>>       <display:table name="${rs.rows}" cellspacing="0">
>>         <display:column property="name" title="Name" style="width:
35%"
>> headerClass="dir_hds" />
>>         <display:column property="full_adr" title="Address"
>> style="width: 30%" headerClass="dir_hds" />
>>         <display:column property="phn" title="Phone" style="width:
15%"
>> headerClass="dir_hds" />
>>         <display:column property="hours" style="width: 20%"
>> headerClass="dir_hds" />
>>       </display:table>

> Now that does look a lot better, does it not?

Yes, & it saves some work on coding the output table. 

Sorting DOES work by the way, which introduces you to some new tricks
with the CSS. You can use 'odd' & 'even' to toggle the row shading, &
CSS can set the color of the sorted column, and can also manage the
asc/desc pointer. I would usually compose scriptlets to do that stuff.




----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to