Hi all - I have attached a simple example of using setPerm() adapted from the HelloAction example. This example only uses get and set Perm() to get and set a test string and put it in the context.
The behavior is that once the test string is set within one session, the
portal remembers what the test string is. However, upon logouts or
restarts, the portal has no memory of the test string and cannot retrieve it
from permanent storage.
The jetspeed and velocity logs note nothing special and the files are all in
folders where Jetspeed can find them. I am using a version of a3 built two
weeks ago and nothing else is "wrong" with it. I suspect that I am not
using the features provided correctly, but this is a very simple example
that should work unless my understanding is way off.
Any thoughts?
TIA,
Josh Hone
<portlet-entry name="PermTest" hidden="false" type="ref"
parent="CustomizerVelocity" application="false">
<security role="user"/>
<meta-info>
<title>Testing Persistent Storage</title>
<description>This tests persistent storage of objects by
attaching them to the user.</description>
</meta-info>
<classname> org.apache.jetspeed.portal.portlets.CustomizerVelocityPortlet
</classname>
<parameter name="template" value="permtest" hidden="false"
cachedOnName="true" cachedOnValue="true"/>
<parameter name="action" value="portlets.PermTestAction"
hidden="false" cachedOnName="true" cachedOnValue="true"/>
<parameter name="test" value="Default value from the registry"
hidden="false" cachedOnName="true" cachedOnValue="true"/>
<media-type ref="html"/>
<url cachedOnURL="true"/>
</portlet-entry>
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
PermTestAction.java
Description: Binary data
permtest.vm
Description: Binary data
permtest-customize.vm
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
