Sam Alexander commented on Oct 25, 2011

Re: Handling public render parameters using IBM Web Experience Factory 7.0.1

Also, for other readers, don't forget to enable public render parameters in WEF, otherwise the sample will not work. See "Support for navigation state stored in JSR-168/JSR-286 render parameters" section in the Portlet Adapter help.

Sam Alexander commented on Oct 25, 2011

Re: Handling public render parameters using IBM Web Experience Factory 7.0.1

Nice and helpful summary!

Rather than coding and using java reflection to set the public render parameter: If you are using a recent version of WPF/WEF, you can simply use the portletHelper.setRenderParameter(key,val) LJO method that the Portlet Adapter builder provides. In other words, the Button builder in your Publisher model can simply call portletHelper.setRenderParameter, passing OrderID and ${Inputs/namedTag}. This would allow you to completely remove your setRenderParam LJO code.

Sam