W3C home > Mailing lists > Public > www-forms@w3.org > January 2009

Re: visualizing an instance

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Mon, 5 Jan 2009 12:29:23 +0800
Message-Id: <D80252BA-D6BD-433D-ADB2-DB7A4D4A64A9@orbeon.com>
To: xforms <www-forms@w3.org>

Laszlo,

Clear drawback of #1 is that you have to modify the XForms. Also,  
fields such as xforms:select will require more complex XPath  
expressions to show the label associated with the selected item.

I usually prefer solution #2: mark the instance as "read-only" so that  
all controls do not allow input. Note that since readonly-ness is  
inherited, this can be done with a single bind on the root element of  
your instance:

   <xforms:bind nodeset="instance('my-instance')" readonly="true()"/>

In Orbeon Forms, we have, in addition, a page-wide configuration  
property which allows showing all readonly controls not as grayed-out  
but with a nicer appearance, making the page ready to be printed or  
saved as HTML.

-Erik

On Jan 5, 2009, at 6:50 AM, Jabba Laci wrote:

>
> Hi,
>
> How to visualize data that was collected by an xform? I can see two  
> solutions:
>
> (1) Use an xform that is similar to the original data collector, but
> all widgets are replaced by "output" widgets. The XML template in the
> head is replaced by the given XML data.
>
> (2) Use a similar xform to the data collector, but "grey out"
> (disable) all the widgets. This way, the user cannot modify anything.
> The XML data is loaded to the head part.
>
> Which one do you suggest? Or is there a better way?
>
> Thanks,
>
> Laszlo
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/
Received on Monday, 5 January 2009 04:30:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:15 GMT