Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4670360
By: whiskogs

Hi Ed,

Thanks for your attempt, but unfortunately, it will not do the trick (I tried,
btw): a ColumnDecorator only receives the property attribute as argument, in
my case, the name, which is insufficient to build the url. It also has no access
to the pageContext, so I don't think there is a way I could figure out how to
build the proper link from a ColumnDecorator.

In any case, my above snippets and explanation were incomplete and unclear.
Here is what I tried with decorators:

<display:table id="user-collection" name="sessionScope.bean.collection"
defaultsort="1" decorator="somepackage.ManufacturerDecorator">

<display:column title="Name" property="manufacturerName" href="manufacturerLink"
paramId="id" paramProperty="manufacturerId" sortable="true" />

and the decorator:

public class ManufacturerDecorator extends TableDecorator {
        public String getManufacturerName() {
... (works well)
}
        public String getManufacturerLink() {
... (doesn't work -- isn't called, the generated link is /manufacturerLink?id=)
}
        public String getManufacturerId() {
... (doesn't work -- isn't called and I get a "error looking up property
manufacturerId for object")
}
}

As I said, it seems the table decorator is only called for the property 
attribute,
whereas I'd like it called for href and paramId as well.
Hope someone can shed light on this.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249318

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to