xforms:switch inside a xforms:repeat

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

xforms:switch inside a xforms:repeat

oliver.lienhard
Hello

I try to develope a application build on ops 3.0.0

Is it possible to put a xforms:switch into a repeat element?

Error:
XForms error: No ControlInfo found for case id 'detail_show'

My Code:
<table>
<xforms:repeat nodeset="claim:aresses/claim:adress[position() lt last()]" id="adressindex">
<tr>
<td>
  <xforms:input ref="...">
  </xforms:input>
</td>                                                          
<td>
 <xforms:switch id="DetailHider">
   <xforms:case id="detail_hide">
     <xforms:trigger>
       <xforms:label>Show Details</xforms:label>
       <xforms:toggle ev:event="DOMActivate" case="detail_show"/>
     </xforms:trigger>
   </xforms:case>
   <xforms:case id="detail_show">        
     <xforms:trigger>
       <xforms:label>Hide Details</xforms:label>
       <xforms:toggle ev:event="DOMActivate" case="detail_hide"/>
     </xforms:trigger>
   <xforms:group id="SellerParty">
       <xforms:input ref=".....">
       </xforms:input>
   </xforms:group>
   </xforms:case>
 </xforms:switch>
</td>
</tr>
</xforms:repeat>
</table>

THX for Help

ITnetworX
Oliver lienhard
http://www.itnetworx.ch




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: xforms:switch inside a xforms:repeat

Ryan Puddephatt
Oliver,
        Currently the Xforms spec does not include the use of an
xforms:switch within an xforms:repeat

Ryan

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]]
>Sent: 28 January 2006 13:25
>To: [hidden email]
>Subject: [ops-users] xforms:switch inside a xforms:repeat
>
>Hello
>
>I try to develope a application build on ops 3.0.0
>
>Is it possible to put a xforms:switch into a repeat element?
>
>Error:
>XForms error: No ControlInfo found for case id 'detail_show'
>
>My Code:
><table>
><xforms:repeat nodeset="claim:aresses/claim:adress[position() lt last()]"
>id="adressindex">
><tr>
><td>
>  <xforms:input ref="...">
>  </xforms:input>
></td>
><td>
> <xforms:switch id="DetailHider">
>   <xforms:case id="detail_hide">
>     <xforms:trigger>
>       <xforms:label>Show Details</xforms:label>
>       <xforms:toggle ev:event="DOMActivate" case="detail_show"/>
>     </xforms:trigger>
>   </xforms:case>
>   <xforms:case id="detail_show">
>     <xforms:trigger>
>       <xforms:label>Hide Details</xforms:label>
>       <xforms:toggle ev:event="DOMActivate" case="detail_hide"/>
>     </xforms:trigger>
>   <xforms:group id="SellerParty">
>       <xforms:input ref=".....">
>       </xforms:input>
>   </xforms:group>
>   </xforms:case>
> </xforms:switch>
></td>
></tr>
></xforms:repeat>
></table>
>
>THX for Help
>
>ITnetworX
>Oliver lienhard
>http://www.itnetworx.ch
>




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xforms:switch inside a xforms:repeat

Erik Bruchez
Administrator
In reply to this post by oliver.lienhard
[hidden email] wrote:
> Hello
>
> I try to develope a application build on ops 3.0.0
>
> Is it possible to put a xforms:switch into a repeat element?

Definitely something we want to have, but it doesn't work yet. See the
bug entry:

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

And a thread on the subject in ops-users:

http://mail-archive.objectweb.org/ops-users/2005-08/msg00066.html

-Erik

>
> Error:
> XForms error: No ControlInfo found for case id 'detail_show'
>
> My Code:
> <table>
> <xforms:repeat nodeset="claim:aresses/claim:adress[position() lt last()]" id="adressindex">
> <tr>
> <td>
>   <xforms:input ref="...">
>   </xforms:input>
> </td>                                                          
> <td>
>  <xforms:switch id="DetailHider">
>    <xforms:case id="detail_hide">
>      <xforms:trigger>
>        <xforms:label>Show Details</xforms:label>
>        <xforms:toggle ev:event="DOMActivate" case="detail_show"/>
>      </xforms:trigger>
>    </xforms:case>
>    <xforms:case id="detail_show">        
>      <xforms:trigger>
>        <xforms:label>Hide Details</xforms:label>
>        <xforms:toggle ev:event="DOMActivate" case="detail_hide"/>
>      </xforms:trigger>
>    <xforms:group id="SellerParty">
>        <xforms:input ref=".....">
>        </xforms:input>
>    </xforms:group>
>    </xforms:case>
>  </xforms:switch>
> </td>
> </tr>
> </xforms:repeat>
> </table>
>
> THX for Help
>
> ITnetworX
> Oliver lienhard
> http://www.itnetworx.ch



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws