Re: [XMLForm] initialization of the model

2003-01-20 Thread Ivelin Ivanov
Try the overriding reset()


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 2:53 AM
Subject: [XMLForm] initialization of the model


Hi all,

I'm trying to initialize the model of a XMLForm app each time I call this
app.
This app is launching from the Cocoon portal, in an authenticated
environment.

I have followed the solution coming from the posts in this list (thank you
for that). The solution was to override the getFormModel() method in the
Action class to initialize the model inside.

I've done this but I still have a problem: the initialization is proceeded
only the first time I call the app (the action) and not each time.
What should I do for doing this?
Is there maybe a session problem?

Any help would be greatly appreciated.
Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: [XMLForm] initialization of the model

2003-01-20 Thread Sylvain.Thevoz
Hi Ivelin,

I have tried to put these lines in the prepare() method and it works:

code
Form.remove(getObjectModel(), getFormId());
getForm().addFormListener(this);
code

But to understand this thing could you tell me:
- the getFormModel() method is called the first time you call the app, right?
- is the getFormModel() method called before or after the prepare() method?
- the prepare() method is called each time you call the app, right?

Thank you
Regards
Sylvain


-Message d'origine-
De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
Date: lundi, 20. janvier 2003 15:18
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] initialization of the model


Try the overriding reset()


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 2:53 AM
Subject: [XMLForm] initialization of the model


Hi all,

I'm trying to initialize the model of a XMLForm app each time I call this
app.
This app is launching from the Cocoon portal, in an authenticated
environment.

I have followed the solution coming from the posts in this list (thank you
for that). The solution was to override the getFormModel() method in the
Action class to initialize the model inside.

I've done this but I still have a problem: the initialization is proceeded
only the first time I call the app (the action) and not each time.
What should I do for doing this?
Is there maybe a session problem?

Any help would be greatly appreciated.
Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: [XMLForm] initialization of the model

2003-01-20 Thread Ivelin Ivanov

Yes, to both questions.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 9:45 AM
Subject: RE: [XMLForm] initialization of the model


Hi Ivelin,

I have tried to put these lines in the prepare() method and it works:

code
Form.remove(getObjectModel(), getFormId());
getForm().addFormListener(this);
code

But to understand this thing could you tell me:
- the getFormModel() method is called the first time you call the app,
right?
- is the getFormModel() method called before or after the prepare() method?
- the prepare() method is called each time you call the app, right?

Thank you
Regards
Sylvain


-Message d'origine-
De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
Date: lundi, 20. janvier 2003 15:18
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] initialization of the model


Try the overriding reset()


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 2:53 AM
Subject: [XMLForm] initialization of the model


Hi all,

I'm trying to initialize the model of a XMLForm app each time I call this
app.
This app is launching from the Cocoon portal, in an authenticated
environment.

I have followed the solution coming from the posts in this list (thank you
for that). The solution was to override the getFormModel() method in the
Action class to initialize the model inside.

I've done this but I still have a problem: the initialization is proceeded
only the first time I call the app (the action) and not each time.
What should I do for doing this?
Is there maybe a session problem?

Any help would be greatly appreciated.
Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]