Hi,
Here is the code you gave me last time. I must say that I don(t really understand it.
It worked before that I tried to add a page field inside the container:
//Update id value
JahiaField theField = container.getField("id");
theField.setValue(new Integer(container.getID()).toString());
FieldsChangeEventListener listener = new FieldsChangeEventListener();
listener.notifyChange(theField.getID());
ServicesRegistry.getInstance().getJahiaContainersService().saveContainer(container,
container_list.getID(), jParams);
It seems that I indeed save the whole container but how can I just save the field in
both mode (active and staging)?
Best regards,
Julien
---------- Debut du message initial -----------
De : "Serge Huber" [EMAIL PROTECTED]
A : [EMAIL PROTECTED]
Copies :
Date : Wed, 25 Aug 2004 16:21:29 +0200
Objet : Re: Fw:SaveContainer
>
> Did you try just saving the field instead of the whole container ?
>
> Regards,
> Serge Huber.
>
> julien.thai wrote:
>
> >Hi,
> >
> >i have declared a container with a page field and an integer field.
> >when I try to dynamically update the integer field I loose the page field (null)
> >
> >does anyone know what happens when I call the saveContainer method and how to
> >prevent that?
> >
> >Thanks in advance,
> >
> >Julien
> >
> >Acc�dez au courrier �lectronique de La Poste : www.laposte.net ;
> >3615 LAPOSTENET (0,34�/mn) ; t�l : 08 92 68 13 50 (0,34�/mn)
> >
> >
> >
> >
> >
> >Acc�dez au courrier �lectronique de La Poste : www.laposte.net ;
> >3615 LAPOSTENET (0,34�/mn) ; t�l : 08 92 68 13 50 (0,34�/mn)
> >
> >
> >
> >
> >
> >
>
>
Acc�dez au courrier �lectronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,34�/mn) ; t�l : 08 92 68 13 50 (0,34�/mn)