Hi (list that needs a clever moniker),
I'm stuck attempting to implement a UI design such as in GMail, a list of "checkboxes" with formatted/columnar data. It also has the nice feature that when you select the box, the row background color changes. But the XForms select control does not allow html output in its <label> element. So, a list of say, movie title, actor, poster gif, requires that each line have its own select (appearance="full") -- each select with its own instance with just one item. This is difficult to build dynamically. Has anyone tried this? Cheers, Hank Hank Ratzesberger NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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
|
Hi Hank,
On Wed, Jun 4, 2008 at 9:50 AM, Hank Ratzesberger <[hidden email]> wrote: > But the XForms select control does not allow html output in > its <label> element. So, a list of say, movie title, actor, > poster gif, requires that each line have its own select > (appearance="full") -- each select with its own instance with > just one item. Exactly, you will need one <xforms select appearance="full"> per line? > This is difficult to build dynamically. Really? You can just have that <xforms select appearance="full"> in each iteration of the repeat, bound to the appropriate node. 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 |
OK, then I am simply having trouble binding to a node. (hardly ever happens ;) But I try variations of <xforms:instance id="select-list"> <items xmlns=""> <xforms:item> <xforms:value>one</xforms:value> <xforms:label/> </xforms:item> <xforms:item> <xforms:value>two</xforms:value> </xforms:label/> </xforms:item> </items> </xforms:instance> One instance that I can add to and delete from, with many selects... and in the repeat, variations of <xforms:select ref="instance('select-list')/item[0]" appearance="full"/> or more properly <xforms:select ref="instance('select-list')//items[xxforms:repeat- current()]" appearance="full"/> Probably, I need many <items> and not just many <item> elements? Any thoughts on what the instance and select ref should look like would be great. Thanks, Hank On Jun 4, 2008, at 10:38 AM, Alessandro Vernet wrote: > Hi Hank, > > On Wed, Jun 4, 2008 at 9:50 AM, Hank Ratzesberger > <[hidden email]> wrote: >> But the XForms select control does not allow html output in >> its <label> element. So, a list of say, movie title, actor, >> poster gif, requires that each line have its own select >> (appearance="full") -- each select with its own instance with >> just one item. > > Exactly, you will need one <xforms select appearance="full"> per line? > >> This is difficult to build dynamically. > > Really? You can just have that <xforms select appearance="full"> in > each iteration of the repeat, bound to the appropriate node. > > 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 NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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
|
Hank,
On Wed, Jun 4, 2008 at 11:15 AM, Hank Ratzesberger <[hidden email]> wrote: > <xforms:instance id="select-list"> > <items xmlns=""> > <xforms:item> > <xforms:value>one</xforms:value> > <xforms:label/> > </xforms:item> > <xforms:item> > <xforms:value>two</xforms:value> > </xforms:label/> > </xforms:item> > </items> > </xforms:instance> iterating on in the repeat? I.e. each xforms:item corresponds to one row in the table? I don't think it is. That instance is the on that is interesting. And that instance for each row you would have a <selected>true or empty</selected> with the select1 pointing to the <selected> for the current row. Does this make sense? 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 |
Hi Alex,
Thanks for your feedback, indeed I was lost, with only the fact that I find the strict xforms spec. to need some evolution. I was able to easily overcome my problem with xxforms:variable, which, just as in XSLT, can really simplify coding. I include an example that can be run in the sandbox just to end this thread. Cheers, Hank Hank Ratzesberger NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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 test1.xhtml (2K) Download Attachment |
Free forum by Nabble | Edit this page |