Xforms:repeat showing one repeat when no repeat exists

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

Xforms:repeat showing one repeat when no repeat exists

Ryan Puddephatt
I have a instance structure of
 
<group>
    <group>
        <group>
            <item/>
            <item/>
        </group>
        <group>
            <item/>
            <item/>
        </group>
    </group>
</group>
 
I can have up to 7 recurssions of the <group> element, when displaying this I have an xforms:repeat (also recursed) to display them, but when there isn't a child <group> node then it should display nothing, but it does display an empty <xhtml:fieldset> (which I have in my xforms:repeat). I have tried using an xforms:group before each xforms:repeat, but because of a bug where xforms:group's aren't copied in xforms:repeat's added via an ajax submission this isn't being applied.
 
Has anyone else had this problem?
 
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

 


--
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:repeat showing one repeat when no repeat exists

Erik Bruchez
Administrator
Ryan,

This may be a bug. Can you build a reproducible case? Maybe with less
than 7 level? ;-)

-Erik

Ryan Puddephatt wrote:

> I have a instance structure of
>  
> <group>
>     <group>
>         <group>
>             <item/>
>             <item/>
>         </group>
>         <group>
>             <item/>
>             <item/>
>         </group>
>     </group>
> </group>
>  
> I can have up to 7 recurssions of the <group> element, when displaying
> this I have an xforms:repeat (also recursed) to display them, but when
> there isn't a child <group> node then it should display nothing, but it
> does display an empty <xhtml:fieldset> (which I have in my
> xforms:repeat). I have tried using an xforms:group before each
> xforms:repeat, but because of a bug where xforms:group's aren't copied
> in xforms:repeat's added via an ajax submission this isn't being applied.
>  
> Has anyone else had this problem?
>  
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>  
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>  
> e> [hidden email] <mailto:[hidden email]>
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
> w> www.teleflex.com <http://www.teleflex.com/>
>
>  

--
Orbeon - XForms Everywhere:
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
Reply | Threaded
Open this post in threaded view
|

RE: Xforms:repeat showing one repeat when no repeat exists

Ryan Puddephatt
Erik,
        The test case is attached, the problem only occurs when the data is
received by an AJAX submission so you'll need to link up the xpl (also
attached)

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: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>Erik Bruchez
>Sent: 19 September 2006 20:50
>To: [hidden email]
>Subject: Re: [ops-users] Xforms:repeat showing one repeat when
>no repeat exists
>
>Ryan,
>
>This may be a bug. Can you build a reproducible case? Maybe
>with less than 7 level? ;-)
>
>-Erik
>
>Ryan Puddephatt wrote:
>> I have a instance structure of
>>  
>> <group>
>>     <group>
>>         <group>
>>             <item/>
>>             <item/>
>>         </group>
>>         <group>
>>             <item/>
>>             <item/>
>>         </group>
>>     </group>
>> </group>
>>  
>> I can have up to 7 recurssions of the <group> element, when
>displaying
>> this I have an xforms:repeat (also recursed) to display
>them, but when
>> there isn't a child <group> node then it should display nothing, but
>> it does display an empty <xhtml:fieldset> (which I have in my
>> xforms:repeat). I have tried using an xforms:group before each
>> xforms:repeat, but because of a bug where xforms:group's
>aren't copied
>> in xforms:repeat's added via an ajax submission this isn't
>being applied.
>>  
>> Has anyone else had this problem?
>>  
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>>  
>>
>> Teleflex Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotland
>> EH54 7DP
>>  
>> e> [hidden email] <mailto:[hidden email]>
>> t> +44(0)1506 407 110
>> f> +44(0)1506 407 108
>> w> www.teleflex.com <http://www.teleflex.com/>
>>
>>  
>
>
>--
>Orbeon - XForms Everywhere:
>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

test.xhtml (2K) Download Attachment
test-sub.xpl (1K) Download Attachment