Repeat with optional forms control

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

Repeat with optional forms control

Marco Lebel
Hello,

Here is the usual stuff : I am new at this, not sure, ...

I am writting my first Xforms application and I am trying to do the
following:

1) A repeat of a nodeset (homogeneous)
2) Within the repeat I have two select1 control amongst other controls
3) For each of these control, if selected, I want to have an input field
enable and visible and disable and hidden otherwise
4) No matter the approach the element representing the optional data must
get submited


I went through a lot of the archive and the examples but I have not found a
solution. I also tried a series of variation with the bind element without
success.

Help will greatly be appreciated, and even more if some education was thrown
in ;-) I obviously do not get it

Thanks in advance.

Marco

_________________________________________________________________
Ready for the world's first international mobile film festival celebrating
the creative potential of today's youth? Check out Mobile Jam Fest for your
a chance to WIN $10,000! www.mobilejamfest.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Repeat with optional forms control

Ryan Puddephatt
Marco,
        Some code would be helpful, one of the select1 controls?
In what situation are you trying to show the input?
Just when the select1 is not '' or are there different cases?
Is there only one input you wish to show or several?

BTW Welcome to Xforms :-)

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Marco Lebel [mailto:[hidden email]]
>Sent: 10 November 2006 21:48
>To: [hidden email]
>Subject: [ops-users] Repeat with optional forms control
>
>Hello,
>
>Here is the usual stuff : I am new at this, not sure, ...
>
>I am writting my first Xforms application and I am trying to do the
>following:
>
>1) A repeat of a nodeset (homogeneous)
>2) Within the repeat I have two select1 control amongst other controls
>3) For each of these control, if selected, I want to have an
>input field enable and visible and disable and hidden otherwise
>4) No matter the approach the element representing the
>optional data must get submited
>
>
>I went through a lot of the archive and the examples but I
>have not found a solution. I also tried a series of variation
>with the bind element without success.
>
>Help will greatly be appreciated, and even more if some
>education was thrown in ;-) I obviously do not get it
>
>Thanks in advance.
>
>Marco
>
>_________________________________________________________________
>Ready for the world's first international mobile film festival
>celebrating the creative potential of today's youth? Check out
>Mobile Jam Fest for your a chance to WIN $10,000! www.mobilejamfest.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Repeat with optional forms control

Alessandro  Vernet
Administrator
In reply to this post by Marco Lebel
Marco,

Like Ryan said, it would be useful to see some of your code; if
possible a stand-alone file that run in the XForms sandbox. If you
have nodes in the instance that are non-relevant, but you still would
like to have them submitted, add an attribute relevant="false" to the
<xforms:submission>, as in:

<xforms:submission method="post" action="..."
    ref="instance('instance')" id="do-it" relevant="false" replace="instance"/>

This is something new in XForms 1.1:
http://www.w3.org/TR/xforms11/#attrib-submit-relevant

Alex

On 11/10/06, Marco Lebel <[hidden email]> wrote:

> Hello,
>
> Here is the usual stuff : I am new at this, not sure, ...
>
> I am writting my first Xforms application and I am trying to do the
> following:
>
> 1) A repeat of a nodeset (homogeneous)
> 2) Within the repeat I have two select1 control amongst other controls
> 3) For each of these control, if selected, I want to have an input field
> enable and visible and disable and hidden otherwise
> 4) No matter the approach the element representing the optional data must
> get submited
>
>
> I went through a lot of the archive and the examples but I have not found a
> solution. I also tried a series of variation with the bind element without
> success.
>
> Help will greatly be appreciated, and even more if some education was thrown
> in ;-) I obviously do not get it
>
> Thanks in advance.
>
> Marco
>
> _________________________________________________________________
> Ready for the world's first international mobile film festival celebrating
> the creative potential of today's youth? Check out Mobile Jam Fest for your
> a chance to WIN $10,000! www.mobilejamfest.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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Repeat with optional forms control

Marco Lebel
Ryan, Alex

As requested here is the epurated code (i.e. the bit that i can't figure
out!!!).  I have tested it and it runs in the sandbox.  By clicking on the
add item button it should be clear as to what I am trying to do.

Thanks for your help,

Marco,

p.s. Thanks for the welcome ;-)

<?xml version="1.0" encoding="UTF-8"?>
<html xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:f="http://orbeon.org/oxf/xml/formatting"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:widget="http://orbeon.org/oxf/xml/widget"
xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Repeat with optional form control</title>
    <xforms:model id="main-model">
      <xforms:instance id="main-instance">
        <form xmlns="">
          <itemList>
            <!--1 or more repetitions:-->
            <item>
              <isRequired>true</isRequired>
              <optionalItem>100</optionalItem>
              <mandatoryItem>100</mandatoryItem>
            </item>
          </itemList>
        </form>
      </xforms:instance>
      <xforms:instance id="triggers">
        <triggers xmlns="">
          <remove-item/>
        </triggers>
      </xforms:instance>
      <xforms:bind nodeset="instance('triggers')/remove-item"
relevant="count(instance('main-instance')/itemList/item) > 1"/>
      <xforms:submission id="main" method="post" action="/vlcapp/detail"/>
      <xforms:submission id="save" method="post" replace="none"
action="/vlcapp/save"/>
    </xforms:model>
  </head>
  <body>
    <xforms:group ref="instance('main-instance')/itemList">
      <xforms:repeat id="itemList-repeat" nodeset="item[position() lt
last()]">
        <xhtml:p>
          <xforms:select1 ref="isRequired" appearance="full">
            <xforms:label class="fixed-width">Is required:</xforms:label>
            <xforms:hint>If set to yes then the optionalItem control should
appear!!!</xforms:hint>
            <xforms:item>
              <xforms:label>Yes</xforms:label>
              <xforms:value>true</xforms:value>
            </xforms:item>
            <xforms:item>
              <xforms:label>No</xforms:label>
              <xforms:value>false</xforms:value>
            </xforms:item>
          </xforms:select1>
        </xhtml:p>
        <xhtml:p>
          <xforms:input ref="optionalItem" incremental="true">
            <xforms:label class="fixed-width">Optional value:</xforms:label>
            <xforms:hint>This control should only be visible when the
previous select is set to yes</xforms:hint>
          </xforms:input>
        </xhtml:p>
        <xhtml:p>
          <xforms:input ref="mandatoryItem" incremental="true">
            <xforms:label class="fixed-width">Mandatory item:</xforms:label>
            <xforms:hint>More form controls would appear but not required
here....</xforms:hint>
          </xforms:input>
        </xhtml:p>
        <br/>
      </xforms:repeat>
      <table>
        <tr>
          <td align="left" valign="bottom">
            <xforms:trigger ref="instance('triggers')/remove-item">
              <xforms:label>Remove item</xforms:label>
              <xforms:delete ev:event="DOMActivate"
nodeset="instance('main-instance')/itemList/item"
at="index('itemList-repeat')"/>
            </xforms:trigger>
            <xforms:trigger>
              <xforms:label>Add item</xforms:label>
              <xforms:insert ev:event="DOMActivate" nodeset="item"
at="index('itemList-repeat')" position="after"/>
            </xforms:trigger>
          </td>
        </tr>
      </table>
    </xforms:group>
  </body>
</html>


>From: "Alessandro Vernet" <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: Re: [ops-users] Repeat with optional forms control
>Date: Fri, 10 Nov 2006 14:31:11 -0800
>
>Marco,
>
>Like Ryan said, it would be useful to see some of your code; if
>possible a stand-alone file that run in the XForms sandbox. If you
>have nodes in the instance that are non-relevant, but you still would
>like to have them submitted, add an attribute relevant="false" to the
><xforms:submission>, as in:
>
><xforms:submission method="post" action="..."
>    ref="instance('instance')" id="do-it" relevant="false"
>replace="instance"/>
>
>This is something new in XForms 1.1:
>http://www.w3.org/TR/xforms11/#attrib-submit-relevant
>
>Alex
>
>On 11/10/06, Marco Lebel <[hidden email]> wrote:
>>Hello,
>>
>>Here is the usual stuff : I am new at this, not sure, ...
>>
>>I am writting my first Xforms application and I am trying to do the
>>following:
>>
>>1) A repeat of a nodeset (homogeneous)
>>2) Within the repeat I have two select1 control amongst other controls
>>3) For each of these control, if selected, I want to have an input field
>>enable and visible and disable and hidden otherwise
>>4) No matter the approach the element representing the optional data must
>>get submited
>>
>>
>>I went through a lot of the archive and the examples but I have not found
>>a
>>solution. I also tried a series of variation with the bind element without
>>success.
>>
>>Help will greatly be appreciated, and even more if some education was
>>thrown
>>in ;-) I obviously do not get it
>>
>>Thanks in advance.
>>
>>Marco
>>
>>_________________________________________________________________
>>Ready for the world's first international mobile film festival celebrating
>>the creative potential of today's youth? Check out Mobile Jam Fest for
>>your
>>a chance to WIN $10,000! www.mobilejamfest.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
>>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>>
>
>
>--
>Blog (XML, Web apps, Open Source):
>http://www.orbeon.com/blog/
>

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

_________________________________________________________________
Ready for the world's first international mobile film festival celebrating
the creative potential of today's youth? Check out Mobile Jam Fest for your
a chance to WIN $10,000! www.mobilejamfest.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Repeat with optional forms control

Ryan Puddephatt
Marco,
        There are two ways to do this, binds or groups

With a bind you can do

<xforms:bind nodeset="instance('main-instance')/itemList/item/optionalItem"
relevant="../isRequired = 'true'"/>

Or with groups

In this case surround the optionalItem with

<xforms:group ref=".[isRequired = 'true']">
        ...
</xforms:group>

Hope this helps

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Marco Lebel [mailto:[hidden email]]
>Sent: 11 November 2006 00:45
>To: [hidden email]
>Subject: Re: [ops-users] Repeat with optional forms control
>
>Ryan, Alex
>
>As requested here is the epurated code (i.e. the bit that i
>can't figure out!!!).  I have tested it and it runs in the
>sandbox.  By clicking on the add item button it should be
>clear as to what I am trying to do.
>
>Thanks for your help,
>
>Marco,
>
>p.s. Thanks for the welcome ;-)
>
><?xml version="1.0" encoding="UTF-8"?>
><html xsl:version="2.0"
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>xmlns:xs="http://www.w3.org/2001/XMLSchema"
>xmlns:xforms="http://www.w3.org/2002/xforms"
>xmlns:ev="http://www.w3.org/2001/xml-events"
>xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>xmlns:xi="http://www.w3.org/2001/XInclude"
>xmlns:f="http://orbeon.org/oxf/xml/formatting"
>xmlns:xhtml="http://www.w3.org/1999/xhtml"
>xmlns:widget="http://orbeon.org/oxf/xml/widget"
>xmlns="http://www.w3.org/1999/xhtml">
>  <head>
>    <title>Repeat with optional form control</title>
>    <xforms:model id="main-model">
>      <xforms:instance id="main-instance">
>        <form xmlns="">
>          <itemList>
>            <!--1 or more repetitions:-->
>            <item>
>              <isRequired>true</isRequired>
>              <optionalItem>100</optionalItem>
>              <mandatoryItem>100</mandatoryItem>
>            </item>
>          </itemList>
>        </form>
>      </xforms:instance>
>      <xforms:instance id="triggers">
>        <triggers xmlns="">
>          <remove-item/>
>        </triggers>
>      </xforms:instance>
>      <xforms:bind nodeset="instance('triggers')/remove-item"
>relevant="count(instance('main-instance')/itemList/item) > 1"/>
>      <xforms:submission id="main" method="post"
>action="/vlcapp/detail"/>
>      <xforms:submission id="save" method="post" replace="none"
>action="/vlcapp/save"/>
>    </xforms:model>
>  </head>
>  <body>
>    <xforms:group ref="instance('main-instance')/itemList">
>      <xforms:repeat id="itemList-repeat"
>nodeset="item[position() lt last()]">
>        <xhtml:p>
>          <xforms:select1 ref="isRequired" appearance="full">
>            <xforms:label class="fixed-width">Is
>required:</xforms:label>
>            <xforms:hint>If set to yes then the optionalItem
>control should appear!!!</xforms:hint>
>            <xforms:item>
>              <xforms:label>Yes</xforms:label>
>              <xforms:value>true</xforms:value>
>            </xforms:item>
>            <xforms:item>
>              <xforms:label>No</xforms:label>
>              <xforms:value>false</xforms:value>
>            </xforms:item>
>          </xforms:select1>
>        </xhtml:p>
>        <xhtml:p>
>          <xforms:input ref="optionalItem" incremental="true">
>            <xforms:label class="fixed-width">Optional
>value:</xforms:label>
>            <xforms:hint>This control should only be visible
>when the previous select is set to yes</xforms:hint>
>          </xforms:input>
>        </xhtml:p>
>        <xhtml:p>
>          <xforms:input ref="mandatoryItem" incremental="true">
>            <xforms:label class="fixed-width">Mandatory
>item:</xforms:label>
>            <xforms:hint>More form controls would appear but
>not required here....</xforms:hint>
>          </xforms:input>
>        </xhtml:p>
>        <br/>
>      </xforms:repeat>
>      <table>
>        <tr>
>          <td align="left" valign="bottom">
>            <xforms:trigger ref="instance('triggers')/remove-item">
>              <xforms:label>Remove item</xforms:label>
>              <xforms:delete ev:event="DOMActivate"
>nodeset="instance('main-instance')/itemList/item"
>at="index('itemList-repeat')"/>
>            </xforms:trigger>
>            <xforms:trigger>
>              <xforms:label>Add item</xforms:label>
>              <xforms:insert ev:event="DOMActivate" nodeset="item"
>at="index('itemList-repeat')" position="after"/>
>            </xforms:trigger>
>          </td>
>        </tr>
>      </table>
>    </xforms:group>
>  </body>
></html>
>
>
>>From: "Alessandro Vernet" <[hidden email]>
>>Reply-To: [hidden email]
>>To: [hidden email]
>>Subject: Re: [ops-users] Repeat with optional forms control
>>Date: Fri, 10 Nov 2006 14:31:11 -0800
>>
>>Marco,
>>
>>Like Ryan said, it would be useful to see some of your code; if
>>possible a stand-alone file that run in the XForms sandbox.
>If you have
>>nodes in the instance that are non-relevant, but you still would like
>>to have them submitted, add an attribute relevant="false" to the
>><xforms:submission>, as in:
>>
>><xforms:submission method="post" action="..."
>>    ref="instance('instance')" id="do-it" relevant="false"
>>replace="instance"/>
>>
>>This is something new in XForms 1.1:
>>http://www.w3.org/TR/xforms11/#attrib-submit-relevant
>>
>>Alex
>>
>>On 11/10/06, Marco Lebel <[hidden email]> wrote:
>>>Hello,
>>>
>>>Here is the usual stuff : I am new at this, not sure, ...
>>>
>>>I am writting my first Xforms application and I am trying to do the
>>>following:
>>>
>>>1) A repeat of a nodeset (homogeneous)
>>>2) Within the repeat I have two select1 control amongst
>other controls
>>>3) For each of these control, if selected, I want to have an input
>>>field enable and visible and disable and hidden otherwise
>>>4) No matter the approach the element representing the optional data
>>>must get submited
>>>
>>>
>>>I went through a lot of the archive and the examples but I have not
>>>found a solution. I also tried a series of variation with the bind
>>>element without success.
>>>
>>>Help will greatly be appreciated, and even more if some
>education was
>>>thrown in ;-) I obviously do not get it
>>>
>>>Thanks in advance.
>>>
>>>Marco
>>>
>>>_________________________________________________________________
>>>Ready for the world's first international mobile film festival
>>>celebrating the creative potential of today's youth? Check
>out Mobile
>>>Jam Fest for your a chance to WIN $10,000! www.mobilejamfest.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
>>>ObjectWeb mailing lists service home page:
>>>http://www.objectweb.org/wws
>>>
>>>
>>>
>>
>>
>>--
>>Blog (XML, Web apps, Open Source):
>>http://www.orbeon.com/blog/
>>
>
>
>>
>>--
>>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
>
>_________________________________________________________________
>Ready for the world's first international mobile film festival
>celebrating the creative potential of today's youth? Check out
>Mobile Jam Fest for your a chance to WIN $10,000! www.mobilejamfest.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Repeat with optional forms control

Marco Lebel
Thanks Ryan

Exactly what I wanted to do.  It is so simple!!!

Marco,


>From: Ryan Puddephatt <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: RE: [ops-users] Repeat with optional forms control
>Date: Sat, 11 Nov 2006 01:14:28 +0000
>
>Marco,
> There are two ways to do this, binds or groups
>
>With a bind you can do
>
><xforms:bind nodeset="instance('main-instance')/itemList/item/optionalItem"
>relevant="../isRequired = 'true'"/>
>
>Or with groups
>
>In this case surround the optionalItem with
>
><xforms:group ref=".[isRequired = 'true']">
> ...
></xforms:group>
>
>Hope this helps
>
>Ryan
>
>Ryan Puddephatt
>Software Engineer
>
>Teleflex Group - IT UK
>1 Michaelson Square
>Livingston
>West Lothian
>Scotland
>EH54 7DP
>
>e> [hidden email]
>t> +44(0)1506 407 110
>f> +44(0)1506 407 108
>
>
>
> >-----Original Message-----
> >From: Marco Lebel [mailto:[hidden email]]
> >Sent: 11 November 2006 00:45
> >To: [hidden email]
> >Subject: Re: [ops-users] Repeat with optional forms control
> >
> >Ryan, Alex
> >
> >As requested here is the epurated code (i.e. the bit that i
> >can't figure out!!!).  I have tested it and it runs in the
> >sandbox.  By clicking on the add item button it should be
> >clear as to what I am trying to do.
> >
> >Thanks for your help,
> >
> >Marco,
> >
> >p.s. Thanks for the welcome ;-)
> >
> ><?xml version="1.0" encoding="UTF-8"?>
> ><html xsl:version="2.0"
> >xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >xmlns:xs="http://www.w3.org/2001/XMLSchema"
> >xmlns:xforms="http://www.w3.org/2002/xforms"
> >xmlns:ev="http://www.w3.org/2001/xml-events"
> >xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
> >xmlns:xi="http://www.w3.org/2001/XInclude"
> >xmlns:f="http://orbeon.org/oxf/xml/formatting"
> >xmlns:xhtml="http://www.w3.org/1999/xhtml"
> >xmlns:widget="http://orbeon.org/oxf/xml/widget"
> >xmlns="http://www.w3.org/1999/xhtml">
> >  <head>
> >    <title>Repeat with optional form control</title>
> >    <xforms:model id="main-model">
> >      <xforms:instance id="main-instance">
> >        <form xmlns="">
> >          <itemList>
> >            <!--1 or more repetitions:-->
> >            <item>
> >              <isRequired>true</isRequired>
> >              <optionalItem>100</optionalItem>
> >              <mandatoryItem>100</mandatoryItem>
> >            </item>
> >          </itemList>
> >        </form>
> >      </xforms:instance>
> >      <xforms:instance id="triggers">
> >        <triggers xmlns="">
> >          <remove-item/>
> >        </triggers>
> >      </xforms:instance>
> >      <xforms:bind nodeset="instance('triggers')/remove-item"
> >relevant="count(instance('main-instance')/itemList/item) > 1"/>
> >      <xforms:submission id="main" method="post"
> >action="/vlcapp/detail"/>
> >      <xforms:submission id="save" method="post" replace="none"
> >action="/vlcapp/save"/>
> >    </xforms:model>
> >  </head>
> >  <body>
> >    <xforms:group ref="instance('main-instance')/itemList">
> >      <xforms:repeat id="itemList-repeat"
> >nodeset="item[position() lt last()]">
> >        <xhtml:p>
> >          <xforms:select1 ref="isRequired" appearance="full">
> >            <xforms:label class="fixed-width">Is
> >required:</xforms:label>
> >            <xforms:hint>If set to yes then the optionalItem
> >control should appear!!!</xforms:hint>
> >            <xforms:item>
> >              <xforms:label>Yes</xforms:label>
> >              <xforms:value>true</xforms:value>
> >            </xforms:item>
> >            <xforms:item>
> >              <xforms:label>No</xforms:label>
> >              <xforms:value>false</xforms:value>
> >            </xforms:item>
> >          </xforms:select1>
> >        </xhtml:p>
> >        <xhtml:p>
> >          <xforms:input ref="optionalItem" incremental="true">
> >            <xforms:label class="fixed-width">Optional
> >value:</xforms:label>
> >            <xforms:hint>This control should only be visible
> >when the previous select is set to yes</xforms:hint>
> >          </xforms:input>
> >        </xhtml:p>
> >        <xhtml:p>
> >          <xforms:input ref="mandatoryItem" incremental="true">
> >            <xforms:label class="fixed-width">Mandatory
> >item:</xforms:label>
> >            <xforms:hint>More form controls would appear but
> >not required here....</xforms:hint>
> >          </xforms:input>
> >        </xhtml:p>
> >        <br/>
> >      </xforms:repeat>
> >      <table>
> >        <tr>
> >          <td align="left" valign="bottom">
> >            <xforms:trigger ref="instance('triggers')/remove-item">
> >              <xforms:label>Remove item</xforms:label>
> >              <xforms:delete ev:event="DOMActivate"
> >nodeset="instance('main-instance')/itemList/item"
> >at="index('itemList-repeat')"/>
> >            </xforms:trigger>
> >            <xforms:trigger>
> >              <xforms:label>Add item</xforms:label>
> >              <xforms:insert ev:event="DOMActivate" nodeset="item"
> >at="index('itemList-repeat')" position="after"/>
> >            </xforms:trigger>
> >          </td>
> >        </tr>
> >      </table>
> >    </xforms:group>
> >  </body>
> ></html>
> >
> >
> >>From: "Alessandro Vernet" <[hidden email]>
> >>Reply-To: [hidden email]
> >>To: [hidden email]
> >>Subject: Re: [ops-users] Repeat with optional forms control
> >>Date: Fri, 10 Nov 2006 14:31:11 -0800
> >>
> >>Marco,
> >>
> >>Like Ryan said, it would be useful to see some of your code; if
> >>possible a stand-alone file that run in the XForms sandbox.
> >If you have
> >>nodes in the instance that are non-relevant, but you still would like
> >>to have them submitted, add an attribute relevant="false" to the
> >><xforms:submission>, as in:
> >>
> >><xforms:submission method="post" action="..."
> >>    ref="instance('instance')" id="do-it" relevant="false"
> >>replace="instance"/>
> >>
> >>This is something new in XForms 1.1:
> >>http://www.w3.org/TR/xforms11/#attrib-submit-relevant
> >>
> >>Alex
> >>
> >>On 11/10/06, Marco Lebel <[hidden email]> wrote:
> >>>Hello,
> >>>
> >>>Here is the usual stuff : I am new at this, not sure, ...
> >>>
> >>>I am writting my first Xforms application and I am trying to do the
> >>>following:
> >>>
> >>>1) A repeat of a nodeset (homogeneous)
> >>>2) Within the repeat I have two select1 control amongst
> >other controls
> >>>3) For each of these control, if selected, I want to have an input
> >>>field enable and visible and disable and hidden otherwise
> >>>4) No matter the approach the element representing the optional data
> >>>must get submited
> >>>
> >>>
> >>>I went through a lot of the archive and the examples but I have not
> >>>found a solution. I also tried a series of variation with the bind
> >>>element without success.
> >>>
> >>>Help will greatly be appreciated, and even more if some
> >education was
> >>>thrown in ;-) I obviously do not get it
> >>>
> >>>Thanks in advance.
> >>>
> >>>Marco
> >>>
> >>>_________________________________________________________________
> >>>Ready for the world's first international mobile film festival
> >>>celebrating the creative potential of today's youth? Check
> >out Mobile
> >>>Jam Fest for your a chance to WIN $10,000! www.mobilejamfest.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
> >>>ObjectWeb mailing lists service home page:
> >>>http://www.objectweb.org/wws
> >>>
> >>>
> >>>
> >>
> >>
> >>--
> >>Blog (XML, Web apps, Open Source):
> >>http://www.orbeon.com/blog/
> >>
> >
> >
> >>
> >>--
> >>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
> >
> >_________________________________________________________________
> >Ready for the world's first international mobile film festival
> >celebrating the creative potential of today's youth? Check out
> >Mobile Jam Fest for your a chance to WIN $10,000! www.mobilejamfest.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
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

_________________________________________________________________
Say hello to the next generation of Search. Live Search – try it now.
http://www.live.com/?mkt=en-ca




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