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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to