Hi list,
I think I found a bug in Orbeon: In one occasion, I need to send the data of two instances to a XPL pipeline. I am using the (very useful!) xxforms:element functions to achieve this, like this: <xf:submission id="report-submission" ref="xxforms:element('report-with-items', (instance('report- instance'), instance('list-instance')))" method="post" ... /> I used to set the list-instance (holding a list of items to be shown in the report) to read-only since the user can not edit it. However, xxforms:element will then just ignore that content node, and only the report-instance will be sent. Removing the xxforms:readonly from all submissions that write the list- instance fixed the problem, but of course I would like to benefit from the better memory footprint of read-only instances. Am I doing something wrong? Kind regards, Ralf Jung -- 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 |
Administrator
|
Ralf,
You are probably doing things right, but the xxforms:element() function has a bit of trouble handling this. I see a nice "TODO: read and convert" in the code: ;) -Erik
On Wed, Mar 9, 2011 at 1:32 PM, Ralf Jung <[hidden email]> wrote: Hi list, -- 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 |
Hi Erik,
thanks for the quick reply, that must be it then ;-) Is there a bugtracker I should enter this into, or is the issue registered hereby? Kind regards, Ralf Am Freitag 11 März 2011, um 05:56:55 schrieb Erik Bruchez: > Ralf, > > You are probably doing things right, but the xxforms:element() function has > a bit of trouble handling this. I see a nice "TODO: read and convert" in > the code: > > https://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/ > xforms/function/xxforms/XXFormsElement.java > > ;) > > -Erik > > On Wed, Mar 9, 2011 at 1:32 PM, Ralf Jung <[hidden email]> wrote: > > Hi list, > > > > I think I found a bug in Orbeon: In one occasion, I need to send the data > > of > > two instances to a XPL pipeline. I am using the (very useful!) > > xxforms:element > > functions to achieve this, like this: > > <xf:submission id="report-submission" > > > > ref="xxforms:element('report-with-items', > > > > (instance('report- > > instance'), instance('list-instance')))" method="post" ... /> > > I used to set the list-instance (holding a list of items to be shown in > > the report) to read-only since the user can not edit it. However, > > xxforms:element > > will then just ignore that content node, and only the report-instance > > will be > > sent. Removing the xxforms:readonly from all submissions that write the > > list- > > instance fixed the problem, but of course I would like to benefit from > > the better memory footprint of read-only instances. Am I doing something > > wrong? > > > > Kind regards, > > Ralf Jung > > > > > > -- > > 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 |
Administrator
|
Ralf,
I just entered the issue. -Erik
On Fri, Mar 11, 2011 at 7:40 AM, Ralf Jung <[hidden email]> wrote: Hi 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 |
Administrator
|
This issue is now fixed thanks to Ralf's patch:
https://github.com/orbeon/orbeon-forms/commit/1058b853efe7024be9db473e04384d1feecdd319 -Erik On Fri, Mar 11, 2011 at 3:45 PM, Erik Bruchez <[hidden email]> wrote: > Ralf, > I just entered the issue. > http://forge.ow2.org/tracker/index.php?func=detail&aid=315895&group_id=168&atid=350207 > -Erik > > On Fri, Mar 11, 2011 at 7:40 AM, Ralf Jung <[hidden email]> wrote: >> >> Hi Erik, >> >> thanks for the quick reply, that must be it then ;-) >> Is there a bugtracker I should enter this into, or is the issue registered >> hereby? >> >> Kind regards, >> Ralf >> >> Am Freitag 11 März 2011, um 05:56:55 schrieb Erik Bruchez: >> > Ralf, >> > >> > You are probably doing things right, but the xxforms:element() function >> > has >> > a bit of trouble handling this. I see a nice "TODO: read and convert" in >> > the code: >> > >> > >> > https://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/ >> > xforms/function/xxforms/XXFormsElement.java >> > >> > ;) >> > >> > -Erik >> > >> > On Wed, Mar 9, 2011 at 1:32 PM, Ralf Jung <[hidden email]> wrote: >> > > Hi list, >> > > >> > > I think I found a bug in Orbeon: In one occasion, I need to send the >> > > data >> > > of >> > > two instances to a XPL pipeline. I am using the (very useful!) >> > > xxforms:element >> > > functions to achieve this, like this: >> > > <xf:submission id="report-submission" >> > > >> > > ref="xxforms:element('report-with-items', >> > > >> > > (instance('report- >> > > instance'), instance('list-instance')))" method="post" ... /> >> > > I used to set the list-instance (holding a list of items to be shown >> > > in >> > > the report) to read-only since the user can not edit it. However, >> > > xxforms:element >> > > will then just ignore that content node, and only the report-instance >> > > will be >> > > sent. Removing the xxforms:readonly from all submissions that write >> > > the >> > > list- >> > > instance fixed the problem, but of course I would like to benefit from >> > > the better memory footprint of read-only instances. Am I doing >> > > something >> > > wrong? >> > > >> > > Kind regards, >> > > Ralf Jung >> > > >> > > >> > > -- >> > > 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 >> > > -- 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 |
Free forum by Nabble | Edit this page |