This content has been marked as final.
Show 9 replies
-
1. Re: Preferences
patrickdalla Feb 18, 2005 3:35 PM (in response to patrickdalla)is it right?
how is the right way to access a portlet instance preference -
2. Re: Preferences
julien1 Feb 18, 2005 3:51 PM (in response to patrickdalla)did you declare the pref in the portlet.xml as well ?
-
3. Re: Preferences
patrickdalla Feb 21, 2005 10:33 AM (in response to patrickdalla)No.
I have to declare the preference? How?
There is a help for these xml files? -
4. Re: Preferences
patrickdalla Feb 21, 2005 12:08 PM (in response to patrickdalla)I've changed the portlet.xml to:
<?xml version="1.0" encoding="UTF-8"?> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd" version="1.0"> <portlet> <portlet-name>PagePortlet</portlet-name> <portlet-class>br.gov.trf2.jfes.intranet.portlets.PagePortlet</portlet-class> <supported-locale>en</supported-locale> <resource-bundle>Resource</resource-bundle> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> <portlet-mode>HELP</portlet-mode> </supports> <portlet-info> <title>Page include portlet</title> </portlet-info> <portlet-preferences> <preference> <name>teste</name> <value>portlet</value> </preference> </portlet-preferences> </portlet> </portlet-app>
And the value returned was "portlet" and not anymore the default value.
But I want it to return the instance value "teste" just as configured in portlet-instances.xml i've posted in the first message. -
5. Re: Preferences
julien1 Feb 21, 2005 12:17 PM (in response to patrickdalla)I am going to look into it
-
6. Re: Preferences
patrickdalla Feb 22, 2005 12:09 PM (in response to patrickdalla)Ok.
When you've solved the problem post a message here.
thanks -
-
8. Re: Preferences
patrickdalla Feb 23, 2005 11:03 AM (in response to patrickdalla)So?
what class do I have to update?
how I get the source code?
I'm behind a firewall and connot use cvs. Can I download via http? -
9. Re: Preferences
julien1 Feb 23, 2005 11:06 AM (in response to patrickdalla)not yet available on http, only available through CVS access.
I have requested a daily archive for the portal, but I think it is not done yet : http://jira.jboss.com/jira/browse/JBQA-68
you can vote for it :-)