Hi everybody,
I have two small questions: 1-what event is actually thrown when the user selects a row in a table. The table I am using is the following: <xhtml:table> <xhtml:tr> <xhtml:th>Title</xhtml:th> </xhtml:tr> <xforms:repeat id="xforms_cntrl_Product_rpt" nodeset="instance('taskinput')/fe:Products/fe:Product[position() <= last()]"> <xhtml:tr> <xhtml:td class="xforms_cntrl_table-cell1"> <xforms:output ref="fe:Title"/> </xhtml:td> </xhtml:tr> </xforms:repeat> </xhtml:table> 2-How to catch this event? Using firebug, it looks like the event thrown is actually DomFocusIn.If this is true, how can I catch it? I tried to catch it using an insert as follows : <xforms:insert ev:event="DOMFocusIn" context="instance('taskoutput')" nodeset="fe:Product" origin="instance('taskinput')/fe:Products/fe:Product[index('xforms_cntrl_Product_rpt')]"/> and I tried to insert this insert pretty much everywhere but it never got executed. Any ideas why? Is this event getting dispached as expected? Thanks in advance for your help Regards, |
Administrator
|
On Wed, Apr 23, 2008 at 2:37 PM, ihab <[hidden email]> wrote:
> I tried to catch it using an insert as follows : > <xforms:insert ev:event="DOMFocusIn" context="instance('taskoutput')" > nodeset="fe:Product" > origin="instance('taskinput')/fe:Products/fe:Product[index('xforms_cntrl_Product_rpt')]"/> You are on the right track: placing the action with the ev:event="DOMFocusIn" directly in the <xforms:repeat> should just work. I tried this in the to-do list example and it was working as expected. If it doesn't in your case, could you create a simple test case that reproduces the issue and that we can run in the sandbox? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 ihab
Thanks for your quick reply Alessandro,
Actually, I think I found the problem (the form I am using is attached) what I did, is create a table with two rows ( to keep things simple), and my purpose was to execute an "insert" each time the user changes the selected row . the "td" tag of my table has an "xforms:output" in it. So what happens is the following : when the user clicks on the text in the row, the event is fired but the source of the event is actually the output, so the insert is not executed. If you click on the right edge of the row in the table, then it changes the selected row, but in this case it is the row who fires the event and you can see the "insert" get executed, and the ouput instance get updated . Is this behavior normal? If this turns out to be not normal, I would appreciate your help in having a workaround. A possible workaound is to exectue the "insert" each time the value of the index of the repeat changes. Any idea how that can be done? Thanks a lot for your helpview.xhtml |
Hi guys,
Did you manage to reproduce the bug I am discribing? Any bright ideas on how I can workaround it? All I need is to be able to execute some actions ( delete and insert) when the index of the repeat changes. Thanks again -- 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 ihab
On Wed, Apr 23, 2008 at 7:31 PM, ihab <[hidden email]> wrote:
> when the user clicks on the text in the row, the event is fired but the > source of the event is actually the output, so the insert is not executed. I am not sure I understand you correctly. When I click on the text (1 or 2), the event is fired, and the insert in taskoutput is performed. Is this not what you are seeing? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |