cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@apache.org>
Subject Re: [XMLForm] initialization of the model
Date Tue, 21 Jan 2003 02:59:40 GMT

Yes, to both questions.

----- Original Message -----
From: <Sylvain.Thevoz@swisscom.com>
To: <cocoon-users@xml.apache.org>
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:ivelin@apache.org]
Date: lundi, 20. janvier 2003 15:18
À: cocoon-users@xml.apache.org
Objet: Re: [XMLForm] initialization of the model


Try the overriding reset()


----- Original Message -----
From: <Sylvain.Thevoz@swisscom.com>
To: <cocoon-users@xml.apache.org>
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message