The attached XHTML (tested in the sandbox) shows that binding a
trigger into a node with readonly="false()" deactivates the trigger. The trigger is rendered as a button that is not read only (which is correct), but the trigger is not working. Lastly, the sample also shows that the <xforms:reset/> is not working. A. -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws test-readonly.xhtml (1K) Download Attachment |
Administrator
|
Alex,
I looked into this and I believe that it's a user error ;-) When you use the @bind attribute, you set the current context on the trigger element to the <editable> element. This means that the <setvalue> @ref attribute is now looking for editable/target, which explains why the <setvalue> action doesn't do anything. If you write instead: <xforms:setvalue ref="../target" value="'with'"/> Then things work just fine! -Erik Alexander Zatko wrote: > The attached XHTML (tested in the sandbox) shows that binding a trigger > into a node with readonly="false()" deactivates the trigger. The trigger > is rendered as a button that is not read only (which is correct), but > the trigger is not working. > > Lastly, the sample also shows that the <xforms:reset/> is not working. > > A. -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
mea culpa :-)
On Oct 28, 2006, at 12:52 PM, Erik Bruchez wrote: > Alex, > > I looked into this and I believe that it's a user error ;-) > > When you use the @bind attribute, you set the current context on > the trigger element to the <editable> element. This means that the > <setvalue> @ref attribute is now looking for editable/target, which > explains why the <setvalue> action doesn't do anything. > > If you write instead: > > <xforms:setvalue ref="../target" value="'with'"/> > > Then things work just fine! > > -Erik > > Alexander Zatko wrote: >> The attached XHTML (tested in the sandbox) shows that binding a >> trigger into a node with readonly="false()" deactivates the >> trigger. The trigger is rendered as a button that is not read only >> (which is correct), but the trigger is not working. >> Lastly, the sample also shows that the <xforms:reset/> is not >> working. >> A. > > -- > Orbeon - XForms Everywhere: > http://www.orbeon.com/blog/ > > > -- > You receive this message as a subscriber of the ops- > [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Alexander Žaťko
Alex,
Note that xforms:reset is not implemented, so it's no wonder xforms:reset not working ;-) http://forge.objectweb.org/tracker/index.php?func=detail&aid=303946&group_id=168&atid=350207 -Erik Alexander Zatko wrote: > The attached XHTML (tested in the sandbox) shows that binding a trigger > into a node with readonly="false()" deactivates the trigger. The trigger > is rendered as a button that is not read only (which is correct), but > the trigger is not working. > > Lastly, the sample also shows that the <xforms:reset/> is not working. > > A. -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |