Submission issue

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

Submission issue

Ozakca, Muzaffer

Hi, I’m currently integrating Orbeon with the Java application I’m building. I’m using Click Framework which is a great, lightweight framework. I was able to create a form and I can interact with it. I also enabled Xforms logging and the instance inspector widget. The issue arises when I try to submit the data for storage. When I click the submit button, the browser is taken to:

 

http://localhost:9090/app/orbeon/xforms-renderer and it displays this XML:

 

<?xml version="1.0" encoding="utf-8"?><null xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>

 

Although the URL above looks suspicious (orbeon after app) since it shows an XML instead of an error page, I guess it is going through Orbeon.

 

The submission element in my xforms model looks like this

<xforms:submission id="modsForm" ref="instance('mods')" method="post" action="/app/save-metadata.htm">

 

And the submit button is defined as

<xforms:submit submission="modsForm">                                       
           
<xforms:label>Save</xforms:label>
</xforms:submit>

I can see the instance(‘mods’) in the inspector widget. There is no indication of an error in the orbeon.log. Does anybody have an idea what could be wrong? I’m a newbie.

 

Thanks,

Muzaffer



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Submission issue

Frank Feng

 

Try disabling optimized submissions in properties.xml:

<property as="xs:boolean" name="oxf.xforms.optimize-local-submission"  value="false"/>

 
It solved submission problem I had before.

Frank


From: Ozakca, Muzaffer [mailto:[hidden email]]
Sent: 14 October 2008 16:01
To: [hidden email]
Subject: [ops-users] Submission issue

Hi, I’m currently integrating Orbeon with the Java application I’m building. I’m using Click Framework which is a great, lightweight framework. I was able to create a form and I can interact with it. I also enabled Xforms logging and the instance inspector widget. The issue arises when I try to submit the data for storage. When I click the submit button, the browser is taken to:

 

http://localhost:9090/app/orbeon/xforms-renderer and it displays this XML:

 

<?xml version="1.0" encoding="utf-8"?><null xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>

 

Although the URL above looks suspicious (orbeon after app) since it shows an XML instead of an error page, I guess it is going through Orbeon.

 

The submission element in my xforms model looks like this

<xforms:submission id="modsForm" ref="instance('mods')" method="post" action="/app/save-metadata.htm">

 

And the submit button is defined as

<xforms:submit submission="modsForm">                                       
           
<xforms:label>Save</xforms:label>
</xforms:submit>

I can see the instance(‘mods’) in the inspector widget. There is no indication of an error in the orbeon.log. Does anybody have an idea what could be wrong? I’m a newbie.

 

Thanks,

Muzaffer



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: RE: Submission issue

Ozakca, Muzaffer

Thanks for the suggestion. It didn’t work. I tried several other things with the model component and I can say that the submission can find the data instance. I’m using the 3.7.1 beta version.

 

Thanks,

Muzaffer

 

From: yf508 [mailto:[hidden email]]
Sent: Tuesday, October 14, 2008 11:40 AM
To: [hidden email]
Subject: [ops-users] RE: Submission issue

 

 

Try disabling optimized submissions in properties.xml:

<property as="xs:boolean" name="oxf.xforms.optimize-local-submission"  value="false"/>

 

It solved submission problem I had before.

Frank


From: Ozakca, Muzaffer [mailto:[hidden email]]
Sent: 14 October 2008 16:01
To: [hidden email]
Subject: [ops-users] Submission issue

Hi, I’m currently integrating Orbeon with the Java application I’m building. I’m using Click Framework which is a great, lightweight framework. I was able to create a form and I can interact with it. I also enabled Xforms logging and the instance inspector widget. The issue arises when I try to submit the data for storage. When I click the submit button, the browser is taken to:

 

http://localhost:9090/app/orbeon/xforms-renderer and it displays this XML:

 

<?xml version="1.0" encoding="utf-8"?><null xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>

 

Although the URL above looks suspicious (orbeon after app) since it shows an XML instead of an error page, I guess it is going through Orbeon.

 

The submission element in my xforms model looks like this

<xforms:submission id="modsForm" ref="instance('mods')" method="post" action="/app/save-metadata.htm">

 

And the submit button is defined as

<xforms:submit submission="modsForm">                                       
           
<xforms:label>Save</xforms:label>
</xforms:submit>

I can see the instance(‘mods’) in the inspector widget. There is no indication of an error in the orbeon.log. Does anybody have an idea what could be wrong? I’m a newbie.

 

Thanks,

Muzaffer



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Submission issue

yemlef
In reply to this post by Ozakca, Muzaffer
I am experiencing the exact same problem with 3.7 beta.  What should the action attribute's value in the transformed xhtml's form element?  Should it be app/orbeon/xforms-renderer (like it is now) or should it be xforms-server-submit?

Ozakca, Muzaffer wrote
Hi, I’m currently integrating Orbeon with the Java application I’m building. I’m using Click Framework which is a great, lightweight framework. I was able to create a form and I can interact with it. I also enabled Xforms logging and the instance inspector widget. The issue arises when I try to submit the data for storage. When I click the submit button, the browser is taken to:

http://localhost:9090/app/orbeon/xforms-renderer and it displays this XML:

<?xml version="1.0" encoding="utf-8"?><null xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>

Although the URL above looks suspicious (orbeon after app) since it shows an XML instead of an error page, I guess it is going through Orbeon.

The submission element in my xforms model looks like this
<xforms:submission id="modsForm" ref="instance('mods')" method="post" action="/app/save-metadata.htm">

And the submit button is defined as
<xforms:submit submission="modsForm">
            <xforms:label>Save</xforms:label>
</xforms:submit>

I can see the instance(‘mods’) in the inspector widget. There is no indication of an error in the orbeon.log. Does anybody have an idea what could be wrong? I’m a newbie.

Thanks,
Muzaffer


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Submission issue

yemlef
Ok, let me ask this...

If the action that I specified in the XForms submission does not show up anywhere in the transformed and displayed XHTML how does Orbeon know that when I click the Save button, it needs to forward the POST to my servlet?  Is this described in the documentation somewhere that I can read?


acslater wrote
I am experiencing the exact same problem with 3.7 beta.  What should the action attribute's value in the transformed xhtml's form element?  Should it be app/orbeon/xforms-renderer (like it is now) or should it be xforms-server-submit?

Ozakca, Muzaffer wrote
Hi, I’m currently integrating Orbeon with the Java application I’m building. I’m using Click Framework which is a great, lightweight framework. I was able to create a form and I can interact with it. I also enabled Xforms logging and the instance inspector widget. The issue arises when I try to submit the data for storage. When I click the submit button, the browser is taken to:

http://localhost:9090/app/orbeon/xforms-renderer and it displays this XML:

<?xml version="1.0" encoding="utf-8"?><null xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>

Although the URL above looks suspicious (orbeon after app) since it shows an XML instead of an error page, I guess it is going through Orbeon.

The submission element in my xforms model looks like this
<xforms:submission id="modsForm" ref="instance('mods')" method="post" action="/app/save-metadata.htm">

And the submit button is defined as
<xforms:submit submission="modsForm">
            <xforms:label>Save</xforms:label>
</xforms:submit>

I can see the instance(‘mods’) in the inspector widget. There is no indication of an error in the orbeon.log. Does anybody have an idea what could be wrong? I’m a newbie.

Thanks,
Muzaffer


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Submission issue

yemlef
So I tried the nightly 3.7 build without changing anything else and the problem fixed itself.  The submission works perfectly now.

acslater wrote
Ok, let me ask this...

If the action that I specified in the XForms submission does not show up anywhere in the transformed and displayed XHTML how does Orbeon know that when I click the Save button, it needs to forward the POST to my servlet?  Is this described in the documentation somewhere that I can read?


acslater wrote
I am experiencing the exact same problem with 3.7 beta.  What should the action attribute's value in the transformed xhtml's form element?  Should it be app/orbeon/xforms-renderer (like it is now) or should it be xforms-server-submit?

Ozakca, Muzaffer wrote
Hi, I’m currently integrating Orbeon with the Java application I’m building. I’m using Click Framework which is a great, lightweight framework. I was able to create a form and I can interact with it. I also enabled Xforms logging and the instance inspector widget. The issue arises when I try to submit the data for storage. When I click the submit button, the browser is taken to:

http://localhost:9090/app/orbeon/xforms-renderer and it displays this XML:

<?xml version="1.0" encoding="utf-8"?><null xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>

Although the URL above looks suspicious (orbeon after app) since it shows an XML instead of an error page, I guess it is going through Orbeon.

The submission element in my xforms model looks like this
<xforms:submission id="modsForm" ref="instance('mods')" method="post" action="/app/save-metadata.htm">

And the submit button is defined as
<xforms:submit submission="modsForm">
            <xforms:label>Save</xforms:label>
</xforms:submit>

I can see the instance(‘mods’) in the inspector widget. There is no indication of an error in the orbeon.log. Does anybody have an idea what could be wrong? I’m a newbie.

Thanks,
Muzaffer


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: Submission issue

Ozakca, Muzaffer
I tried it with the nightly build from Oct 15 and the submission seems to work. Thanks for letting us know. Is there a timeframe when a new release is going to be made - beta or post-beta?

For your question, how does Xforms know which URL to submit, my guess is Orbeon is keeping the state of the form on the server and posting it to the URL provided in the form specification after processing it.

Muzaffer

> -----Original Message-----
> From: acslater [mailto:[hidden email]]
> Sent: Wednesday, October 15, 2008 8:11 AM
> To: [hidden email]
> Subject: [ops-users] Re: Submission issue
>
>
> So I tried the nightly 3.7 build without changing anything else and the
> problem fixed itself.  The submission works perfectly now.
>
>
> acslater wrote:
> >
> > Ok, let me ask this...
> >
> > If the action that I specified in the XForms submission does not show
> > up anywhere in the transformed and displayed XHTML how does Orbeon
> > know that when I click the Save button, it needs to forward the POST to my
> servlet?
> > Is this described in the documentation somewhere that I can read?
> >
> >
> >
> > acslater wrote:
> >>
> >> I am experiencing the exact same problem with 3.7 beta.  What should
> >> the action attribute's value in the transformed xhtml's form element?
> >> Should it be app/orbeon/xforms-renderer (like it is now) or should it
> >> be xforms-server-submit?
> >>
> >>
> >> Ozakca, Muzaffer wrote:
> >>>
> >>> Hi, I’m currently integrating Orbeon with the Java application I’m
> >>> building. I’m using Click Framework which is a great, lightweight
> >>> framework. I was able to create a form and I can interact with it. I
> >>> also enabled Xforms logging and the instance inspector widget. The
> >>> issue arises when I try to submit the data for storage. When I click
> >>> the submit button, the browser is taken to:
> >>>
> >>> http://localhost:9090/app/orbeon/xforms-renderer and it displays
> >>> this
> >>> XML:
> >>>
> >>> <?xml version="1.0" encoding="utf-8"?><null
> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>> xsi:nil="true"/>
> >>>
> >>> Although the URL above looks suspicious (orbeon after app) since it
> >>> shows an XML instead of an error page, I guess it is going through
> >>> Orbeon.
> >>>
> >>> The submission element in my xforms model looks like this
> >>> <xforms:submission id="modsForm" ref="instance('mods')" method="post"
> >>> action="/app/save-metadata.htm">
> >>>
> >>> And the submit button is defined as
> >>> <xforms:submit submission="modsForm">
> >>>             <xforms:label>Save</xforms:label> </xforms:submit>
> >>>
> >>> I can see the instance(‘mods’) in the inspector widget. There is no
> >>> indication of an error in the orbeon.log. Does anybody have an idea
> >>> what could be wrong? I’m a newbie.
> >>>
> >>> Thanks,
> >>> Muzaffer
> >>>
> >>>
> >>> --
> >>> 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
> >>> OW2 mailing lists service home page: http://www.ow2.org/wws
> >>>
> >>>
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Submission-issue-
> tp19975325p19992210.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Submission issue

Erik Bruchez
Administrator
In reply to this post by yemlef
Magic ;-)

Answer is that it depends. In cases where you have a POST, PUT or  
DELETE, the submission is performed from the server, not from the web  
browser. When you have a GET, in most cases the server is able to  
issue a redirect to the client.

-Erik

On Oct 15, 2008, at 3:45 AM, acslater wrote:

>
> Ok, let me ask this...
>
> If the action that I specified in the XForms submission does not  
> show up
> anywhere in the transformed and displayed XHTML how does Orbeon know  
> that
> when I click the Save button, it needs to forward the POST to my  
> servlet?
> Is this described in the documentation somewhere that I can read?
>
>
>
> acslater wrote:
>>
>> I am experiencing the exact same problem with 3.7 beta.  What  
>> should the
>> action attribute's value in the transformed xhtml's form element?  
>> Should
>> it be app/orbeon/xforms-renderer (like it is now) or should it be
>> xforms-server-submit?
>>
>>
>> Ozakca, Muzaffer wrote:
>>>
>>> Hi, I’m currently integrating Orbeon with the Java application I’m
>>> building. I’m using Click Framework which is a great, lightweight
>>> framework. I was able to create a form and I can interact with it.  
>>> I also
>>> enabled Xforms logging and the instance inspector widget. The issue
>>> arises when I try to submit the data for storage. When I click the  
>>> submit
>>> button, the browser is taken to:
>>>
>>> http://localhost:9090/app/orbeon/xforms-renderer and it displays  
>>> this
>>> XML:
>>>
>>> <?xml version="1.0" encoding="utf-8"?><null
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
>>> xsi:nil="true"/>
>>>
>>> Although the URL above looks suspicious (orbeon after app) since  
>>> it shows
>>> an XML instead of an error page, I guess it is going through Orbeon.
>>>
>>> The submission element in my xforms model looks like this
>>> <xforms:submission id="modsForm" ref="instance('mods')"  
>>> method="post"
>>> action="/app/save-metadata.htm">
>>>
>>> And the submit button is defined as
>>> <xforms:submit submission="modsForm">
>>>            <xforms:label>Save</xforms:label>
>>> </xforms:submit>
>>>
>>> I can see the instance(‘mods’) in the inspector widget. There is no
>>> indication of an error in the orbeon.log. Does anybody have an  
>>> idea what
>>> could be wrong? I’m a newbie.
>>>
>>> Thanks,
>>> Muzaffer
>>>
>>>
>>> --
>>> 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
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Submission-issue-tp19975325p19991027.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.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
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
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
OW2 mailing lists service home page: http://www.ow2.org/wws
F_L
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: Submission issue

F_L
In reply to this post by Ozakca, Muzaffer
Ozakca, Muzaffer a écrit :
> I tried it with the nightly build from Oct 15 and the submission seems to work. Thanks for letting us know. Is there a timeframe when a new release is going to be made - beta or post-beta?

Hi,

so apparently this is a bug that is solved in the nightly builds ?

Is there a workaround (for the last stable version, or may for the
beta)?  Or is the only solution to use a nightly build ?



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws