Hallo, thank you very much. Understanding edit_defaults mode was the key feature. Distgusting how different these things are, even EDIT mode from the spec. But now it works, thank you and
cheers Am 09.06.2010 20:39, schrieb David Sean Taylor:
When addressing features not directly defined by the spec, like 'how are preferences are edited by the administrator for other users", every portal is open to interpret to their own implementation In this case, Jetspeed interpretation is to handle it within the confines of the spec, using Portlet Modes: Edit Mode - as defined by the spec, Edit Mode sets the preferences for the current user. Thus is the admin user is logged on, and goes into Edit Mode, we believe Edit Mode should follow the spec and set preferences for the current user, the administrator. Edit Defaults Mode - this is an extended mode for Jetspeed, allowing us to set default settings for all users. Usually we protect this mode with a security constraint where only the administrative user (or a delegated administrative user) can configure edit defaults On Tue, Jun 8, 2010 at 7:29 AM, Johannes Hoechstaedter <[email protected]> wrote:Hello everybody, we tried out some development issues porting portlets from Liferay to Jetspeed-2. Jetspeed is running in version 2.2.1 on Tomcat. Comming from Liferay I found out, that same functions in Liferay do not behave like in Jetspeed. On storing PortletPreferences I run into the following problem: If I login into Jetspeed as admin, I am able to go into the "edit" page (edit mode from portlet spec) of my portlet. I am able to set some values and to save them into PortletPreferences, by the following code: ----------------------------------------------------- ... PortletPreferences prefs = request.getPreferences(); prefs.setValue("foobar-key", "foobar"); prefs.store(); ... ----------------------------------------------------- After saving the preferences as described above, everything is as it should be. The preferences are stored, and the portlet is running. But right after I have logged out from Jetspeed, nothing is working anymore for my portlet. The preferences for the portelt seem to be empty. Where have all the values gone? The portlet is designed to be a multiuser portlet and should be accessed by anonymous users as well. The question is: Is it possible in Jetspeed (as in Liferay) to store/access preferences for a portlet anonymously for all users, because I want to have these settings not only for the admin account as described above? I am looking forward to any helpful response, Johannes Höchstädter -- Johannes Höchstädter www.memocomp.de --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
-- Johannes Höchstädter www.memocomp.de --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
