cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Trillaud" <>
Subject RE : New Portal Fw : How works coplet Persistance ?
Date Mon, 21 Jul 2003 12:45:18 GMT
Humm. I tried a lot of things, but it still not working.

First of all, I changed 'session' to 'persistent' in the cocoon.xconf in
the coplet-instance-data-aspects
<!-- Coplet factory configuration -->
                <aspect auto-create="true" class="java.lang.Integer"
                 name="size" store="persistent" value="1"/>

Second I tried to invoke the saveUserProfiles method on the
ProfileManager with the following XSP
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java" xmlns:xsp="">

	ProfileManager profileManager = new ProfileManager();

But I got this error "The type ProfileManager cannot be instantiated"

Third I tried to save the profile with the save-user-profile url defined
in the internal cocoon pipeline and in the application handler. It seems
to do the same thing.
When the guest user logout I got the following storage in the
    <coplet-instance-data id="BBCNews-1" name="standard">
            <value xmlns:xsi=""
Now the state minimize or restore seems to be store

Fourth I try to change it, by editing this file. I changed the value of
size by '0'. I log me again with the user guest and the BBCNews coplet,
instead of to be minimized is with his content (the cinclude is
generated) and with 4 buttons instead of 3 on the title bar: the full
screen button, the restore button (good, it found that this coplet is
minimized), the minimize button (it should not), and the close button!

Any help will be greatly appreciated.

> -----Message d'origine-----
> De : Carsten Ziegeler []
> Envoyé : jeudi 10 juillet 2003 10:03
> À :
> Objet : RE: New Portal Fw : How works coplet Persistance ?
> You have to do two things: first one is changing the store from
> 'session' to 'persistent' as you already did.
> The second thing you have to do is to save the profile; actually
> the portal does not have a button or something like this to save
> the profile automatically.
> For saving you have to invoke the saveUserProfiles() method on the
> ProfileManager.
> PS: Could you please post emails in plain text and not html.
> Carsten
> -----Original Message-----
> From: Laurent Trillaud []
> Sent: Thursday, July 10, 2003 9:57 AM
> To:
> Subject: New Portal Fw : How works coplet Persistance ?
> Hi
> I'm trying to understand how works coplet persistence without success.
> My deal is to store the state of the coplet (minimize/maximize)
> session for a given user.
> I played with the parameter store 'persistent' instead of 'session' in
> portal part of the cocoon.xconf without success.
> The final goal is to add some new coplet attributes, to store, like
> absolute
> positions and layer position associated with a new skin.
> Laurent
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message