submission - replace

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

submission - replace

Didier Mounoud
Hi all !

I have a form which is loaded either for new creations or existed data edition.

I validate this form by an XML Schema and describe it with a separated model.

When I add a new form, it' ok. But when i'd like to edit one, i can't do the submission.

I load the form with this submission to retrieve the correct data :

<xforms:submission id="load-submission" serialize="false" action="/exist/rest/db/training/training{{xxforms:instance('received-instance')/TrainingId}}.xml" validate="false"
method="get" replace="instance" xxforms:instance="training" f:url-type="resource"/>

This submission works and retrieve the correct values from the database, because fields are fulfilled with the correct values. But binds and schema validation failed. Thus, i can't submit the form after an edition.

Thanks a lot for your comments!

--
Didier



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: submission - replace

Alessandro Vernet
Administrator
Hi Didier,

1. Try to enable debugging in the XForms server. In config/log4j.xml,
uncomment the section:

<category name="org.orbeon.oxf.xforms.processor.XFormsServer">
    <priority value="debug"/>
</category>

Restart the application, and after this you might see more information
in the logs about why the validation fails.

2. If you want the submission to be performed even if the document is
not valid, add the validate="false" attribute on your
<xforms:submission>. But of course, I assume that if you specify a
schema here, you would like validation to be performed :).

Alex

On 2/15/07, [hidden email] <[hidden email]> wrote:

> Hi all !
>
> I have a form which is loaded either for new creations or existed data edition.
>
> I validate this form by an XML Schema and describe it with a separated model.
>
> When I add a new form, it' ok. But when i'd like to edit one, i can't do the submission.
>
> I load the form with this submission to retrieve the correct data :
>
> <xforms:submission id="load-submission" serialize="false"               action="/exist/rest/db/training/training{{xxforms:instance('received-instance')/TrainingId}}.xml" validate="false"
> method="get" replace="instance" xxforms:instance="training" f:url-type="resource"/>
>
> This submission works and retrieve the correct values from the database, because fields are fulfilled with the correct values. But binds and schema validation failed. Thus, i can't submit the form after an edition.
>
> Thanks a lot for your comments!
>
> --
> Didier
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: submission - replace

Didier Mounoud
Hi Alex,

thx a lot.
Debug mode helps me to find the error which was in my instance
declaration. Forget to declare xmlns="".

Thanks again.

--
Didier

Alessandro Vernet a écrit :

> Hi Didier,
>
> 1. Try to enable debugging in the XForms server. In config/log4j.xml,
> uncomment the section:
>
> <category name="org.orbeon.oxf.xforms.processor.XFormsServer">
>    <priority value="debug"/>
> </category>
>
> Restart the application, and after this you might see more information
> in the logs about why the validation fails.
>
> 2. If you want the submission to be performed even if the document is
> not valid, add the validate="false" attribute on your
> <xforms:submission>. But of course, I assume that if you specify a
> schema here, you would like validation to be performed :).
>
> Alex
>
> On 2/15/07, [hidden email] <[hidden email]> wrote:
>> Hi all !
>>
>> I have a form which is loaded either for new creations or existed data
>> edition.
>>
>> I validate this form by an XML Schema and describe it with a separated
>> model.
>>
>> When I add a new form, it' ok. But when i'd like to edit one, i can't
>> do the submission.
>>
>> I load the form with this submission to retrieve the correct data :
>>
>> <xforms:submission id="load-submission"
>> serialize="false"              
>> action="/exist/rest/db/training/training{{xxforms:instance('received-instance')/TrainingId}}.xml"
>> validate="false"
>> method="get" replace="instance" xxforms:instance="training"
>> f:url-type="resource"/>
>>
>> This submission works and retrieve the correct values from the
>> database, because fields are fulfilled with the correct values. But
>> binds and schema validation failed. Thus, i can't submit the form
>> after an edition.
>>
>> Thanks a lot for your comments!
>>
>> --
>> Didier
>>
>>
>>
>> --
>> You receive this message as a subscriber of the
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: submission - replace

Alessandro Vernet
Administrator
Didier,

That famous xmlns="". It's not the first time or the last time this
will happen :). An easy way to avoid this problem altogether is avoid
defining a default namespace. (This is the approach I take in my
code.)

Alex

On 2/16/07, Didier Mounoud <[hidden email]> wrote:

> Hi Alex,
>
> thx a lot.
> Debug mode helps me to find the error which was in my instance
> declaration. Forget to declare xmlns="".
>
> Thanks again.
>
> --
> Didier
>
> Alessandro Vernet a écrit :
> > Hi Didier,
> >
> > 1. Try to enable debugging in the XForms server. In config/log4j.xml,
> > uncomment the section:
> >
> > <category name="org.orbeon.oxf.xforms.processor.XFormsServer">
> >    <priority value="debug"/>
> > </category>
> >
> > Restart the application, and after this you might see more information
> > in the logs about why the validation fails.
> >
> > 2. If you want the submission to be performed even if the document is
> > not valid, add the validate="false" attribute on your
> > <xforms:submission>. But of course, I assume that if you specify a
> > schema here, you would like validation to be performed :).
> >
> > Alex
> >
> > On 2/15/07, [hidden email] <[hidden email]> wrote:
> >> Hi all !
> >>
> >> I have a form which is loaded either for new creations or existed data
> >> edition.
> >>
> >> I validate this form by an XML Schema and describe it with a separated
> >> model.
> >>
> >> When I add a new form, it' ok. But when i'd like to edit one, i can't
> >> do the submission.
> >>
> >> I load the form with this submission to retrieve the correct data :
> >>
> >> <xforms:submission id="load-submission"
> >> serialize="false"
> >> action="/exist/rest/db/training/training{{xxforms:instance('received-instance')/TrainingId}}.xml"
> >> validate="false"
> >> method="get" replace="instance" xxforms:instance="training"
> >> f:url-type="resource"/>
> >>
> >> This submission works and retrieve the correct values from the
> >> database, because fields are fulfilled with the correct values. But
> >> binds and schema validation failed. Thus, i can't submit the form
> >> after an edition.
> >>
> >> Thanks a lot for your comments!
> >>
> >> --
> >> Didier
> >>
> >>
> >>
> >> --
> >> You receive this message as a subscriber of the
> >> [hidden email] mailing list.
> >> To unsubscribe: mailto:[hidden email]
> >> For general help: mailto:[hidden email]?subject=help
> >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >>
> >>
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > --
> > You receive this message as a subscriber of the [hidden email] mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws