Thanks for you advice - I had the same problem.

To make it work with perferences on portal v2.2, one need to add the flowing 
code to CMSPortlet.java.

Insert this in the beging of doView:

String tmpIndexpage = req.getPreferences().getValue("indexpage", 
LINK_MODE_PORTLET);     
  |       if(!LINK_MODE_PORTLET.equals(tmpIndexpage)) {
  |             log.info("sets the new cms page to "+tmpIndexpage );
  |             indexpage=tmpIndexpage;
  |       }     

This why you change the value of the indexPage (which is set at init), to the 
on from the portlet perference.

Of course a rebuild of the source is needed.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935638#3935638

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935638


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to