OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exo-portlet-container List | March 2008 Index

    Date Index  -->     Thread Index  -->

[[exo-portlet-container]] eXo Portlet Container 2.0 RC3 (A possible bug)


Dear,

I am writing because I am testing the RC3 of eXo Platform Portlet
Container 2.0 and I cannot read the portlet?s preferences. I do not if
I am doing something wrong or it is a bug. I tested it with the
following code:

public void doView(RenderRequest portletRequest,
            RenderResponse portletResponse)
            throws PortletException,IOException {

   PortletPreferences preferences = portletRequest.getPreferences();

   int count = 0;
   Enumeration e = preferences.getNames();
   while(e.hasMoreElements()){
      e.nextElement();
      count++;
   }
   System.out.println(count);
} 

And the content of my portlet.xml file is:

...
<portlet-preferences> 
   <preference>
      <name>location</name>
      <value>SPXX0191</value>
      <read-only>false</read-only>
   </preference>
   <preference>
      <name>units</name>
      <value>f</value>
      <read-only>false</read-only>
   </preference>
</portlet-preferences>
...

But the result of the code is always ?0?.

Best Regards,
  Sandy Perez        mailto:sperezgonza@xxxxxxxx



    Date Index  -->     Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.