Repeat and bind problem

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

Repeat and bind problem

Andre Neto
Hello,

First of all congratulations for this wonderful product.
I have a question regarding a bind to a repeated section. I don't know
if this is a bug or something I'm doing wrong:
I have an input (xforms:input) inside a table:
...
<xforms:repeat nodeset="con:telephone" id="phone-repeat">
  <tr>
    <td align="right">telephone:</td>          
     <td>
       <xforms:input ref="." incremental="true">
         <xforms:alert>Invalid telephone number</xforms:alert>
       </xforms:input>
    </td>
  </tr>
</xforms:repeat>
...
If I don't try to validate the telephone number everything works without
any problem. As soon as I put a bind:
...
<xforms:bind nodeset="instance('instance')/con:contacts/con:contact">
  <xforms:bind nodeset="con:telephone" constraint="string-length(.) >
10" type="xs:positiveInteger" required="true()"/>
</xforms:bind>
...
although it appears to work fine, when a valid input is entered by the
user the textfield disappears from the screen.
Did you find this problem before?
Thank you very much for you time and help.
Regards,

--
André C. Neto
Centro de Fusão Nuclear / IST
Av. Rovisco Pais, 1049-001 Lisboa
Portugal
Phone: +351 21 8419096 / 3096
Fax: +351 21 8417819
e-mail: [hidden email]




--
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 and bind problem

aneto
Hello again,

I'm afraid that in the last email I did not manage to explain the problem in a
clear way. If you go to this site: http://baco.cfn.ist.utl.pt:8080/ops/contacts
and enter a telephone number like: 003512100000000, you'll see that the text
field will disappear.
I'm trying to prove here that xforms is the way to go. I also think Orbeon is
definitely the best tool available. I've already searched a lot in your mailing
lists and tried some solutions but just can't see a solution to the problem.

Thank you very much for your time,
André

PS - in the solution I'm working at home, I'm validating through the schema but
the problem remains.

Quoting Andre Neto <[hidden email]>:

> Hello,
>
> First of all congratulations for this wonderful product.
> I have a question regarding a bind to a repeated section. I don't know
> if this is a bug or something I'm doing wrong:
> I have an input (xforms:input) inside a table:
> ...
> <xforms:repeat nodeset="con:telephone" id="phone-repeat">
>   <tr>
>     <td align="right">telephone:</td>          
>      <td>
>        <xforms:input ref="." incremental="true">
>          <xforms:alert>Invalid telephone number</xforms:alert>
>        </xforms:input>
>     </td>
>   </tr>
> </xforms:repeat>
> ...
> If I don't try to validate the telephone number everything works without
> any problem. As soon as I put a bind:
> ...
> <xforms:bind nodeset="instance('instance')/con:contacts/con:contact">
>   <xforms:bind nodeset="con:telephone" constraint="string-length(.) >
> 10" type="xs:positiveInteger" required="true()"/>
> </xforms:bind>
> ...
> although it appears to work fine, when a valid input is entered by the
> user the textfield disappears from the screen.
> Did you find this problem before?
> Thank you very much for you time and help.
> Regards,
>
> --
> André C. Neto
> Centro de Fusão Nuclear / IST
> Av. Rovisco Pais, 1049-001 Lisboa
> Portugal
> Phone: +351 21 8419096 / 3096
> Fax: +351 21 8417819
> e-mail: [hidden email]
>
>
>



-------------------------------------------------
This mail sent through cfn webmail



--
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 and bind problem

Ryan Puddephatt
André,
        Any change you could share the test page with us? Along with a demo
instance data set? I think it would probably help to see the problem clearer

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
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: 30 April 2006 18:29
>To: [hidden email]
>Subject: Re: [ops-users] Repeat and bind problem
>
>Hello again,
>
>I'm afraid that in the last email I did not manage to explain the problem
>in a
>clear way. If you go to this site:
>http://baco.cfn.ist.utl.pt:8080/ops/contacts
>and enter a telephone number like: 003512100000000, you'll see that the
>text
>field will disappear.
>I'm trying to prove here that xforms is the way to go. I also think Orbeon
>is
>definitely the best tool available. I've already searched a lot in your
>mailing
>lists and tried some solutions but just can't see a solution to the
>problem.
>
>Thank you very much for your time,
>André
>
>PS - in the solution I'm working at home, I'm validating through the schema
>but
>the problem remains.
>
>Quoting Andre Neto <[hidden email]>:
>
>> Hello,
>>
>> First of all congratulations for this wonderful product.
>> I have a question regarding a bind to a repeated section. I don't know
>> if this is a bug or something I'm doing wrong:
>> I have an input (xforms:input) inside a table:
>> ...
>> <xforms:repeat nodeset="con:telephone" id="phone-repeat">
>>   <tr>
>>     <td align="right">telephone:</td>
>>      <td>
>>        <xforms:input ref="." incremental="true">
>>          <xforms:alert>Invalid telephone number</xforms:alert>
>>        </xforms:input>
>>     </td>
>>   </tr>
>> </xforms:repeat>
>> ...
>> If I don't try to validate the telephone number everything works without
>> any problem. As soon as I put a bind:
>> ...
>> <xforms:bind nodeset="instance('instance')/con:contacts/con:contact">
>>   <xforms:bind nodeset="con:telephone" constraint="string-length(.) >
>> 10" type="xs:positiveInteger" required="true()"/>
>> </xforms:bind>
>> ...
>> although it appears to work fine, when a valid input is entered by the
>> user the textfield disappears from the screen.
>> Did you find this problem before?
>> Thank you very much for you time and help.
>> Regards,
>>
>> --
>> André C. Neto
>> Centro de Fusão Nuclear / IST
>> Av. Rovisco Pais, 1049-001 Lisboa
>> Portugal
>> Phone: +351 21 8419096 / 3096
>> Fax: +351 21 8417819
>> e-mail: [hidden email]
>>
>>
>>
>
>
>
>
>-------------------------------------------------
>This mail sent through cfn webmail




--
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 and bind problem

aneto
Ryan,

Attached you can find the files of the test page.

Regards,
André

Quoting Ryan Puddephatt <[hidden email]>:

> André,
> Any change you could share the test page with us? Along with a demo
> instance data set? I think it would probably help to see the problem clearer
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 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: 30 April 2006 18:29
> >To: [hidden email]
> >Subject: Re: [ops-users] Repeat and bind problem
> >
> >Hello again,
> >
> >I'm afraid that in the last email I did not manage to explain the problem
> >in a
> >clear way. If you go to this site:
> >http://baco.cfn.ist.utl.pt:8080/ops/contacts
> >and enter a telephone number like: 003512100000000, you'll see that the
> >text
> >field will disappear.
> >I'm trying to prove here that xforms is the way to go. I also think Orbeon
> >is
> >definitely the best tool available. I've already searched a lot in your
> >mailing
> >lists and tried some solutions but just can't see a solution to the
> >problem.
> >
> >Thank you very much for your time,
> >André
> >
> >PS - in the solution I'm working at home, I'm validating through the schema
> >but
> >the problem remains.
> >
> >Quoting Andre Neto <[hidden email]>:
> >
> >> Hello,
> >>
> >> First of all congratulations for this wonderful product.
> >> I have a question regarding a bind to a repeated section. I don't know
> >> if this is a bug or something I'm doing wrong:
> >> I have an input (xforms:input) inside a table:
> >> ...
> >> <xforms:repeat nodeset="con:telephone" id="phone-repeat">
> >>   <tr>
> >>     <td align="right">telephone:</td>
> >>      <td>
> >>        <xforms:input ref="." incremental="true">
> >>          <xforms:alert>Invalid telephone number</xforms:alert>
> >>        </xforms:input>
> >>     </td>
> >>   </tr>
> >> </xforms:repeat>
> >> ...
> >> If I don't try to validate the telephone number everything works without
> >> any problem. As soon as I put a bind:
> >> ...
> >> <xforms:bind nodeset="instance('instance')/con:contacts/con:contact">
> >>   <xforms:bind nodeset="con:telephone" constraint="string-length(.) >
> >> 10" type="xs:positiveInteger" required="true()"/>
> >> </xforms:bind>
> >> ...
> >> although it appears to work fine, when a valid input is entered by the
> >> user the textfield disappears from the screen.
> >> Did you find this problem before?
> >> Thank you very much for you time and help.
> >> Regards,
> >>
> >> --
> >> André C. Neto
> >> Centro de Fusão Nuclear / IST
> >> Av. Rovisco Pais, 1049-001 Lisboa
> >> Portugal
> >> Phone: +351 21 8419096 / 3096
> >> Fax: +351 21 8417819
> >> e-mail: [hidden email]
> >>
> >>
> >>
> >
> >
> >
> >
> >-------------------------------------------------
> >This mail sent through cfn webmail
>
>
>
>



-------------------------------------------------
This mail sent through cfn webmail


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

page-flow.xml (228 bytes) Download Attachment
view.xhtml (13K) Download Attachment
instance.xml (480 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Repeat and bind problem

Andre Neto
In reply to this post by Ryan Puddephatt
Ryan,

Attached you can find the files of the test page.

Regards,
André

Ryan Puddephatt wrote:

>André,
> Any change you could share the test page with us? Along with a demo
>instance data set? I think it would probably help to see the problem clearer
>
>Ryan
>
>Ryan Puddephatt
>Software Engineer
>TFX Group - IT UK
>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: 30 April 2006 18:29
>>To: [hidden email]
>>Subject: Re: [ops-users] Repeat and bind problem
>>
>>Hello again,
>>
>>I'm afraid that in the last email I did not manage to explain the problem
>>in a
>>clear way. If you go to this site:
>>http://baco.cfn.ist.utl.pt:8080/ops/contacts
>>and enter a telephone number like: 003512100000000, you'll see that the
>>text
>>field will disappear.
>>I'm trying to prove here that xforms is the way to go. I also think Orbeon
>>is
>>definitely the best tool available. I've already searched a lot in your
>>mailing
>>lists and tried some solutions but just can't see a solution to the
>>problem.
>>
>>Thank you very much for your time,
>>André
>>
>>PS - in the solution I'm working at home, I'm validating through the schema
>>but
>>the problem remains.
>>
>>Quoting Andre Neto <[hidden email]>:
>>
>>    
>>
>>>Hello,
>>>
>>>First of all congratulations for this wonderful product.
>>>I have a question regarding a bind to a repeated section. I don't know
>>>if this is a bug or something I'm doing wrong:
>>>I have an input (xforms:input) inside a table:
>>>...
>>><xforms:repeat nodeset="con:telephone" id="phone-repeat">
>>>  <tr>
>>>    <td align="right">telephone:</td>
>>>     <td>
>>>       <xforms:input ref="." incremental="true">
>>>         <xforms:alert>Invalid telephone number</xforms:alert>
>>>       </xforms:input>
>>>    </td>
>>>  </tr>
>>></xforms:repeat>
>>>...
>>>If I don't try to validate the telephone number everything works without
>>>any problem. As soon as I put a bind:
>>>...
>>><xforms:bind nodeset="instance('instance')/con:contacts/con:contact">
>>>  <xforms:bind nodeset="con:telephone" constraint="string-length(.) >
>>>10" type="xs:positiveInteger" required="true()"/>
>>></xforms:bind>
>>>...
>>>although it appears to work fine, when a valid input is entered by the
>>>user the textfield disappears from the screen.
>>>Did you find this problem before?
>>>Thank you very much for you time and help.
>>>Regards,
>>>
>>>--
>>>André C. Neto
>>>Centro de Fusão Nuclear / IST
>>>Av. Rovisco Pais, 1049-001 Lisboa
>>>Portugal
>>>Phone: +351 21 8419096 / 3096
>>>Fax: +351 21 8417819
>>>e-mail: [hidden email]
>>>
>>>
>>>
>>>      
>>>
>>
>>
>>-------------------------------------------------
>>This mail sent through cfn webmail
>>    
>>
>
>
>
>  
>
>------------------------------------------------------------------------
>
>
>--
>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
>  
>

--
André C. Neto
Centro de Fusão Nuclear / IST
Av. Rovisco Pais, 1049-001 Lisboa
Portugal
Phone: +351 21 8419096 / 3096
Fax: +351 21 8417819
e-mail: [hidden email]


<instance>
        <con:contacts xmlns:con="http://www.test.org/schemas/Contacts">
                <contact>
                        <name/>
                        <surname/>
                        <email/>
                        <telephone/>
                        <fax/>
                        <address/>
                        <workplaceID/>
                </contact>
                <workplace uniqueID="test">
                        <name/>
                        <address/>
                        <email/>
                        <telephone/>
                        <fax/>
                        <webpage/>
                </workplace>
        </con:contacts>
</instance>

<config xmlns="http://www.orbeon.com/oxf/controller">  
        <page path-info="/contacts" view="view.xhtml"/>  
        <epilogue url="oxf:/config/epilogue.xpl"/>  
</config>


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

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

Re: Repeat and bind problem

Alessandro  Vernet
Administrator
Andre,

Nice catch. I managed to reproduce the bug and fixed it.

Alex

On 5/2/06, Andre Neto <[hidden email]> wrote:

> Ryan,
>
> Attached you can find the files of the test page.
>
> Regards,
> André
>
> Ryan Puddephatt wrote:
>
> >André,
> >       Any change you could share the test page with us? Along with a demo
> >instance data set? I think it would probably help to see the problem clearer
> >
> >Ryan
> >
> >Ryan Puddephatt
> >Software Engineer
> >TFX Group - IT UK
> >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: 30 April 2006 18:29
> >>To: [hidden email]
> >>Subject: Re: [ops-users] Repeat and bind problem
> >>
> >>Hello again,
> >>
> >>I'm afraid that in the last email I did not manage to explain the problem
> >>in a
> >>clear way. If you go to this site:
> >>http://baco.cfn.ist.utl.pt:8080/ops/contacts
> >>and enter a telephone number like: 003512100000000, you'll see that the
> >>text
> >>field will disappear.
> >>I'm trying to prove here that xforms is the way to go. I also think Orbeon
> >>is
> >>definitely the best tool available. I've already searched a lot in your
> >>mailing
> >>lists and tried some solutions but just can't see a solution to the
> >>problem.
> >>
> >>Thank you very much for your time,
> >>André
> >>
> >>PS - in the solution I'm working at home, I'm validating through the schema
> >>but
> >>the problem remains.
> >>
> >>Quoting Andre Neto <[hidden email]>:
> >>
> >>
> >>
> >>>Hello,
> >>>
> >>>First of all congratulations for this wonderful product.
> >>>I have a question regarding a bind to a repeated section. I don't know
> >>>if this is a bug or something I'm doing wrong:
> >>>I have an input (xforms:input) inside a table:
> >>>...
> >>><xforms:repeat nodeset="con:telephone" id="phone-repeat">
> >>>  <tr>
> >>>    <td align="right">telephone:</td>
> >>>     <td>
> >>>       <xforms:input ref="." incremental="true">
> >>>         <xforms:alert>Invalid telephone number</xforms:alert>
> >>>       </xforms:input>
> >>>    </td>
> >>>  </tr>
> >>></xforms:repeat>
> >>>...
> >>>If I don't try to validate the telephone number everything works without
> >>>any problem. As soon as I put a bind:
> >>>...
> >>><xforms:bind nodeset="instance('instance')/con:contacts/con:contact">
> >>>  <xforms:bind nodeset="con:telephone" constraint="string-length(.) >
> >>>10" type="xs:positiveInteger" required="true()"/>
> >>></xforms:bind>
> >>>...
> >>>although it appears to work fine, when a valid input is entered by the
> >>>user the textfield disappears from the screen.
> >>>Did you find this problem before?
> >>>Thank you very much for you time and help.
> >>>Regards,
> >>>
> >>>--
> >>>André C. Neto
> >>>Centro de Fusão Nuclear / IST
> >>>Av. Rovisco Pais, 1049-001 Lisboa
> >>>Portugal
> >>>Phone: +351 21 8419096 / 3096
> >>>Fax: +351 21 8417819
> >>>e-mail: [hidden email]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>-------------------------------------------------
> >>This mail sent through cfn webmail
> >>
> >>
> >
> >
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >
> >--
> >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
> >
> >
>
>
> --
> André C. Neto
> Centro de Fusão Nuclear / IST
> Av. Rovisco Pais, 1049-001 Lisboa
> Portugal
> Phone: +351 21 8419096 / 3096
> Fax: +351 21 8417819
> e-mail: [hidden email]
>
>
>
>
> --
> 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