Hello Bastian,
Tried your option and it worked great for me. Thanks a
lot for the suggestion.
-Santosh
2009/6/11 Bastian Pawlik <[email protected]>
> Hello Santosh,
>
> > Can I pass a parameter to the constructor of a sub classed
> > TableDecorator from JSP? If yes, how?
> >
> > For example
> >
> > <display:table name="collection" id="parent"
> >
> >
> > decorator="com.SearchResultsTOWrapper(<parameter>)"
> >
>
> I had a similar problem. I needed the commandContext from my webspehere
> application passed to my subclassed table decorator.
> Here is the way I did it:
>
> <jsp:scriptlet>
> path.to.MyTableDecorator myDecorations =
> new
> path.to.MyTableDecorator(request.getAttribute("CommandContext"));
> pageContext.setAttribute("myDecorator", myDecorations);
> </jsp:scriptlet>
>
> <display:table name="collection" decorator="myDecorator">
> ...
>
> Hope this is way you were looking for.
>
> Regards,
> Bastian
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user