All,
I'm having a hell of a time figuring out why my buttons are not behaving. When I run the form, copied below, all the buttons seem to work, until I add and delete a new row twice. Even the "Hide Inspector" / "Show Inspector" button stops working! This happens with both FF 3 and IE 7. Can anyone else reproduce this? Am I doing something wrong, or is this an Orbeon bug? Thanks, -Jim <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:ev="http://www.w3.org/2001/xml-events"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>EKB User Editor</title> <xforms:model> <xforms:instance id="people"> <structure xmlns=""> <Person about="#p1"> <label>Person1</label> </Person> <Person about="#p2"> <label>Person2</label> </Person> </structure> </xforms:instance> <xforms:bind id="person" nodeset="instance('people')/Person" relevant="not(@action = 'remove')"/> <xforms:bind id="name" nodeset="instance('people')/Person/label"/> <xforms:instance id="new-person"> <Person xmlns="" about="#new-id" action="create"> <label>new name</label> </Person> </xforms:instance> <xforms:bind id="new-name" nodeset="instance('new-person')/label"/> <xforms:bind id="new-id" nodeset="instance('new-person')/@about"/> </xforms:model> </head> <body> <br /> <table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr> <th>Name</th> <th>ID</th> <th>Action</th> </tr> <xforms:repeat id="person-repeat" bind="person"> <tr> <td> <xforms:input ref="label"/> </td> <td> <xforms:output ref=".[not(@action)]/@about"/> <xforms:input ref=".[@action = 'create']/@about"/> </td> <td> <xforms:trigger> <xforms:label>Delete</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:action if="@action = 'create'"> <xforms:delete nodeset="."/> </xforms:action> <xforms:action if="not(@action)"> <xforms:insert context="." origin="xxforms:attribute('action', 'remove')"/> </xforms:action> </xforms:action> </xforms:trigger> </td> </tr> </xforms:repeat> </tbody> </table> <br /> <xforms:trigger> <xforms:label>Add</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:insert bind="person" origin="instance('new-person')"/> <xforms:setvalue bind="new-name" value="'new name'"/> <xforms:setvalue bind="new-id" value="'#new-id'"/> </xforms:action> </xforms:trigger> (SAVE) (REVERT) <hr/> <xforms:switch> <xforms:case id="inspector-visible" selected="false"> <span> <xforms:trigger> <xforms:label>Hide Inspector</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:toggle case="inspector-hidden" /> </xforms:action> </xforms:trigger> <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget" /> </span> </xforms:case> <xforms:case id="inspector-hidden" selected="true"> <xforms:trigger> <xforms:label>Show Inspector</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:toggle case="inspector-visible" /> </xforms:action> </xforms:trigger> </xforms:case> </xforms:switch> <hr/> </body> </html> -- 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 |
Could someone please try to reproduce this problem?
Thanks, -Jim Jim Logan wrote: All, -- 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
|
Jim,
I do not reproduce this with the latest code. I click around adding and removing and the buttons keep working (FF3). -Erik On Sep 19, 2008, at 11:41 AM, Jim Logan wrote: > Could someone please try to reproduce this problem? > > Thanks, > -Jim > > Jim Logan wrote: >> >> All, >> >> I'm having a hell of a time figuring out why my buttons are not >> behaving. When I run the form, copied below, all the buttons seem >> to work, until I add and delete a new row twice. Even the "Hide >> Inspector" / "Show Inspector" button stops working! This happens >> with both FF 3 and IE 7. >> >> Can anyone else reproduce this? Am I doing something wrong, or is >> this an Orbeon bug? >> >> Thanks, >> -Jim >> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:xforms="http://www.w3.org/2002/xforms" >> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >> >> xmlns:ev="http://www.w3.org/2001/xml-events"> >> <head> >> <meta http-equiv="content-type" content="text/html; " /> >> <title>EKB User Editor</title> >> >> <xforms:model> >> <xforms:instance id="people"> >> <structure xmlns=""> >> <Person about="#p1"> >> <label>Person1</label> >> </Person> >> <Person about="#p2"> >> <label>Person2</label> >> </Person> >> </structure> >> </xforms:instance> >> <xforms:bind id="person" nodeset="instance('people')/Person" >> relevant="not(@action = 'remove')"/> >> <xforms:bind id="name" nodeset="instance('people')/Person/ >> label"/> >> >> <xforms:instance id="new-person"> >> <Person xmlns="" about="#new-id" action="create"> >> <label>new name</label> >> </Person> >> </xforms:instance> >> <xforms:bind id="new-name" nodeset="instance('new-person')/ >> label"/> >> <xforms:bind id="new-id" nodeset="instance('new-person')/ >> @about"/> >> </xforms:model> >> </head> >> <body> >> <br /> >> <table style="text-align: left; width: 100%;" border="1" >> cellpadding="2" >> cellspacing="2"> >> <tbody> >> <tr> >> <th>Name</th> >> <th>ID</th> >> <th>Action</th> >> </tr> >> <xforms:repeat id="person-repeat" bind="person"> >> <tr> >> <td> >> <xforms:input ref="label"/> >> </td> >> <td> >> <xforms:output ref=".[not(@action)]/@about"/> >> <xforms:input ref=".[@action = 'create']/ >> @about"/> >> </td> >> <td> >> <xforms:trigger> >> <xforms:label>Delete</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:action if="@action = 'create'"> >> <xforms:delete nodeset="."/> >> </xforms:action> >> <xforms:action if="not(@action)"> >> <xforms:insert context="." >> origin="xxforms:attribute('action', 'remove')"/> >> </xforms:action> >> </xforms:action> >> </xforms:trigger> >> </td> >> </tr> >> </xforms:repeat> >> </tbody> >> </table> >> <br /> >> <xforms:trigger> >> <xforms:label>Add</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:insert bind="person" origin="instance('new- >> person')"/> >> <xforms:setvalue bind="new-name" value="'new name'"/> >> <xforms:setvalue bind="new-id" value="'#new-id'"/> >> </xforms:action> >> </xforms:trigger> >> (SAVE) (REVERT) >> <hr/> >> <xforms:switch> >> <xforms:case id="inspector-visible" selected="false"> >> <span> <xforms:trigger> >> <xforms:label>Hide Inspector</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:toggle case="inspector-hidden" /> >> </xforms:action> >> </xforms:trigger> <widget:xforms-instance-inspector >> xmlns:widget="http://orbeon.org/oxf/xml/widget" /> >> </span> >> </xforms:case> >> <xforms:case id="inspector-hidden" selected="true"> >> <xforms:trigger> >> <xforms:label>Show Inspector</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:toggle case="inspector-visible" /> >> </xforms:action> >> </xforms:trigger> >> </xforms:case> >> </xforms:switch> >> <hr/> >> >> </body> >> </html> > > > -- > 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 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 |