W3C home > Mailing lists > Public > public-forms@w3.org > June 2007

xforms:select and blank value

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Fri, 01 Jun 2007 13:19:10 -0700
Message-ID: <46607F3E.8040105@orbeon.com>
To: public-forms@w3.org
CC: www-forms-editor@w3.org

All,

What is supposed to happen with the following:

     <xforms:select ref="value">
         <xforms:label>Flavors</xforms:label>
         <xforms:item>
             <xforms:label>Empty</xforms:label>
             <xforms:value></xforms:value>
         </xforms:item>
         <xforms:item>
             <xforms:label>Chocolate</xforms:label>
             <xforms:value>chocolate</xforms:value>
         </xforms:item>
     </xforms:select>

The key here is the first item value being empty.

Now if I have the following in the instance:

     <value></value>

Is the first item, "Empty". supposed to be visually selected?

What if I have this:

     <value>chocolate</value>

Clearly, "Chocolate" is selected. But then would "Empty" be selected?

-Erik

-- 
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/
Received on Friday, 1 June 2007 21:10:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:43 UTC