-
1. Re: preferences in portlet-instances.xml
habicht Aug 30, 2007 2:09 AM (in response to habicht)ups! used quote instead of code.
-
2. Re: preferences in portlet-instances.xml
peterj Aug 30, 2007 11:00 AM (in response to habicht)Your syntax looks correct. Use the Management Portlet to double-check the portlet instances defined to the portal and make sure that your instance has the preferences set.
-
3. Re: preferences in portlet-instances.xml
habicht Aug 31, 2007 2:26 AM (in response to habicht)thanks for your answer. i found out that i had to wipe the database in order to refresh the value of the preferences in the instances. redeploying and rebooting the jboss doesn't work but if the database is rebuilt the preferences are set with the correct value.
-
4. Re: preferences in portlet-instances.xml
theute Aug 31, 2007 8:47 AM (in response to habicht)While reading this i had a close look at it and found a bug that doesn't seem related to what you are trying.
New values of the preferences should be picked (in portlet-instances.xml)
The bug was if you removed a portlet preference from portlet-instances, the data wasn't actually removed.
I'm still curious to know why it fails for you, if you just added or updated a value it should work (i tried again with the weather portlet) -
5. Re: preferences in portlet-instances.xml
peterj Aug 31, 2007 11:25 AM (in response to habicht)Personally, I have found that making changes in the configuration files is not a guarantee that those changes will be reflected in the portal on restart. Therefore I always start with a clean install when I make such changes. Of course I have the luxury of being able to do so because usually I am experimenting with non-production portals. In a production portal, I rely on the Management Portlet to make any such changes. Works every time. And when you think about it, using the configuration files to perform an initial load of your portlet and then using the Management Portlet to tweak and modify the configuration is a very logical way of approaching portal management.
-
6. Re: preferences in portlet-instances.xml
kpalania Aug 31, 2007 12:11 PM (in response to habicht)I agree. I am having to do a clean install as well, and this wasn't very intuitive :(
I've made it a practice now and is part of the ANT target! -
7. Re: preferences in portlet-instances.xml
habicht Sep 3, 2007 2:14 AM (in response to habicht)i tried again with other portlets. after adding the necessary info into the portlet.xml and portlet-instances.xml, deploying and restarting, i only received the value from the portlet.xml file. after wiping the database again i got the correct value from the portlet-instances.xml file.