[jboss-user] [JBoss Portal] - Persisting Prefs broken in 2.4 ?

free1000 do-not-reply at jboss.com
Wed Oct 18 10:40:33 EDT 2006


Hi, I've been trying to store changes to portlet preferences with no joy. 

I have this fragment in portlet.xml

<portlet-preferences>
  |         <preference>
  |           <name>listSize</name>
  |           <value>10</value>
  |           <read-only>false</read-only>
  |          </preference>  
  | </portlet-preferences> 

However I get a ReadOnlyException when I try to store a change to this.  

 
  | try {
  | String listSize = aRequest.getParameter("listSize"); 
  |   if (listSize!=null) { 
  |     aRequest.getPreferences().setValue("listSize", listSize);
  |   } 
  | }  
  | catch (ReadOnlyException r){
  |    //TODO log this 
  |    r.printStackTrace();
  |  }
  | 

I have my app deployed as an EAR file. I'm curious as to how a portlet preference is stored (assuming its working rather than what I am getting). 



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

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



More information about the jboss-user mailing list