1. Rosa Isela11/16/2007 05:17:08 PM
Hi John
I need to filter a view by ForumTitle (component parameter), in order to have 2 instances of the portlet, each one with different ForumTitle, so each portlet will show the topics created on each portlet.
I added the element "forum" to the schemaTopic, then added the a colum to the view query vqTopicsForum.
I'm trying to place the "ForumTitle" parameter in a session variable on the beforePageLoad event (on the page "viewTopicsForum")
sessionScope.put("Forum", context.getParameter("ForumTitle"));
And then filter the view with
forum = "#{sessionScope.Forum}"
just as you did with "InstanceID", but it show an empty view because the session variable "Forum" is empty ("").
Where is the problem!??
Thanks
2. Rosa Isela11/20/2007 11:23:00 AM
OK I found the problem, it was on the event beforePageLoad, intead using directly the context:
sessionScope.put("Forum", context.getParameter("ForumTitle"));
I used:
sessionScope.put("Forum", getForumTitle());
Regards
3. John Mackey11/21/2007 09:47:54 AM
Hi Rosa,
Sorry for the delay in responding. I'm glad you found the solution. I thought I'd give you enough time to solve it on your own...
Regards,
John