My portlet-instances.xml is as follow:

  | <?xml version="1.0" standalone="yes"?>
  | <instances>
  |    <instance>
  |       <instance-name>Servicos</instance-name>
  |       <component-name>PagePortlet</component-name>
  |       <preferences>
  |          <preference>
  |             <name>teste</name>
  |             <value>teste</value>
  |          </preference>
  |       </preferences>
  |       <security>
  |          <rules>
  |             <rule role="Admins" patterns=".*:.*" level="admin"/>
  |             <rule role="Users" patterns=".*:.*" level="add"/>
  |             <rule role="" patterns=".*:.*" level="read"/>
  |          </rules>
  |       </security>
  |    </instance>
  | </instances>
  | 

I've tryed to access the preference of the instance with:

request.getPreferences().getValue("teste","abc");

in the render method of the portlet but the returned value was "abc", the 
default value passed as the second param.

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to