[ http://jira.codehaus.org/browse/DISPL-139?page=comments#action_38796 ] Maarten Coene commented on DISPL-139: -------------------------------------
Any idea when this is going to be added and when a beta-release will be available containing this change? You can keep 1.0 compatibility by creating a new interface, like: ContextAwareColumnDecorator which extends ColumnDecorator and has a method to set the pageContext. For instance: ContextAwareColumnDecorator extends ColumnDecorator { void setContext(PageContext context); } Where you create the columndecorator instance, you can check if it implements this ContextAwareColumnDecorator interface and if it does, you can call the setContext() method on it and pass the pageContext. this way, the 1.0 decorators keep working... regards, Maarten > Will ColumnDecorator regain access to the PageContext? > ------------------------------------------------------ > > Key: DISPL-139 > URL: http://jira.codehaus.org/browse/DISPL-139 > Project: DisplayTag > Type: Improvement > Components: Decorators > Versions: 1.0 RC2 > Reporter: Paul Reader > Fix For: 1.1 > > > I'm been on the verge of upgrading from v0.8.5 for several months now. The > one thing holding me back is the fact that the ColumnDescorator no longer has > access to the PageContext as it does in v0.8.5. > Almost all of my column decorators use the ColumnDecorator init() method for > i18n purposes. The addition of the column sortProperty attribute now means I > can use the TableDecorator for the same purpose, but before I discard all my > column decorators, which are really convenient, is there any plan to > reinstate this functionality? > Thanks > Paul > P.S. Sorry if this sounds like I'm moaning. This is a great tag library. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel