[jboss-user] [JBoss Portal] - can't access preference at runtime

mohan_chaudhari do-not-reply at jboss.com
Wed May 2 05:51:29 EDT 2007

I want to create different instances of same portlet depending upon preferences so 
I put 
          in portlet-instance.xml

 And try to get value by 
          String pref = null;
          Request.getPreferences().getValue("name", pref);

 It shows null Why? The code works if i put preferences in portlet.xml. can i put preferences in portlet-instances.xml and fetch it's value at runtime ?

When i look at newsportlet example i found expire prefrence at both places portlet-instance.xml as well as portlet.xml ? why is it so?

Thanks in advance

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

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

More information about the jboss-user mailing list