Hi,
On xforms-ready I want to get the inputs inside a nested repeat to all do some initialization code (the attached example is a simplified version of what we are trying to do). My problem is that the event only saeems to reach the first input...is there a way to make the event propogate to all of the inputs? Thanks in advance, Dave -- 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 testEventStuff.xhtml (2K) Download Attachment |
David Sinclair wrote:
> Hi, > > On xforms-ready I want to get the inputs inside a nested repeat to all > do some initialization code (the attached example is a simplified > version of what we are trying to do). My problem is that the event > only saeems to reach the first input...is there a way to make the > event propogate to all of the inputs? > > Thanks in advance, > > Dave the version ops I use (fairly recent) thorows a null pointer exception...I assume that this is not the intended behavior? You should be able to reproduce this by replacing the dispatch in my previous example with: <xforms:dispatch name="aCustomEvent" target="subthing-input-blah"/> Dave -- 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
|
David,
On 10/4/07, David Sinclair <[hidden email]> wrote: > On a related note, if you dispatch an event to a non existent element > the version ops I use (fairly recent) thorows a null pointer > exception...I assume that this is not the intended behavior? No, it is not. I added this bug: http://forge.objectweb.org/tracker/index.php?func=detail&aid=307644&group_id=168&atid=350207 Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise 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 |
Administrator
|
In reply to this post by David Sinclair
Dave,
On 10/4/07, David Sinclair <[hidden email]> wrote: > On xforms-ready I want to get the inputs inside a nested repeat to all > do some initialization code (the attached example is a simplified > version of what we are trying to do). My problem is that the event > only saeems to reach the first input...is there a way to make the event > propogate to all of the inputs? The event goes to the current control in the repeat. I just talked about this with Erik, and he is saying that the specification is not very clear about this right now, but that there have been discussion in the XForms WG that tend to indicate that it should be implemented this way. If you need to go through all the controls in the repeat, you can iterate over those controls using a "while". I modified your example to do this when you press the "Do it" button. Would that work in your case? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise 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 testEventStuff.xhtml (3K) Download Attachment |
Administrator
|
In reply to this post by Alessandro Vernet
Alessandro Vernet wrote:
> David, > > On 10/4/07, David Sinclair <[hidden email]> wrote: >> On a related note, if you dispatch an event to a non existent element >> the version ops I use (fairly recent) thorows a null pointer >> exception...I assume that this is not the intended behavior? > > No, it is not. I added this bug: > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307644&group_id=168&atid=350207 -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 |
In reply to this post by David Sinclair
Hi
Using firebug we have spotted that when tabbing between controls in one of our apps the response from xforms server seems to contain an error message. We have checked and we see the same thing on examples on the orbeon.com site, e.g. try http://www.orbeon.com/ops/xforms-controls/ and then tab from one control to the next. The response has a large exception trace in it even although no error has occured and nothing is displayed as an error. The error message is message>oxf:/ops/xforms/xforms-server.xpl, line 72, column 61, description executing processor: String index out of range: -1String index out of range: -1</message> this seems a bit odd... Dave -- 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
|
Dave,
How can I reproduce this? I tried both the (old) online version and my local version, and nothing particular occurs when tabbing. Do you see exceptions logged on the server? -Erik David Sinclair wrote: > Hi > > Using firebug we have spotted that when tabbing between controls in one > of our apps the response from xforms server seems to contain an error > message. We have checked and we see the same thing on examples on the > orbeon.com site, e.g. try http://www.orbeon.com/ops/xforms-controls/ > and then tab from one control to the next. The response has a large > exception trace in it even although no error has occured and nothing is > displayed as an error. The error message is > > message>oxf:/ops/xforms/xforms-server.xpl, line 72, column 61, > description executing processor: String index out of range: -1String > index out of range: -1</message> > > this seems a bit odd... > > Dave > > > -- 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 |
Free forum by Nabble | Edit this page |