xforms:select & xforms:select1 events

Dear Collective,

I'm attempting to fire an event when a item from a dropdown is
selected.  The below code, taken from a previous post, works correctly
for an "xforms:select" block.  Further below, I tried to do the same
for an "xforms:select1" block, but it doesn't work.

 <xforms:switch>
  <xforms:case id="case1">
    <xforms:label>Case 1</xforms:label>
  </xforms:case>
  <xforms:case id="case2">
      <xforms:label>Case 2</xforms:label>
  </xforms:case>
</xforms:switch>

<xforms:select>
  <xforms:item>
     <xforms:label>select case1</xforms:label>
     <xforms:toggle ev:event="xforms-select" case="case1"/>
   </xforms:item>
   <xforms:item>
     <xforms:label>select case2</xforms:label>
     <xforms:toggle ev:event="xforms-select" case="case2"/>
  </xforms:item>
</xforms:select>


 <xforms:switch>
  <xforms:case id="case3">
    <xforms:label>Case 3</xforms:label>
  </xforms:case>
  <xforms:case id="case4">
      <xforms:label>Case 4</xforms:label>
  </xforms:case>
</xforms:switch>

<xforms:select1>
  <xforms:item>
     <xforms:label>select case3</xforms:label>
     <xforms:toggle ev:event="xforms-select" case="case3"/>
   </xforms:item>
   <xforms:item>
     <xforms:label>select case4</xforms:label>
     <xforms:toggle ev:event="xforms-select" case="case4"/>
  </xforms:item>
</xforms:select1>

Am I missing something?

Thank you in advance,

Kevin

0
kford
10/8/2007 6:33:30 PM
mozilla.dev.tech.xforms 695 articles. 0 followers. Post Follow

3 Replies
560 Views

Similar Articles

[PageSpeed] 17

Addendum:

If I amend the above code to:

<xforms:select1 appearance="full">

OR

<xforms:select1 appearance="compact">

Then everything works according to plan.  If, however, I do not
specify an appearance, or I specify appearance="minimal", then it
doesn't work.

This is a bug, no?

Warmly,

Kevin

0
kford
10/8/2007 8:12:11 PM
On Oct 9, 5:12 am, kf...@3windmills.com wrote:
> Addendum:
>
> If I amend the above code to:
>
> <xforms:select1 appearance="full">
>
> OR
>
> <xforms:select1 appearance="compact">
>
> Then everything works according to plan.  If, however, I do not
> specify an appearance, or I specify appearance="minimal", then it
> doesn't work.
>
> This is a bug, no?
>
> Warmly,
>
> Kevin

Looks like a bug. select/select1 share common code excepting minimal
select1. Please file the bug.

0
Alexander
10/9/2007 1:05:58 PM
On Oct 9, 8:05 am, Alexander Surkov <surkov.alexan...@gmail.com>
wrote:
> On Oct 9, 5:12 am, kf...@3windmills.com wrote:
>
>
> Looks like a bug. select/select1 share common code excepting minimal
> select1. Please file the bug.

Bug report filed.

https://bugzilla.mozilla.org/show_bug.cgi?id=399176

Kevin


0
kford
10/9/2007 2:32:09 PM
Reply: