Migration from 3.7 to 3.8CE - xforms:submit inside fr:tab - bug?

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

Migration from 3.7 to 3.8CE - xforms:submit inside fr:tab - bug?

fl.schmitt(ops-users)
Hi all,

are xforms:submit controls legal content inside fr:tab when using
orbeon 3.8CE? Can anybody give me a short working example of
xforms:submit buttons inside fr:tab?

Background:

Trying to migrate my orbeon forms app from 3.7 to 3.8CE led me into
some trouble concerning xforms:submit elements nested into a fr:tab
element. Using 3.7, i used widget:tabs where each of the tabs
contained a xhtml:table with some xforms:submit buttons. Migrating to
3.8, i replaced the widget:tabs by fr:tabview/fr:tab. After that
change, the xforms:submit buttons didn't cause any action any more,
and the log told me:

xforms:submit - submission does not refer to an existing
xforms:submission element, ignoring action {submission id: "submMain"}

This info was quite misleading: the solution was moving the
xforms:submit element out of the fr:tabview element (in fact, not
really a good solution, because the tab view is quite useful to group
xforms controls...).

So i wonder if this is a bug or if i made any mistake? Is there any
other way to to put xforms:submit buttons into a tabview when using
3.8CE?

Any help is appreciated...


florian

PS: When searching what was wrong with my xforms:submission, i found a
difference between the XForms 1.1 Candidate recommendation and the
3.8CE behaviour. http://www.w3.org/TR/xforms11/#ui-submit says that
xforms:submit@submission attribute is optional, but orbeon 3.8CE seems
to declare it mandatory - omitting it currently throws an error.


--
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: Migration from 3.7 to 3.8CE - xforms:submit inside fr:tab - bug?

fl.schmitt(ops-users)
fl.schmitt(ops-users) wrote
are xforms:submit controls legal content inside fr:tab when using orbeon 3.8CE? Can anybody give me a short working example of xforms:submit buttons inside fr:tab? So i wonder if this is a bug or if i made any mistake? Is there any other way to to put xforms:submit buttons into a tabview when using 3.8CE? Any help is appreciated...
short test with nightly CE and PE build - problem occurs in both of them, too.
Reply | Threaded
Open this post in threaded view
|

Re: Migration from 3.7 to 3.8CE - xforms:submit inside fr:tab - bug?

fl.schmitt(ops-users)
Here's a sandbox example demonstrating the problem. The form contains two fr:tabs with identical content and three xforms:submit buttons referencing the same xforms:submission (one outside the fr:tabview, and one inside each fr:tab). Only the xforms:submit button outside of the fr:tab works.

tabview-submit.zip

florian

PS: The XForms 1.1 Candidate Recommendation says that xforms:instance is author-optional; but if the xforms:instance is omitted (as i did in the test case, because there's no need for an xforms:instance), i receive an error page with the following message:

org.orbeon.saxon.tinytree.TinyDocumentImpl cannot be cast to org.orbeon.saxon.dom4j.NodeWrapper
Reply | Threaded
Open this post in threaded view
|

Re: Re: Migration from 3.7 to 3.8CE - xforms:submit inside fr:tab - bug?

Erik Bruchez
Administrator
Florian,

This is now fixed.

Bug:
http://forge.ow2.org/tracker/index.php?func=detail&aid=315509&group_id=168&atid=350207

Commit:
http://github.com/orbeon/orbeon-forms/commit/03d6bb91fa3ab51c9b8ba79a480b2aa2f15f6e1a

On missing xforms:instance element, this sample works for me:

http://gist.github.com/623136

-Erik

On Fri, Sep 17, 2010 at 2:33 AM, fl.schmitt(ops-users)
<[hidden email]> wrote:

>
> Here's a sandbox example demonstrating the problem. The form contains two
> fr:tabs with identical content and three xforms:submit buttons referencing
> the same xforms:submission (one outside the fr:tabview, and one inside each
> fr:tab). Only the xforms:submit button outside of the fr:tab works.
>
> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n2543612/tabview-submit.zip
> tabview-submit.zip
>
> florian
>
> PS: The XForms 1.1 Candidate Recommendation says that xforms:instance is
> author-optional; but if the xforms:instance is omitted (as i did in the test
> case, because there's no need for an xforms:instance), i receive an error
> page with the following message:
>
> org.orbeon.saxon.tinytree.TinyDocumentImpl cannot be cast to
> org.orbeon.saxon.dom4j.NodeWrapper
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Migration-from-3-7-to-3-8CE-xforms-submit-inside-fr-tab-bug-tp2542637p2543612.html
> Sent from the Orbeon Forms (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
>
>


--
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: Re: Migration from 3.7 to 3.8CE - xforms:submit inside fr:tab - bug?

fl.schmitt(ops-users)
Erik,

> This is now fixed.

great, thanks a lot!

> On missing xforms:instance element, this sample works for me:
> http://gist.github.com/623136

hmm - true... seems the error is due to a fault in my example - using a
xforms:submit control seems to presume the existence of an
xforms:instance, so the error occurs because there's no instance for the
xforms:submit control in my example.

florian



--
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: Re: Re: Migration from 3.7 to 3.8CE - xforms:submit inside fr:tab - bug?

Erik Bruchez
Administrator
>> On missing xforms:instance element, this sample works for me:
>> http://gist.github.com/623136
>
> hmm - true... seems the error is due to a fault in my example - using a
> xforms:submit control seems to presume the existence of an
> xforms:instance, so the error occurs because there's no instance for the
> xforms:submit control in my example.

It might be that not all code is instance-less-proof yet!

-Erik


--
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