custom XBL components don't work in Orbeon?

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

custom XBL components don't work in Orbeon?

Philip.Cantin
Hi All,

I read this article on existing XBL components earlier:

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components#TOC-Limitations-and-Known-Issues


and decided to try one of them (the datatable) out on my current XForms page through Orbeon 3.7. After no luck, I did a little searching on this forum and came across this thread:


http://www.nabble.com/Form-builder-Custom-componenta-td21380390.html#a21576999


So I'm just making sure this means that the custom controls mentioned in the article above do not have full functionality in regular XForms pages that are loaded with Orbeon (no Form Builder), as well as pages loaded with Form Builder. Is this correct?

Thanks in advance!


~Philip
Reply | Threaded
Open this post in threaded view
|

Re: custom XBL components don't work in Orbeon?

Eric van der Vlist
Hi Philip,

Le vendredi 08 mai 2009 à 11:08 -0700, Philip.Cantin a écrit :

> Hi All,
>
> I read this article on existing XBL components earlier:
>
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components#TOC-Limitations-and-Known-Issues
>
>
> and decided to try one of them (the datatable) out on my current XForms page
> through Orbeon 3.7. After no luck, I did a little searching on this forum
> and came across this thread:
>
>
> http://www.nabble.com/Form-builder-Custom-componenta-td21380390.html#a21576999
>
>
> So I'm just making sure this means that the custom controls mentioned in the
> article above do not have full functionality in regular XForms pages that
> are loaded with Orbeon (no Form Builder), as well as pages loaded with Form
> Builder. Is this correct?
No, on the contrary the datatable should work in plain XForms pages.

However, this component is very complex and still pretty young and it's
being improved on an almost daily basis.

Please use a nightly build as recent as possible and report any bugs
that you may find to help us improve it!

Thanks,

Eric

> Thanks in advance!
>
>
> ~Philip

--
Eric van der Vlist <[hidden email]>
Dyomedea (http://dyomedea.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: custom XBL components don't work in Orbeon?

Erik Bruchez
Administrator
> Le vendredi 08 mai 2009 à 11:08 -0700, Philip.Cantin a écrit :

>> Hi All,
>>
>> I read this article on existing XBL components earlier:
>>
>> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components#TOC-Limitations-and-Known-Issues
>>
>>
>> and decided to try one of them (the datatable) out on my current  
>> XForms page
>> through Orbeon 3.7. After no luck, I did a little searching on this  
>> forum
>> and came across this thread:
>>
>>
>> http://www.nabble.com/Form-builder-Custom-componenta-td21380390.html#a21576999
>>
>>
>> So I'm just making sure this means that the custom controls  
>> mentioned in the
>> article above do not have full functionality in regular XForms  
>> pages that
>> are loaded with Orbeon (no Form Builder), as well as pages loaded  
>> with Form
>> Builder. Is this correct?
>
> No, on the contrary the datatable should work in plain XForms pages.
>
> However, this component is very complex and still pretty young and  
> it's
> being improved on an almost daily basis.
>
> Please use a nightly build as recent as possible and report any bugs
> that you may find to help us improve it!
And Philip, please make sure you are using a nightly build as this  
feature is only available there.

-Erik

--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: custom XBL components don't work in Orbeon?

 element.

The code I used to build my datatable was based off this link:

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components/datatable-new-and-old-generations

I attached my own code to this message also. Thanks, by the way, for the replies, and if you both have any suggestions or pointers they are definitely welcome and appreciated! :-)



---Philip


test_datatable.xhtml

test_validation.xsd


Erik Bruchez wrote
> Le vendredi 08 mai 2009 à 11:08 -0700, Philip.Cantin a écrit :
>> Hi All,
>>
>> I read this article on existing XBL components earlier:
>>
>> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components#TOC-Limitations-and-Known-Issues
>>
>>
>> and decided to try one of them (the datatable) out on my current  
>> XForms page
>> through Orbeon 3.7. After no luck, I did a little searching on this  
>> forum
>> and came across this thread:
>>
>>
>> http://www.nabble.com/Form-builder-Custom-componenta-td21380390.html#a21576999
>>
>>
>> So I'm just making sure this means that the custom controls  
>> mentioned in the
>> article above do not have full functionality in regular XForms  
>> pages that
>> are loaded with Orbeon (no Form Builder), as well as pages loaded  
>> with Form
>> Builder. Is this correct?
>
> No, on the contrary the datatable should work in plain XForms pages.
>
> However, this component is very complex and still pretty young and  
> it's
> being improved on an almost daily basis.
>
> Please use a nightly build as recent as possible and report any bugs
> that you may find to help us improve it!

And Philip, please make sure you are using a nightly build as this  
feature is only available there.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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
Philip.Cantin
Erik and Eric,

I am indeed using a nightly build, though not necessarily the latest one - mine is 3.7.1.200904280749 (I would definitely download the latest one every day if I could, but this isn't possible where I work).

All I'm trying to do at the moment is create the simplest datatable possible with some arbitrary values, and then work from there.

However, when the datatable loads in Orbeon, I only see the header and not its corresponding values. I imagine it's an issue with whatever is inside my
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: custom XBL components don't work in Orbeon?

Eric van der Vlist
Hi Philip,

Le mercredi 13 mai 2009 à 11:01 -0700, Philip.Cantin a écrit :
> Erik and Eric,
>
> I am indeed using a nightly build, though not necessarily the latest one -
> mine is 3.7.1.200904280749 (I would definitely download the latest one every
> day if I could, but this isn't possible where I work).
>
> All I'm trying to do at the moment is create the simplest datatable possible
> with some arbitrary values, and then work from there.

We have added a lot of examples in  the XForms sandbox (look at all
those that start with "datatable-ng"). They should help you to get
started!

> However, when the datatable loads in Orbeon, I only see the header and not
> its corresponding values. I imagine it's an issue with whatever is inside my
> <tbody> element.
>
> The code I used to build my datatable was based off this link:
>
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components/datatable-new-and-old-generations
>
> I attached my own code to this message also. Thanks, by the way, for the
> replies, and if you both have any suggestions or pointers they are
> definitely welcome and appreciated! :-)
The first thing to fix is the sequence of embedded xforms:repeat. I
don't know if you really need all these, but if you concatenate their
nodeset attributes, you get an XPath expression which is:

instance('views')/citation/citeinfo/origin

and within this loop you create a datatable which repeat is again
"origin", meaning that it won't return any node (that explains that you
don't see any row in your table).

Then you also have more columns in your table body than in your table
header and all the cells in your body refer to the same node (.)...

It's difficult to guess what you're trying to achieve from your rather
complex sample, but you'll need to fix at least these points to get
something working! You can probably remove the xforms:repeat outside the
datatable and use "/citation/citeinfo" in the xforms:repeat that is
embedded in the datatable, but that's just a guess!

A last tip: if you're not certain that the datatable widget is working,
just replace it by a table element! If you don't use the minimized
syntax, you should be able to witch beteween fr:datatable and
xhtml:table without any other modification.

Hope this helps.

Eric

>
>
> ---Philip
>
>
> http://www.nabble.com/file/p23526658/test_datatable.xhtml
> test_datatable.xhtml
>
> http://www.nabble.com/file/p23526658/test_validation.xsd test_validation.xsd
>
>
>
> Erik Bruchez wrote:
> >
> >> Le vendredi 08 mai 2009 à 11:08 -0700, Philip.Cantin a écrit :
> >>> Hi All,
> >>>
> >>> I read this article on existing XBL components earlier:
> >>>
> >>> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components#TOC-Limitations-and-Known-Issues
> >>>
> >>>
> >>> and decided to try one of them (the datatable) out on my current  
> >>> XForms page
> >>> through Orbeon 3.7. After no luck, I did a little searching on this  
> >>> forum
> >>> and came across this thread:
> >>>
> >>>
> >>> http://www.nabble.com/Form-builder-Custom-componenta-td21380390.html#a21576999
> >>>
> >>>
> >>> So I'm just making sure this means that the custom controls  
> >>> mentioned in the
> >>> article above do not have full functionality in regular XForms  
> >>> pages that
> >>> are loaded with Orbeon (no Form Builder), as well as pages loaded  
> >>> with Form
> >>> Builder. Is this correct?
> >>
> >> No, on the contrary the datatable should work in plain XForms pages.
> >>
> >> However, this component is very complex and still pretty young and  
> >> it's
> >> being improved on an almost daily basis.
> >>
> >> Please use a nightly build as recent as possible and report any bugs
> >> that you may find to help us improve it!
> >
> > And Philip, please make sure you are using a nightly build as this  
> > feature is only available there.
> >
> > -Erik
> >
> > --
> > 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
> >
> >
>
> pièce jointe document texte brut (message-footer.txt)
> --
> 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: custom XBL components don't work in Orbeon?

 element.
>
> The code I used to build my datatable was based off this link:
>
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components/datatable-new-and-old-generations
>
> I attached my own code to this message also. Thanks, by the way, for the
> replies, and if you both have any suggestions or pointers they are
> definitely welcome and appreciated! :-)

The first thing to fix is the sequence of embedded xforms:repeat. I
don't know if you really need all these, but if you concatenate their
nodeset attributes, you get an XPath expression which is:

instance('views')/citation/citeinfo/origin

and within this loop you create a datatable which repeat is again
"origin", meaning that it won't return any node (that explains that you
don't see any row in your table).

Then you also have more columns in your table body than in your table
header and all the cells in your body refer to the same node (.)...

It's difficult to guess what you're trying to achieve from your rather
complex sample, but you'll need to fix at least these points to get
something working! You can probably remove the xforms:repeat outside the
datatable and use "/citation/citeinfo" in the xforms:repeat that is
embedded in the datatable, but that's just a guess!

A last tip: if you're not certain that the datatable widget is working,
just replace it by a table element! If you don't use the minimized
syntax, you should be able to witch beteween fr:datatable and
xhtml:table without any other modification.

Hope this helps.

Eric
Philip.Cantin
Eric,

Thanks for your help! Realizing that there could have been a reference problem led me to discover that I did have an incorrect reference for the <xf:repeat> element within the datatable; it should have been "." instead of "origin." Also, the other reason why I was getting no data was because there were no values for the <origin> elements in the instance data to begin with...

I do get a client-side error when trying to sort values in the datatable, or even just clicking on it:

Exception in client-side code.

    * Message: newItemDelimiter is null
    * File: http://localhost:8080/orbeon/ops/javascript/xforms.js
    * Line number: 5841


but I, of course, don't want to assume anything until I get the same error on the most recent nightly build. In the meantime, if anyone wants to try and reproduce the error on a recent nightly build, my code is attached to this message.


---Philip


test_datatable.xhtml



<quote author="Eric van der Vlist">
Hi Philip,

Le mercredi 13 mai 2009 à 11:01 -0700, Philip.Cantin a écrit :
> Erik and Eric,
>
> I am indeed using a nightly build, though not necessarily the latest one -
> mine is 3.7.1.200904280749 (I would definitely download the latest one every
> day if I could, but this isn't possible where I work).
>
> All I'm trying to do at the moment is create the simplest datatable possible
> with some arbitrary values, and then work from there.

We have added a lot of examples in  the XForms sandbox (look at all
those that start with "datatable-ng"). They should help you to get
started!

> However, when the datatable loads in Orbeon, I only see the header and not
> its corresponding values. I imagine it's an issue with whatever is inside my
>