This post was updated on .
There seems to be a bug, when I edit "samples/datatable-ng.xhtml and change <xf:output> statements to <xf:input> statements, I get the following error:
XPath syntax error at char 12 in {$nodeset[1]/}: Unexpected token "<eof>" in path expression Please see attached. This is strange because all I’m changing is the xf:output tag. However, this doesn’t see to happen with all the tags. If I change the <xf:output ref="CCC"/> tag, it works fine. But if I change the <xf:output ref="AAA"/> tag, I get the previous error message. |
any help on this topic?
|
Administrator
|
In reply to this post by lkbrown
My understanding from Eric, who wrote the datatable, is that this will
work if you explicitly specify fr:sortKey [1] for the columns containing anything besides xf:output. -Erik [1] http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/datatable#TOC-Column-Attributes On Mon, Apr 12, 2010 at 8:58 AM, lkbrown <[hidden email]> wrote: > > here seems to be a bug, when I edit "samples/datatable-ng.xhtml and change > <xf:output> statements to <xf:input> statements, I get the following error: > > XPath syntax error at char 12 in {$nodeset[1]/}: > Unexpected token "<eof>" in path expression > > Please see attached. > > This is strange because all I’m changing is the xf:output tag. However, this > doesn’t see to happen with all the tags. If I change the <xf:output > ref="CCC"/> tag, it works fine. But if I change the <xf:output ref="AAA"/> > tag, I get the previous error message. > -- > View this message in context: http://n4.nabble.com/Orbeon-Datatable-xf-input-Error-tp1837353p1837353.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 |
I am out of the office until 19th April *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
In reply to this post by Erik Bruchez
Erik,
Thanks for the note. According to the documenation, " fr:sortKey: define the XPath expression to be used as a sort key. When not specified, this key is derived from xforms:output controls found in the column." As a result, if I don't explicitly specify a sort key, and I replace all the xf:output tags, then the code breaks because it can't find an xf:output tag. A workaround was suggested by Phillip Cantin: Try putting this: <xf:output ref="AAA[false()]"/> <xf:input ref="AAA"/> Quick note: If you use the AAA[false()} approach, the sorting functionality will break. I got around this by just hiding the output tag w/ css instead of using the "[false()]" approach. ex: <xf:output ref="AAA" style="display: none;" /> <xf:input ref="AAA"/> |
I am out of the office until 19th April *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
Very useful because i need to define datatable, but WHERE put this code ?
Nowhere is said. There is a lot of posts in forum and orbeon website, with lot of codes to use, but nowhere is said where write these codes. |
Free forum by Nabble | Edit this page |