Tuesday, 6 November 2007

WebSphere Portal action url

I been working today with creating action url from within WebSphere Portal using the excellent article from developerworks.

But i keept getting a classcast String exception when adding action parameter to my generated call.

The answer was that the provided map to the PortletAccessorController should contain item if type String and String[]

like this:
Hash map = new HashMap();
map.put("test",new String[] {"myTestItem"})

Hope this help someone outthere

No comments: