Hi,
From the documentation at http://wiki.orbeon.com/forms/doc/developer-guide/xforms-attribute-value-templates I get the impression that Attribute Value Templates (AVTs) can be used on any xhtml element attribute, with the exception of id. Within the xforms elements it seems that only the attributes listed can be controlled by AVTs. AVTs do not appear to work in the xxforms:dialog. The following does not work (the dialog is draggable). <xxforms:dialog id="dia-map" draggable="{false()}" > Have I understood the documentation correctly? Is it planned to enable AVTs for all attributes, in any element and including id attributes? thanks Tim -- Tim Pizey Centre for Genomics and Global Health <http://cggh.org> The Wellcome Trust Centre for Human Genetics Roosevelt Drive Oxford OX3 7BN United Kingdom Web: http://pizey.net/~timp Tel: +44 (0)1865 287532 -- 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 Tim,
Do you want the draggable feature to be run-time configurable? (I presume it supports "true" and "false" which, along with 1 and 0 are compatible representations for the values returned by the XPath functions true() and false() ) I suspect it won't be possible to enable AVT on all elements because the dependency issues when changes to model data occur. They certainly can simplify coding, but I imagine they could create feedback-like dependencies if they were available everywhere. Cheers, Hank Quoting Tim Pizey <[hidden email]>: > Hi, > > From the documentation at > http://wiki.orbeon.com/forms/doc/developer-guide/xforms-attribute-value-templates > I get the impression that Attribute Value Templates (AVTs) can be used > on any xhtml element attribute, > with the exception of id. > > Within the xforms elements it seems that only the attributes listed > can be controlled by AVTs. > > AVTs do not appear to work in the xxforms:dialog. > The following does not work (the dialog is draggable). > > <xxforms:dialog id="dia-map" draggable="{false()}" > > > > Have I understood the documentation correctly? > > Is it planned to enable AVTs for all attributes, in any element and > including id attributes? > > thanks > Tim > > > > > -- > Tim Pizey > Centre for Genomics and Global Health <http://cggh.org> > The Wellcome Trust Centre for Human Genetics > Roosevelt Drive > Oxford > OX3 7BN > United Kingdom > Web: http://pizey.net/~timp > Tel: +44 (0)1865 287532 > -- Hank Ratzesberger [hidden email] -- 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 Tim Pizey-2
Tim,
I think you read the doc right. xxforms:dialog/@draggable is not listed, which indicates that it won't work (unless we forgot to add this to the doc of course, but I can confirm that this is not implemented right now). We have been regularly adding AVT support on a need basis, and I think actions should be mostly complete by now. It is a little bit harder to handle those on controls, including xxforms:dialog, bit I have added an RFE to track this: http://forge.ow2.org/tracker/index.php?func=detail&aid=315098&group_id=168&atid=350207 We don't plan to add AVT support on @id attributes at this point because the XForms engine relies on ids to identify elements in the HTML DOM. If the id changes, it becomes tricky to find that element again. It's probably not impossible but too much trouble at this point unless somebody wants to tackle that project. -Erik On Wed, Jun 9, 2010 at 2:25 AM, Tim Pizey <[hidden email]> wrote: > Hi, > > From the documentation at > http://wiki.orbeon.com/forms/doc/developer-guide/xforms-attribute-value-templates > I get the impression that Attribute Value Templates (AVTs) can be used > on any xhtml element attribute, > with the exception of id. > > Within the xforms elements it seems that only the attributes listed > can be controlled by AVTs. > > AVTs do not appear to work in the xxforms:dialog. > The following does not work (the dialog is draggable). > > <xxforms:dialog id="dia-map" draggable="{false()}" > > > > Have I understood the documentation correctly? > > Is it planned to enable AVTs for all attributes, in any element and > including id attributes? > > thanks > Tim > > > > > -- > Tim Pizey > Centre for Genomics and Global Health <http://cggh.org> > The Wellcome Trust Centre for Human Genetics > Roosevelt Drive > Oxford > OX3 7BN > United Kingdom > Web: http://pizey.net/~timp > Tel: +44 (0)1865 287532 > > > -- > 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 |
Hi Erik,
thank you for your response. On 10 June 2010 23:36, Erik Bruchez <[hidden email]> wrote: > Tim, > > I think you read the doc right. > > xxforms:dialog/@draggable is not listed, which indicates that it won't > work (unless we forgot to add this to the doc of course, but I can > confirm that this is not implemented right now). > > We have been regularly adding AVT support on a need basis, and I think > actions should be mostly complete by now. > > It is a little bit harder to handle those on controls, including > xxforms:dialog, bit I have added an RFE to track this: > > http://forge.ow2.org/tracker/index.php?func=detail&aid=315098&group_id=168&atid=350207 Would it be possible to approach this by adding support for AVTs on all attributes except Ids? > We don't plan to add AVT support on @id attributes at this point > because the XForms engine relies on ids to identify elements in the > HTML DOM. If the id changes, it becomes tricky to find that element > again. It's probably not impossible but too much trouble at this point > unless somebody wants to tackle that project. Yes I can see that Ids are a special case. Thanks again. Tim -- Tim Pizey Centre for Genomics and Global Health <http://cggh.org> The Wellcome Trust Centre for Human Genetics Roosevelt Drive Oxford OX3 7BN United Kingdom Web: http://pizey.net/~timp Tel: +44 (0)1865 287532 -- 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
|
>> It is a little bit harder to handle those on controls, including
>> xxforms:dialog, bit I have added an RFE to track this: >> >> http://forge.ow2.org/tracker/index.php?func=detail&aid=315098&group_id=168&atid=350207 > > > Would it be possible to approach this by adding support for AVTs on > all attributes except Ids? A general mechanism would be good, yes. But it's not as easy as it might sound as attributes have different roles, and some attributes can impact client-side code. -Erik >> We don't plan to add AVT support on @id attributes at this point >> because the XForms engine relies on ids to identify elements in the >> HTML DOM. If the id changes, it becomes tricky to find that element >> again. It's probably not impossible but too much trouble at this point >> unless somebody wants to tackle that project. > > > Yes I can see that Ids are a special case. > > Thanks again. > Tim > > -- > Tim Pizey > Centre for Genomics and Global Health <http://cggh.org> > The Wellcome Trust Centre for Human Genetics > Roosevelt Drive > Oxford > OX3 7BN > United Kingdom > Web: http://pizey.net/~timp > Tel: +44 (0)1865 287532 > > > -- > 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 |