Le mercredi 15 d�cembre 2004 � 23:43 +0100, Erik Bruchez a �crit :
> > Yes, but then am I right to say that you need to fetch the instance in
> > the PFC to build the XForms model and to save it in either the pipeline
> > for the model or the pipeline for the view or is there a single location
> > where I could do both?
>
> I am not too sure I understand. The instance is initially described (or
> referred to) by the XForms model, and it just contains default values.
> When a form is submitted, the instance is rebuilt, and this time it
> contains values entered by the user.
>
> Can you describe a little better the flow of data and/or pages you are
> looking at?
The flow you are describing is fine in a context where users always
start their interaction with the system with the form default values.
In a system where XForms would be used to let people edit XML documents
created by others, the model would have to be initialised with the
current values of a document.
The flow to edit a document is thus:
* initialise the model with the current document in the pipeline
referred by the "xforms" attribute of the page definition.
* save the instance model as the updated document in the pipeline
referred by the "model" or "view" attribute.
The tests I have done seems to show that this is working but I was
wondering if these two actions could be done in the same pipeline (this
would let us centralise the definition of the "backend" related to the
form).
As I understand from the answers I have got so far, this is not
possible:
* the purpose of the first pipeline is to build the model, the
instance isn't available at that moment and thus it's too early
to save it.
* in the second pipelines (where the instance is available), the
model has already be built and thus it's too late to load the
initial values.
Thanks,
Eric
--
Read me on XML.com.
http://www.xml.com/pub/au/74
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user