[jboss-user] [JBoss Portal] - Re: about portlet preference

piergiorgiolucidi do-not-reply at jboss.com
Thu Jul 23 10:16:05 EDT 2009


You can try in this way:

  | Object o = FacesContext.getCurrentInstance().getExternalContext().getRequest();
  | PortletRequest request = (PortletRequest) o;
  | PortletPreferences pp = request.getPreferences();
  | pp.setValue(preferenceKey,value);
  | pp.store(); 
  | 

Hope this helps.

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

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



More information about the jboss-user mailing list