problem with nested repeats

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

problem with nested repeats

Pepijn Noltes-2
Hi All,

Although I am impressed by the overall stability of Orbeon (my compliments), I think I have found a bug when using nested repeats. Attached is an example showing this bug and can be run in the XForms sandbox.

The problem occurs when inserting a Section element. An occurrence of the nested repeat is shown, which it is clearly not suppose to. Also note that the button which should be named "delete" has a value "$xforms-label-value$".

I have tested this example on the Orbeon 3.5M, although I'm quite sure it also occurs in 3.0.

BTW 1: this example runs correctly in Firefox using the XForms plugin (0.7)
BTW 2: when using the XForms 1.1 insert with origin the same problem occurs.

Greetings,
 Pepijn Noltes





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

nested-repeat.xhtml (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: problem with nested repeats

Ryan Puddephatt
Pepijn,
    The problem is happening because of the [position() < last()] predicate on both repeats. This is clearly a bug, but at least you have a work around, create a template instance and use origin on the xforms:insert then you won't need that predicate any way :-)
 
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
w> www.teleflex.com

 


From: Pepijn Noltes [mailto:[hidden email]]
Sent: 08 December 2006 07:19
To: [hidden email]
Subject: [ops-users] problem with nested repeats

Hi All,

Although I am impressed by the overall stability of Orbeon (my compliments), I think I have found a bug when using nested repeats. Attached is an example showing this bug and can be run in the XForms sandbox.

The problem occurs when inserting a Section element. An occurrence of the nested repeat is shown, which it is clearly not suppose to. Also note that the button which should be named "delete" has a value "$xforms-label-value$".

I have tested this example on the Orbeon 3.5M, although I'm quite sure it also occurs in 3.0.

BTW 1: this example runs correctly in Firefox using the XForms plugin (0.7)
BTW 2: when using the XForms 1.1 insert with origin the same problem occurs.

Greetings,
 Pepijn Noltes





--
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: problem with nested repeats

Pepijn Noltes-2
Ryan, thanks for the reaction.

I don't think the problem is related with the [position() < last()] predicate.
The attached example shows that the problem still occurs when using xforms insert with a origin parameter.

Greetings,
 Pepijn Noltes

On 12/8/06, Ryan Puddephatt <[hidden email]> wrote:
Pepijn,
    The problem is happening because of the [position() &lt; last()] predicate on both repeats. This is clearly a bug, but at least you have a work around, create a template instance and use origin on the xforms:insert then you won't need that predicate any way :-)
 
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
w> <a href="http://www.teleflex.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.teleflex.com

 


From: Pepijn Noltes [mailto:[hidden email]]
Sent: 08 December 2006 07:19
To: [hidden email]
Subject: [ops-users] problem with nested repeats

Hi All,

Although I am impressed by the overall stability of Orbeon (my compliments), I think I have found a bug when using nested repeats. Attached is an example showing this bug and can be run in the XForms sandbox.

The problem occurs when inserting a Section element. An occurrence of the nested repeat is shown, which it is clearly not suppose to. Also note that the button which should be named "delete" has a value "$xforms-label-value$".

I have tested this example on the Orbeon 3.5M, although I'm quite sure it also occurs in 3.0.

BTW 1: this example runs correctly in Firefox using the XForms plugin (0.7)
BTW 2: when using the XForms 1.1 insert with origin the same problem occurs.

Greetings,
 Pepijn Noltes







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

nested-repeat-context.xhtml (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: problem with nested repeats

Ryan Puddephatt
Pepijn,
    You've hit another bug, not sure why this one is, but its seems to be because the <Section> doesn't have any <Paragraph/> child elements.
 
Changing the template from
 
<Section/>
<Paragraph/>
 
to
 
<Section>
  <Paragraph/>
</Section>
 
works fine
 
Erik/Alex any ideas on these two?
 
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
w> www.teleflex.com

 


From: Pepijn Noltes [mailto:[hidden email]]
Sent: 08 December 2006 14:25
To: [hidden email]
Subject: Re: [ops-users] problem with nested repeats

Ryan, thanks for the reaction.

I don't think the problem is related with the [position() &lt; last()] predicate.
The attached example shows that the problem still occurs when using xforms insert with a origin parameter.

Greetings,
 Pepijn Noltes

On 12/8/06, Ryan Puddephatt <[hidden email]> wrote:
Pepijn,
    The problem is happening because of the [position() &lt; last()] predicate on both repeats. This is clearly a bug, but at least you have a work around, create a template instance and use origin on the xforms:insert then you won't need that predicate any way :-)
 
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
w> <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.teleflex.com/" target=_blank>www.teleflex.com

 


From: Pepijn Noltes [mailto:[hidden email]]
Sent: 08 December 2006 07:19
To: [hidden email]
Subject: [ops-users] problem with nested repeats

Hi All,

Although I am impressed by the overall stability of Orbeon (my compliments), I think I have found a bug when using nested repeats. Attached is an example showing this bug and can be run in the XForms sandbox.

The problem occurs when inserting a Section element. An occurrence of the nested repeat is shown, which it is clearly not suppose to. Also note that the button which should be named "delete" has a value "$xforms-label-value$".

I have tested this example on the Orbeon 3.5M, although I'm quite sure it also occurs in 3.0.

BTW 1: this example runs correctly in Firefox using the XForms plugin (0.7)
BTW 2: when using the XForms 1.1 insert with origin the same problem occurs.

Greetings,
 Pepijn Noltes







--
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: problem with nested repeats

Erik Bruchez
Administrator
In reply to this post by Pepijn Noltes-2
Pepijn,

This may be due to this bug:

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

I added your test case to that bug.

-Erik

Pepijn Noltes wrote:

> Hi All,
>
> Although I am impressed by the overall stability of Orbeon (my
> compliments), I think I have found a bug when using nested repeats.
> Attached is an example showing this bug and can be run in the XForms
> sandbox.
>
> The problem occurs when inserting a Section element. An occurrence of
> the nested repeat is shown, which it is clearly not suppose to. Also
> note that the button which should be named "delete" has a value
> "$xforms-label-value$".
>
> I have tested this example on the Orbeon 3.5M, although I'm quite sure
> it also occurs in 3.0.
>
> BTW 1: this example runs correctly in Firefox using the XForms plugin (0.7)
> BTW 2: when using the XForms 1.1 insert with origin the same problem
> occurs.
>
> Greetings,
>  Pepijn Noltes
--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: problem with nested repeats

Erik Bruchez
Administrator
Pipijn,

This bug is now fixed.

-Erik

Erik Bruchez wrote:

> Pepijn,
>
> This may be due to this bug:
>
> http://forge.objectweb.org/tracker/index.php?func=detail&aid=306456&group_id=168&atid=350207 
>
>
> I added your test case to that bug.
>
> -Erik
>
> Pepijn Noltes wrote:
>> Hi All,
>>
>> Although I am impressed by the overall stability of Orbeon (my
>> compliments), I think I have found a bug when using nested repeats.
>> Attached is an example showing this bug and can be run in the XForms
>> sandbox.
>>
>> The problem occurs when inserting a Section element. An occurrence of
>> the nested repeat is shown, which it is clearly not suppose to. Also
>> note that the button which should be named "delete" has a value
>> "$xforms-label-value$".
>>
>> I have tested this example on the Orbeon 3.5M, although I'm quite sure
>> it also occurs in 3.0.
>>
>> BTW 1: this example runs correctly in Firefox using the XForms plugin
>> (0.7)
>> BTW 2: when using the XForms 1.1 insert with origin the same problem
>> occurs.
>>
>> Greetings,
>>  Pepijn Noltes
--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws