-
1. Re: portlet window preferences and transactions
peterj Apr 15, 2008 3:20 PM (in response to erezharari)You do not need to worry about transactions when accessing portlet preferences. But if you update the preferences in processAction() method, make sure your call PortletPreferences.sator().
-
2. Re: portlet window preferences and transactions
erezharari Apr 16, 2008 12:08 AM (in response to erezharari)well, i'm using JSF portlets with the portlet bridge. i don't cnage the properties from the default jsr 168 methods. does that make any change?
so there is no requirement to configure in jboss-portlet.xml:<transaction> <trans-attribute>Required</trans-attribute> </transaction>
? -
3. Re: portlet window preferences and transactions
peterj Apr 16, 2008 10:58 AM (in response to erezharari)The preferences are handled entirely by the portlet container - it handles any required transactions to save updated property values.
You need the trans-attribute only if your portlet does its own database work.
(also, earlier I meant PortletPreferences.store(), one of these days I will either learn how to type or how to spell...) -
4. Re: portlet window preferences and transactions
erezharari Apr 17, 2008 3:43 AM (in response to erezharari)OK, so freferences is clear.
what about window properties?
do i need a transaction to read/write portlet window properties?