xforms:select + appearance="minimal" = instance never gets updated for new selection

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

xforms:select + appearance="minimal" = instance never gets updated for new selection

Karolin Heiss
Hey

This might be a silly question but I am turning crazy on this little
problem.

I have a xforms select element. To check the value I display the value
es well throught xforms:output.
1. When set appearance="full" the referenced value in the xml instance
gets updated when a new value is selected.
2. When set appearance="minimal" the referenced value in the xml
instance never changes when a new value in the combobox gets selected.

What's going wrong? Why doenst get the instance updated automatically?

Thank you very much for your help! :-)
Karolin


==========================================================
<html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:xf="http://www.w3.org/2002/xforms">
  <head>
    <title>XForms Radio Button Using xf:Select
appearance="full"</title>
    <xf:model>
      <xf:instance xmlns="">
        <data>
          <MyCode type="xs:string"/>
          <MyCode2 type="xs:string"/>
        </data>
      </xf:instance>
    </xf:model>
  </head>
  <body>
    <p>XForms Radio Button Using Select appearance="full"</p>
    <xf:select ref="MyCode" selection="closed" appearance="full">
      <xf:item>
        <xf:label>Red</xf:label>
        <xf:value>red</xf:value>
      </xf:item>
      <xf:item>
        <xf:label>Orange</xf:label>
        <xf:value>orange</xf:value>
      </xf:item>
      <xf:item>
        <xf:label>Yellow</xf:label>
        <xf:value>yellow</xf:value>
      </xf:item>
    </xf:select>
    Output: <xf:output ref="/data/MyCode"/>

    <p>XForms Radio Button Using Select appearance="minimal"</p>
    <xf:select ref="MyCode2" selection="closed" appearance="minimal">
      <xf:item>
        <xf:label>Red</xf:label>
        <xf:value>red</xf:value>
      </xf:item>
      <xf:item>
        <xf:label>Orange</xf:label>
        <xf:value>orange</xf:value>
      </xf:item>
      <xf:item>
        <xf:label>Yellow</xf:label>
        <xf:value>yellow</xf:value>
      </xf:item>
    </xf:select>
     Output2: <xf:output ref="/data/MyCode2"/>
  </body>
</html>






--
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

test.xhtml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xforms:select + appearance="minimal" = instance never gets updated for new selection

Erik Bruchez
Administrator
Karolin,

I reproduce this, and it does seem very wrong! I entered a bug which
we will try to fix ASAP:

http://forge.ow2.org/tracker/index.php?func=detail&aid=314733&group_id=168&atid=350207

What build are you using?

-Erik

On Sun, Feb 14, 2010 at 10:37 AM, Karolin Krieg <[hidden email]> wrote:

> Hey
>
> This might be a silly question but I am turning crazy on this little
> problem.
>
> I have a xforms select element. To check the value I display the value
> es well throught xforms:output.
> 1. When set appearance="full" the referenced value in the xml instance
> gets updated when a new value is selected.
> 2. When set appearance="minimal" the referenced value in the xml
> instance never changes when a new value in the combobox gets selected.
>
> What's going wrong? Why doenst get the instance updated automatically?
>
> Thank you very much for your help! :-)
> Karolin
>
>
> ==========================================================
> <html xmlns="http://www.w3.org/1999/xhtml"
>          xmlns:xf="http://www.w3.org/2002/xforms">
>  <head>
>    <title>XForms Radio Button Using xf:Select
> appearance="full"</title>
>    <xf:model>
>      <xf:instance xmlns="">
>        <data>
>          <MyCode type="xs:string"/>
>          <MyCode2 type="xs:string"/>
>        </data>
>      </xf:instance>
>    </xf:model>
>  </head>
>  <body>
>    <p>XForms Radio Button Using Select appearance="full"</p>
>    <xf:select ref="MyCode" selection="closed" appearance="full">
>      <xf:item>
>        <xf:label>Red</xf:label>
>        <xf:value>red</xf:value>
>      </xf:item>
>      <xf:item>
>        <xf:label>Orange</xf:label>
>        <xf:value>orange</xf:value>
>      </xf:item>
>      <xf:item>
>        <xf:label>Yellow</xf:label>
>        <xf:value>yellow</xf:value>
>      </xf:item>
>    </xf:select>
>    Output: <xf:output ref="/data/MyCode"/>
>
>    <p>XForms Radio Button Using Select appearance="minimal"</p>
>    <xf:select ref="MyCode2" selection="closed" appearance="minimal">
>      <xf:item>
>        <xf:label>Red</xf:label>
>        <xf:value>red</xf:value>
>      </xf:item>
>      <xf:item>
>        <xf:label>Orange</xf:label>
>        <xf:value>orange</xf:value>
>      </xf:item>
>      <xf:item>
>        <xf:label>Yellow</xf:label>
>        <xf:value>yellow</xf:value>
>      </xf:item>
>    </xf:select>
>     Output2: <xf:output ref="/data/MyCode2"/>
>  </body>
> </html>
>
>
>
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Antw: Re: xforms:select + appearance="minimal" = instance never gets updated for new selection

Karolin Heiss
Hey Erik

Thank you very much for your answer.
I use one of the newest nightly builds 3.7.1.201002130124.


Karo


>>> Erik Bruchez <[hidden email]> 2/17/2010 2:13  >>>
Karolin,

I reproduce this, and it does seem very wrong! I entered a bug which
we will try to fix ASAP:

http://forge.ow2.org/tracker/index.php?func=detail&aid=314733&group_id=168&atid=350207


What build are you using?

-Erik

On Sun, Feb 14, 2010 at 10:37 AM, Karolin Krieg
<[hidden email]> wrote:
> Hey
>
> This might be a silly question but I am turning crazy on this little
> problem.
>
> I have a xforms select element. To check the value I display the
value
> es well throught xforms:output.
> 1. When set appearance="full" the referenced value in the xml
instance
> gets updated when a new value is selected.
> 2. When set appearance="minimal" the referenced value in the xml
> instance never changes when a new value in the combobox gets
selected.
>
> What's going wrong? Why doenst get the instance updated
automatically?

>
> Thank you very much for your help! :-)
> Karolin
>
>
> ==========================================================
> <html xmlns="http://www.w3.org/1999/xhtml"
>          xmlns:xf="http://www.w3.org/2002/xforms">
>  <head>
>    <title>XForms Radio Button Using xf:Select
> appearance="full"</title>
>    <xf:model>
>      <xf:instance xmlns="">
>        <data>
>          <MyCode type="xs:string"/>
>          <MyCode2 type="xs:string"/>
>        </data>
>      </xf:instance>
>    </xf:model>
>  </head>
>  <body>
>    <p>XForms Radio Button Using Select appearance="full"</p>
>    <xf:select ref="MyCode" selection="closed" appearance="full">
>      <xf:item>
>        <xf:label>Red</xf:label>
>        <xf:value>red</xf:value>
>      </xf:item>
>      <xf:item>
>        <xf:label>Orange</xf:label>
>        <xf:value>orange</xf:value>
>      </xf:item>
>      <xf:item>
>        <xf:label>Yellow</xf:label>
>        <xf:value>yellow</xf:value>
>      </xf:item>
>    </xf:select>
>    Output: <xf:output ref="/data/MyCode"/>
>
>    <p>XForms Radio Button Using Select appearance="minimal"</p>
>    <xf:select ref="MyCode2" selection="closed" appearance="minimal">
>      <xf:item>
>        <xf:label>Red</xf:label>
>        <xf:value>red</xf:value>
>      </xf:item>
>      <xf:item>
>        <xf:label>Orange</xf:label>
>        <xf:value>orange</xf:value>
>      </xf:item>
>      <xf:item>
>        <xf:label>Yellow</xf:label>
>        <xf:value>yellow</xf:value>
>      </xf:item>
>    </xf:select>
>     Output2: <xf:output ref="/data/MyCode2"/>
>  </body>
> </html>
>
>
>
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Antw: Re: xforms:select + appearance="minimal" = instance never gets updated for new selection

Erik Bruchez-3
Got it. This was actually not as bad as it sounded initially.

The reason is that for xforms:select, we don't support
appearance="minimal" distinct from appearance="compact". But setting
"minimal" was confusing the client.

So we have made it so that in this case compact == minimal:

http://github.com/orbeon/orbeon-forms/commit/5dd8acd7aa75a6ac4713cbe6d78d4d85867cea0a

-Erik

On Tue, Feb 16, 2010 at 11:50 PM, Karolin Krieg <[hidden email]> wrote:

> Hey Erik
>
> Thank you very much for your answer.
> I use one of the newest nightly builds 3.7.1.201002130124.
>
>
> Karo
>
>
>>>> Erik Bruchez <[hidden email]> 2/17/2010 2:13  >>>
> Karolin,
>
> I reproduce this, and it does seem very wrong! I entered a bug which
> we will try to fix ASAP:
>
> http://forge.ow2.org/tracker/index.php?func=detail&aid=314733&group_id=168&atid=350207
>
>
> What build are you using?
>
> -Erik
>
> On Sun, Feb 14, 2010 at 10:37 AM, Karolin Krieg
> <[hidden email]> wrote:
>> Hey
>>
>> This might be a silly question but I am turning crazy on this little
>> problem.
>>
>> I have a xforms select element. To check the value I display the
> value
>> es well throught xforms:output.
>> 1. When set appearance="full" the referenced value in the xml
> instance
>> gets updated when a new value is selected.
>> 2. When set appearance="minimal" the referenced value in the xml
>> instance never changes when a new value in the combobox gets
> selected.
>>
>> What's going wrong? Why doenst get the instance updated
> automatically?
>>
>> Thank you very much for your help! :-)
>> Karolin
>>
>>
>> ==========================================================
>> <html xmlns="http://www.w3.org/1999/xhtml"
>>          xmlns:xf="http://www.w3.org/2002/xforms">
>>  <head>
>>    <title>XForms Radio Button Using xf:Select
>> appearance="full"</title>
>>    <xf:model>
>>      <xf:instance xmlns="">
>>        <data>
>>          <MyCode type="xs:string"/>
>>          <MyCode2 type="xs:string"/>
>>        </data>
>>      </xf:instance>
>>    </xf:model>
>>  </head>
>>  <body>
>>    <p>XForms Radio Button Using Select appearance="full"</p>
>>    <xf:select ref="MyCode" selection="closed" appearance="full">
>>      <xf:item>
>>        <xf:label>Red</xf:label>
>>        <xf:value>red</xf:value>
>>      </xf:item>
>>      <xf:item>
>>        <xf:label>Orange</xf:label>
>>        <xf:value>orange</xf:value>
>>      </xf:item>
>>      <xf:item>
>>        <xf:label>Yellow</xf:label>
>>        <xf:value>yellow</xf:value>
>>      </xf:item>
>>    </xf:select>
>>    Output: <xf:output ref="/data/MyCode"/>
>>
>>    <p>XForms Radio Button Using Select appearance="minimal"</p>
>>    <xf:select ref="MyCode2" selection="closed" appearance="minimal">
>>      <xf:item>
>>        <xf:label>Red</xf:label>
>>        <xf:value>red</xf:value>
>>      </xf:item>
>>      <xf:item>
>>        <xf:label>Orange</xf:label>
>>        <xf:value>orange</xf:value>
>>      </xf:item>
>>      <xf:item>
>>        <xf:label>Yellow</xf:label>
>>        <xf:value>yellow</xf:value>
>>      </xf:item>
>>    </xf:select>
>>     Output2: <xf:output ref="/data/MyCode2"/>
>>  </body>
>> </html>
>>
>>
>>
>>
>>
>>
>> --
>> 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
>
>


--
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