[jboss-user] [JBoss Portal] - Re: How to access portlet preferences when not logged in

tomstrummer do-not-reply at jboss.com
Tue Apr 8 16:26:25 EDT 2008


Finally figured out the answer.

Put something like the following in portlet.xml:

  |       <portlet-preferences>
  |          <preference>
  |             <name>expires</name>
  |             <value>180</value>
  |          </preference>
  |          <preference>
  |             <name>RssXml</name>
  |             <value>http://xml.weather.yahoo.com/forecastrss?p=33145</value>
  |             <read-only>false</read-only>
  |          </preference>
  |       </portlet-preferences>
  |    </portlet>
  | </portlet-app>
  | 

The names have to match what's being used in your code when you pull preference values.  But anything that's defined there shows up on a "preferences" page in the admin portlet once you've created a portlet instance.

See also Portlet 1.0 spec, section PLT.14.3 (bottom of p58, 59)

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

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



More information about the jboss-user mailing list