7 Replies Latest reply on Sep 3, 2007 2:14 AM by habicht hawk

    preferences in portlet-instances.xml

    habicht hawk Newbie

      hi! i'm trying to read preferences out of the portlet-instances.xml but it doesn't work. i've read other posts concerning the same topic but i couldn't find a solution. the only thing that works is getting the value from the portlet.xml file.

      public class PortletA extends GenericPortlet
      protected void doView(RenderRequest request, RenderResponse response)
      throws PortletException, PortletSecurityException, IOException


      <?xml version="1.0" encoding="UTF-8"?>
      <portlet-app id="PortletA" version="1.0">
      <portlet id="PortletA">
      <short-title>Portlet A</short-title>


      so looking at my files this means that i receive portlet.xml inestad of portlet-instances.xml

      Windows XP Pro SP2
      jdk 1.5.0_09
      JBoss Portal 2.6 Bundle (binary)
      Postgres 8.3
      Hibernate 3

      thanks in advance