Cannot use ouput element in static item

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

Cannot use ouput element in static item

Hank Ratzesberger

I'm running into a problem creating choices/itemsets
within repeats.  I cannot use <output> within <value>
elements.  I presume this is part of the move to version
1.1 compliance. Below is the broken code which produces the
OXF exception .

Is there a good example of creating selects within
repeat ?

Thanks,
Hank

<xforms:repeat nodeset="//origin" id="main-repeat">
  <tr>
    <td>
      <xforms:variable name="evid" select="evid"/>
      <xforms:select ref="instance('all-select')/evids"
appearance="full">
         <xforms:choices>
           <xforms:item>
             <xforms:value><xforms:output value="$evid"/></xforms:value>
<xforms:label/>
           </xforms:item>
         </xforms:choices>
       </xforms:select>
     </td>






--
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: Cannot use ouput element in static item

Erik Bruchez
Administrator
As a workaround, can you try removing xforms:choices?

-Erik

On Nov 1, 2008, at 7:35 PM, Hank Ratzesberger wrote:

>
> I'm running into a problem creating choices/itemsets
> within repeats.  I cannot use <output> within <value>
> elements.  I presume this is part of the move to version
> 1.1 compliance. Below is the broken code which produces the
> OXF exception .
>
> Is there a good example of creating selects within
> repeat ?
>
> Thanks,
> Hank
>
> <xforms:repeat nodeset="//origin" id="main-repeat">
>  <tr>
>    <td>
>      <xforms:variable name="evid" select="evid"/>
>      <xforms:select ref="instance('all-select')/evids"
> appearance="full">
>         <xforms:choices>
>           <xforms:item>
>             <xforms:value><xforms:output value="$evid"/></
> xforms:value>
> <xforms:label/>
>           </xforms:item>
>         </xforms:choices>
>       </xforms:select>
>     </td>
>
>
>
>
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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: Re: Cannot use ouput element in static item

Hank Ratzesberger
Hi Erik,

Yes, I have done that after studying the 1.1 spec a little closer --  
choices
preferred when using the copy element to get a list of items and
not needed when there is only one item.

And this is working perfectly in a very recent build:

<xforms:item>
        <xforms:value value="$evid"/>
        <xforms:label/>
</xforms:item>

Thanks,
Hank


On Nov 6, 2008, at 3:11 PM, Erik Bruchez wrote:

> As a workaround, can you try removing xforms:choices?
>
> -Erik
>
> On Nov 1, 2008, at 7:35 PM, Hank Ratzesberger wrote:
>
>>
>> I'm running into a problem creating choices/itemsets
>> within repeats.  I cannot use <output> within <value>
>> elements.  I presume this is part of the move to version
>> 1.1 compliance. Below is the broken code which produces the
>> OXF exception .
>>
>> Is there a good example of creating selects within
>> repeat ?
>>
>> Thanks,
>> Hank
>>
>> <xforms:repeat nodeset="//origin" id="main-repeat">
>>  <tr>
>>    <td>
>>      <xforms:variable name="evid" select="evid"/>
>>      <xforms:select ref="instance('all-select')/evids"
>> appearance="full">
>>         <xforms:choices>
>>           <xforms:item>
>>             <xforms:value><xforms:output value="$evid"/></
>> xforms:value>
>> <xforms:label/>
>>           </xforms:item>
>>         </xforms:choices>
>>       </xforms:select>
>>     </td>
>>
>>
>>
>>
>>
>> --
>> 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
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
> --
> 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
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