repeatChildren and newNodeset have different sizes.

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

repeatChildren and newNodeset have different sizes.

Bart Ottenkamp
hai anybody,

I'm trying to use the xforms:repeat tag in the following code:

    <xhtml:div id="contentpane">
        <!-- tabs -->
        <table border="1" bordercolor="red">
            <xhtml:tr>
                <xforms:repeat
                    nodeset="instance('form-instance')//widget[@widgetType='tab']"
                    id="tab-repeat">
                    <td>
                        <xforms:output value="@description" />
                    </td>
                </xforms:repeat>
            </xhtml:tr>
        </table>
        <!-- tab-content -->
        <table>
            <xforms:repeat nodeset="instance('form-instance')//widget[@widgetType='tab'][index('tab-repeat')]/widget" id="widget-repeat">
                <tr>
                    <td>
                        <xforms:output value="@description" />
                    </td>
                </tr>
            </xforms:repeat>
        </table>
    </xhtml:div>

As can be seen, I'm trying to 'simulate' tab functionality, for which I use a table in which I print all description attributes of all Widgets with a type of 'tab'.
Under that table, I'm trying to print descriptions for all the widgets on the selected tab..
Reasoning is, that when selecting one of the tab-widgets, the 'tab-index' is updated... and the nodeset in the second table is dependend on this tab-index, so, this should work.
And it works! But, It only works IF the amount of widgets found in the second table is equal in all tabs..., otherwise I get the error: 'repeatChildren and newNodeset have different sizes.'

So, this makes it inpossible for me to deliver (for the form-instance) a completely dynamic tree of widgets like this...

<widget widgetType="form" description="form1">
    <widget widgetType="tab" description="tab1">
       <widget widgetType="comment" description="comment1" />
       <widget widgetType="comment" description="comment2" />         
    </widget>
    <widget widgetType="tab" description="tab21">
       <widget widgetType="comment" description="comment1" />
       <widget widgetType="comment" description="comment2" />      
        <widget widgetType="comment" description="comment3" />      
    </widget>
    <widget widgetType="tab" description="tab1">
       <widget widgetType="comment" description="comment1" />
       <widget widgetType="comment" description="comment2" />         
    </widget>
</widget>

With above widget-tree, it would be possible to 'tab' between tabs 1 and 3, but tabbing to tab2 results in the error...

Does anybody have an idea?
Best regards,
Bart


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

Re: repeatChildren and newNodeset have different sizes.

Erik Bruchez
Administrator
Bart,

First, is this with 3.5.x or 3.6? If with 3.5.x, can you please  
upgrade to 3.6 and report if the problem is still present?

-Erik

On Dec 17, 2007, at 6:31 AM, Bart Ottenkamp wrote:

> hai anybody,
>
> I'm trying to use the xforms:repeat tag in the following code:
>
>     <xhtml:div id="contentpane">
>         <!-- tabs -->
>         <table border="1" bordercolor="red">
>             <xhtml:tr>
>                 <xforms:repeat
>                     nodeset="instance('form-instance')//
> widget[@widgetType='tab']"
>                     id="tab-repeat">
>                     <td>
>                         <xforms:output value="@description" />
>                     </td>
>                 </xforms:repeat>
>             </xhtml:tr>
>         </table>
>         <!-- tab-content -->
>         <table>
>             <xforms:repeat nodeset="instance('form-instance')//
> widget[@widgetType='tab'][index('tab-repeat')]/widget" id="widget-
> repeat">
>                 <tr>
>                     <td>
>                         <xforms:output value="@description" />
>                     </td>
>                 </tr>
>             </xforms:repeat>
>         </table>
>     </xhtml:div>
>
> As can be seen, I'm trying to 'simulate' tab functionality, for  
> which I use a table in which I print all description attributes of  
> all Widgets with a type of 'tab'.
> Under that table, I'm trying to print descriptions for all the  
> widgets on the selected tab..
> Reasoning is, that when selecting one of the tab-widgets, the 'tab-
> index' is updated... and the nodeset in the second table is  
> dependend on this tab-index, so, this should work.
> And it works! But, It only works IF the amount of widgets found in  
> the second table is equal in all tabs..., otherwise I get the error:  
> 'repeatChildren and newNodeset have different sizes.'
>
> So, this makes it inpossible for me to deliver (for the form-
> instance) a completely dynamic tree of widgets like this...
>
> <widget widgetType="form" description="form1">
>     <widget widgetType="tab" description="tab1">
>        <widget widgetType="comment" description="comment1" />
>        <widget widgetType="comment" description="comment2" />
>     </widget>
>     <widget widgetType="tab" description="tab21">
>        <widget widgetType="comment" description="comment1" />
>        <widget widgetType="comment" description="comment2" />
>         <widget widgetType="comment" description="comment3" />
>     </widget>
>     <widget widgetType="tab" description="tab1">
>        <widget widgetType="comment" description="comment1" />
>        <widget widgetType="comment" description="comment2" />
>     </widget>
> </widget>
>
> With above widget-tree, it would be possible to 'tab' between tabs 1  
> and 3, but tabbing to tab2 results in the error...
>
> Does anybody have an idea?
> Best regards,
> Bart
--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeatChildren and newNodeset have different sizes.

Bart Ottenkamp
Hai Erik,

thanks for the reaction.
I tried it on 3.5.1 and 3.6 as well. 3.6 not deployed as a separate war though. Do you think this would help?
My guess is, it won't..
Best regards,
Bart

Erik Bruchez wrote
Bart,

First, is this with 3.5.x or 3.6? If with 3.5.x, can you please  
upgrade to 3.6 and report if the problem is still present?

-Erik

On Dec 17, 2007, at 6:31 AM, Bart Ottenkamp wrote:

> hai anybody,
>
> I'm trying to use the xforms:repeat tag in the following code:
>
>     <xhtml:div id="contentpane">
>        
>         >             <xhtml:tr>
>                 <xforms:repeat
>                     nodeset="instance('form-instance')//
> widget[@widgetType='tab']"
>                     id="tab-repeat">
>                     >                 </xforms:repeat>
>             </xhtml:tr>
>        
>                         <xforms:output value="@description" />
>                    
>        
>         >             <xforms:repeat nodeset="instance('form-instance')//
> widget[@widgetType='tab'][index('tab-repeat')]/widget" id="widget-
> repeat">
>                 >                     >                 >             </xforms:repeat>
>        
>                         <xforms:output value="@description" />
>                    
>     </xhtml:div>
>
> As can be seen, I'm trying to 'simulate' tab functionality, for  
> which I use a table in which I print all description attributes of  
> all Widgets with a type of 'tab'.
> Under that table, I'm trying to print descriptions for all the  
> widgets on the selected tab..
> Reasoning is, that when selecting one of the tab-widgets, the 'tab-
> index' is updated... and the nodeset in the second table is  
> dependend on this tab-index, so, this should work.
> And it works! But, It only works IF the amount of widgets found in  
> the second table is equal in all tabs..., otherwise I get the error:  
> 'repeatChildren and newNodeset have different sizes.'
>
> So, this makes it inpossible for me to deliver (for the form-
> instance) a completely dynamic tree of widgets like this...
>
> <widget widgetType="form" description="form1">
>     <widget widgetType="tab" description="tab1">
>        <widget widgetType="comment" description="comment1" />
>        <widget widgetType="comment" description="comment2" />
>     </widget>
>     <widget widgetType="tab" description="tab21">
>        <widget widgetType="comment" description="comment1" />
>        <widget widgetType="comment" description="comment2" />
>         <widget widgetType="comment" description="comment3" />
>     </widget>
>     <widget widgetType="tab" description="tab1">
>        <widget widgetType="comment" description="comment1" />
>        <widget widgetType="comment" description="comment2" />
>     </widget>
> </widget>
>
> With above widget-tree, it would be possible to 'tab' between tabs 1  
> and 3, but tabbing to tab2 results in the error...
>
> Does anybody have an idea?
> Best regards,
> Bart

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeatChildren and newNodeset have different sizes.

Erik Bruchez
Administrator
Bart,

No, the type of deployment shouldn't make a difference. I just wanted  
to make sure you were using a recent version.

What we need is a way of reproducing the issue. Can you package either  
a single file which can run in the sandbox, or a zipped app which can  
be unzipped under RESOURCES/apps/[yourapp]?

-Erik

On Dec 18, 2007, at 11:32 AM, bartottenkamp wrote:

>
> Hai Erik,
>
> thanks for the reaction.
> I tried it on 3.5.1 and 3.6 as well. 3.6 not deployed as a separate  
> war
> though. Do you think this would help?
> My guess is, it won't..
> Best regards,
> Bart
>
>
> Erik Bruchez wrote:
>>
>> Bart,
>>
>> First, is this with 3.5.x or 3.6? If with 3.5.x, can you please
>> upgrade to 3.6 and report if the problem is still present?
>>
>> -Erik
>>
>> On Dec 17, 2007, at 6:31 AM, Bart Ottenkamp wrote:
>>
>>> hai anybody,
>>>
>>> I'm trying to use the xforms:repeat tag in the following code:
>>>
>>>    <xhtml:div id="contentpane">
>>>        <!-- tabs -->
>>>        <table border="1" bordercolor="red">
>>>            <xhtml:tr>
>>>                <xforms:repeat
>>>                    nodeset="instance('form-instance')//
>>> widget[@widgetType='tab']"
>>>                    id="tab-repeat">
>>>                    <td>
>>>                        <xforms:output value="@description" />
>>>                    </td>
>>>                </xforms:repeat>
>>>            </xhtml:tr>
>>>        </table>
>>>        <!-- tab-content -->
>>>        <table>
>>>            <xforms:repeat nodeset="instance('form-instance')//
>>> widget[@widgetType='tab'][index('tab-repeat')]/widget" id="widget-
>>> repeat">
>>>                <tr>
>>>                    <td>
>>>                        <xforms:output value="@description" />
>>>                    </td>
>>>                </tr>
>>>            </xforms:repeat>
>>>        </table>
>>>    </xhtml:div>
>>>
>>> As can be seen, I'm trying to 'simulate' tab functionality, for
>>> which I use a table in which I print all description attributes of
>>> all Widgets with a type of 'tab'.
>>> Under that table, I'm trying to print descriptions for all the
>>> widgets on the selected tab..
>>> Reasoning is, that when selecting one of the tab-widgets, the 'tab-
>>> index' is updated... and the nodeset in the second table is
>>> dependend on this tab-index, so, this should work.
>>> And it works! But, It only works IF the amount of widgets found in
>>> the second table is equal in all tabs..., otherwise I get the error:
>>> 'repeatChildren and newNodeset have different sizes.'
>>>
>>> So, this makes it inpossible for me to deliver (for the form-
>>> instance) a completely dynamic tree of widgets like this...
>>>
>>> <widget widgetType="form" description="form1">
>>>    <widget widgetType="tab" description="tab1">
>>>       <widget widgetType="comment" description="comment1" />
>>>       <widget widgetType="comment" description="comment2" />
>>>    </widget>
>>>    <widget widgetType="tab" description="tab21">
>>>       <widget widgetType="comment" description="comment1" />
>>>       <widget widgetType="comment" description="comment2" />
>>>        <widget widgetType="comment" description="comment3" />
>>>    </widget>
>>>    <widget widgetType="tab" description="tab1">
>>>       <widget widgetType="comment" description="comment1" />
>>>       <widget widgetType="comment" description="comment2" />
>>>    </widget>
>>> </widget>
>>>
>>> With above widget-tree, it would be possible to 'tab' between tabs 1
>>> and 3, but tabbing to tab2 results in the error...
>>>
>>> Does anybody have an idea?
>>> Best regards,
>>> Bart
>>
>> --
>> 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
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://www.nabble.com/repeatChildren-and-newNodeset-have-different-sizes.-tp14377493p14404079.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.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
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeatChildren and newNodeset have different sizes.

Bart Ottenkamp
Hai Erik,

here's the file.

toolkitFormRepeats2.xhtml

It should just me runnable in any application, if you give it a path in the page-flow of course.
With this example, tabbing between tab 1 and tab 4 is possible, because they have the same amount of children, but tabbing to the other tabs will fail...
Good luck with it..

Bart

Erik Bruchez wrote
Bart,

No, the type of deployment shouldn't make a difference. I just wanted  
to make sure you were using a recent version.

What we need is a way of reproducing the issue. Can you package either  
a single file which can run in the sandbox, or a zipped app which can  
be unzipped under RESOURCES/apps/[yourapp]?

-Erik

On Dec 18, 2007, at 11:32 AM, bartottenkamp wrote:

>
> Hai Erik,
>
> thanks for the reaction.
> I tried it on 3.5.1 and 3.6 as well. 3.6 not deployed as a separate  
> war
> though. Do you think this would help?
> My guess is, it won't..
> Best regards,
> Bart
>
>
> Erik Bruchez wrote:
>>
>> Bart,
>>
>> First, is this with 3.5.x or 3.6? If with 3.5.x, can you please
>> upgrade to 3.6 and report if the problem is still present?
>>
>> -Erik
>>
>> On Dec 17, 2007, at 6:31 AM, Bart Ottenkamp wrote:
>>
>>> hai anybody,
>>>
>>> I'm trying to use the xforms:repeat tag in the following code:
>>>
>>>    <xhtml:div id="contentpane">
>>>        
>>>        >>>            <xhtml:tr>
>>>                <xforms:repeat
>>>                    nodeset="instance('form-instance')//
>>> widget[@widgetType='tab']"
>>>                    id="tab-repeat">
>>>                    >>>                </xforms:repeat>
>>>            </xhtml:tr>
>>>        
>>>                        <xforms:output value="@description" />
>>>                    
>>>        
>>>        >>>            <xforms:repeat nodeset="instance('form-instance')//
>>> widget[@widgetType='tab'][index('tab-repeat')]/widget" id="widget-
>>> repeat">
>>>                >>>                    >>>                >>>            </xforms:repeat>
>>>        
>>>                        <xforms:output value="@description" />
>>>                    
>>>    </xhtml:div>
>>>
>>> As can be seen, I'm trying to 'simulate' tab functionality, for
>>> which I use a table in which I print all description attributes of
>>> all Widgets with a type of 'tab'.
>>> Under that table, I'm trying to print descriptions for all the
>>> widgets on the selected tab..
>>> Reasoning is, that when selecting one of the tab-widgets, the 'tab-
>>> index' is updated... and the nodeset in the second table is
>>> dependend on this tab-index, so, this should work.
>>> And it works! But, It only works IF the amount of widgets found in
>>> the second table is equal in all tabs..., otherwise I get the error:
>>> 'repeatChildren and newNodeset have different sizes.'
>>>
>>> So, this makes it inpossible for me to deliver (for the form-
>>> instance) a completely dynamic tree of widgets like this...
>>>
>>> <widget widgetType="form" description="form1">
>>>    <widget widgetType="tab" description="tab1">
>>>       <widget widgetType="comment" description="comment1" />
>>>       <widget widgetType="comment" description="comment2" />
>>>    </widget>
>>>    <widget widgetType="tab" description="tab21">
>>>       <widget widgetType="comment" description="comment1" />
>>>       <widget widgetType="comment" description="comment2" />
>>>        <widget widgetType="comment" description="comment3" />
>>>    </widget>
>>>    <widget widgetType="tab" description="tab1">
>>>       <widget widgetType="comment" description="comment1" />
>>>       <widget widgetType="comment" description="comment2" />
>>>    </widget>
>>> </widget>
>>>
>>> With above widget-tree, it would be possible to 'tab' between tabs 1
>>> and 3, but tabbing to tab2 results in the error...
>>>
>>> Does anybody have an idea?
>>> Best regards,
>>> Bart
>>
>> --
>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>> http://www.orbeon.com/
>>
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ow2.org  
>> mailing
>> list.
>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>> For general help: mailto:sympa@ow2.org?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://www.nabble.com/repeatChildren-and-newNodeset-have-different-sizes.-tp14377493p14404079.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org  
> mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeatChildren and newNodeset have different sizes.

Erik Bruchez
Administrator
Hi,

Thanks for the file. I reproduce this. This seems to be due to the  
fact that a repeat depends on another repeat.

I enter a bug for now:

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

Do you have a workaround?

-Erik

On Dec 19, 2007, at 3:20 AM, bartottenkamp wrote:

>
> Hai Erik,
>
> here's the file.
>
> http://www.nabble.com/file/p14415134/toolkitFormRepeats2.xhtml
> toolkitFormRepeats2.xhtml
>
> It should just me runnable in any application, if you give it a path  
> in the
> page-flow of course.
> With this example, tabbing between tab 1 and tab 4 is possible,  
> because they
> have the same amount of children, but tabbing to the other tabs will  
> fail...
> Good luck with it..
>
> Bart
>
>
> Erik Bruchez wrote:
>>
>> Bart,
>>
>> No, the type of deployment shouldn't make a difference. I just wanted
>> to make sure you were using a recent version.
>>
>> What we need is a way of reproducing the issue. Can you package  
>> either
>> a single file which can run in the sandbox, or a zipped app which can
>> be unzipped under RESOURCES/apps/[yourapp]?
>>
>> -Erik
>>
>> On Dec 18, 2007, at 11:32 AM, bartottenkamp wrote:
>>
>>>
>>> Hai Erik,
>>>
>>> thanks for the reaction.
>>> I tried it on 3.5.1 and 3.6 as well. 3.6 not deployed as a separate
>>> war
>>> though. Do you think this would help?
>>> My guess is, it won't..
>>> Best regards,
>>> Bart
>>>
>>>
>>> Erik Bruchez wrote:
>>>>
>>>> Bart,
>>>>
>>>> First, is this with 3.5.x or 3.6? If with 3.5.x, can you please
>>>> upgrade to 3.6 and report if the problem is still present?
>>>>
>>>> -Erik
>>>>
>>>> On Dec 17, 2007, at 6:31 AM, Bart Ottenkamp wrote:
>>>>
>>>>> hai anybody,
>>>>>
>>>>> I'm trying to use the xforms:repeat tag in the following code:
>>>>>
>>>>>   <xhtml:div id="contentpane">
>>>>>       <!-- tabs -->
>>>>>       <table border="1" bordercolor="red">
>>>>>           <xhtml:tr>
>>>>>               <xforms:repeat
>>>>>                   nodeset="instance('form-instance')//
>>>>> widget[@widgetType='tab']"
>>>>>                   id="tab-repeat">
>>>>>                   <td>
>>>>>                       <xforms:output value="@description" />
>>>>>                   </td>
>>>>>               </xforms:repeat>
>>>>>           </xhtml:tr>
>>>>>       </table>
>>>>>       <!-- tab-content -->
>>>>>       <table>
>>>>>           <xforms:repeat nodeset="instance('form-instance')//
>>>>> widget[@widgetType='tab'][index('tab-repeat')]/widget" id="widget-
>>>>> repeat">
>>>>>               <tr>
>>>>>                   <td>
>>>>>                       <xforms:output value="@description" />
>>>>>                   </td>
>>>>>               </tr>
>>>>>           </xforms:repeat>
>>>>>       </table>
>>>>>   </xhtml:div>
>>>>>
>>>>> As can be seen, I'm trying to 'simulate' tab functionality, for
>>>>> which I use a table in which I print all description attributes of
>>>>> all Widgets with a type of 'tab'.
>>>>> Under that table, I'm trying to print descriptions for all the
>>>>> widgets on the selected tab..
>>>>> Reasoning is, that when selecting one of the tab-widgets, the  
>>>>> 'tab-
>>>>> index' is updated... and the nodeset in the second table is
>>>>> dependend on this tab-index, so, this should work.
>>>>> And it works! But, It only works IF the amount of widgets found in
>>>>> the second table is equal in all tabs..., otherwise I get the  
>>>>> error:
>>>>> 'repeatChildren and newNodeset have different sizes.'
>>>>>
>>>>> So, this makes it inpossible for me to deliver (for the form-
>>>>> instance) a completely dynamic tree of widgets like this...
>>>>>
>>>>> <widget widgetType="form" description="form1">
>>>>>   <widget widgetType="tab" description="tab1">
>>>>>      <widget widgetType="comment" description="comment1" />
>>>>>      <widget widgetType="comment" description="comment2" />
>>>>>   </widget>
>>>>>   <widget widgetType="tab" description="tab21">
>>>>>      <widget widgetType="comment" description="comment1" />
>>>>>      <widget widgetType="comment" description="comment2" />
>>>>>       <widget widgetType="comment" description="comment3" />
>>>>>   </widget>
>>>>>   <widget widgetType="tab" description="tab1">
>>>>>      <widget widgetType="comment" description="comment1" />
>>>>>      <widget widgetType="comment" description="comment2" />
>>>>>   </widget>
>>>>> </widget>
>>>>>
>>>>> With above widget-tree, it would be possible to 'tab' between  
>>>>> tabs 1
>>>>> and 3, but tabbing to tab2 results in the error...
>>>>>
>>>>> Does anybody have an idea?
>>>>> Best regards,
>>>>> Bart
>>>>
--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeatChildren and newNodeset have different sizes.

Bart Ottenkamp
Hai Erik,

not really a workaround, but dropped the issue for now. Functionality is not needed anymore. But I'm still interested in the solution though...

Best regards,
Bart

On Sat, Oct 10, 2009 at 3:48 AM, Erik Bruchez (via Nabble) <[hidden email]> wrote:
Hi,

Thanks for the file. I reproduce this. This seems to be due to the  
fact that a repeat depends on another repeat.

I enter a bug for now:

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

Do you have a workaround?

-Erik

On Dec 19, 2007, at 3:20 AM, bartottenkamp wrote:

>
> Hai Erik,
>
> here's the file.
>
> http://www.nabble.com/file/p14415134/toolkitFormRepeats2.xhtml
> toolkitFormRepeats2.xhtml
>
> It should just me runnable in any application, if you give it a path  
> in the
> page-flow of course.
> With this example, tabbing between tab 1 and tab 4 is possible,  
> because they
> have the same amount of children, but tabbing to the other tabs will  
> fail...
> Good luck with it..
>

> Bart
>
>
> Erik Bruchez wrote:
>>
>> Bart,
>>
>> No, the type of deployment shouldn't make a difference. I just wanted
>> to make sure you were using a recent version.
>>
>> What we need is a way of reproducing the issue. Can you package  
>> either
>> a single file which can run in the sandbox, or a zipped app which can
>> be unzipped under RESOURCES/apps/[yourapp]?
>>
>> -Erik
>>
>> On Dec 18, 2007, at 11:32 AM, bartottenkamp wrote:
>>
>>>
>>> Hai Erik,
>>>
>>> thanks for the reaction.
>>> I tried it on 3.5.1 and 3.6 as well. 3.6 not deployed as a separate
>>> war
>>> though. Do you think this would help?
>>> My guess is, it won't..
>>> Best regards,
>>> Bart
>>>
>>>
>>> Erik Bruchez wrote:
>>>>
>>>> Bart,
>>>>
>>>> First, is this with 3.5.x or 3.6? If with 3.5.x, can you please
>>>> upgrade to 3.6 and report if the problem is still present?
>>>>
>>>> -Erik
>>>>
>>>> On Dec 17, 2007, at 6:31 AM, Bart Ottenkamp wrote:
>>>>
>>>>> hai anybody,
>>>>>
>>>>> I'm trying to use the xforms:repeat tag in the following code:
>>>>>
>>>>>   <xhtml:div id="contentpane">
>>>>>       <!-- tabs -->
>>>>>       <table border="1" bordercolor="red">
>>>>>           <xhtml:tr>
>>>>>               <xforms:repeat
>>>>>                   nodeset="instance('form-instance')//
>>>>> widget[@widgetType='tab']"
>>>>>                   id="tab-repeat">
>>>>>                   <td>
>>>>>                       <xforms:output value="@description" />
>>>>>                   </td>
>>>>>               </xforms:repeat>
>>>>>           </xhtml:tr>
>>>>>       </table>
>>>>>       <!-- tab-content -->
>>>>>       <table>
>>>>>           <xforms:repeat nodeset="instance('form-instance')//
>>>>> widget[@widgetType='tab'][index('tab-repeat')]/widget" id="widget-
>>>>> repeat">
>>>>>               <tr>
>>>>>                   <td>
>>>>>                       <xforms:output value="@description" />
>>>>>                   </td>
>>>>>               </tr>
>>>>>           </xforms:repeat>
>>>>>       </table>
>>>>>   </xhtml:div>
>>>>>
>>>>> As can be seen, I'm trying to 'simulate' tab functionality, for
>>>>> which I use a table in which I print all description attributes of
>>>>> all Widgets with a type of 'tab'.
>>>>> Under that table, I'm trying to print descriptions for all the
>>>>> widgets on the selected tab..
>>>>> Reasoning is, that when selecting one of the tab-widgets, the  
>>>>> 'tab-
>>>>> index' is updated... and the nodeset in the second table is
>>>>> dependend on this tab-index, so, this should work.
>>>>> And it works! But, It only works IF the amount of widgets found in
>>>>> the second table is equal in all tabs..., otherwise I get the  
>>>>> error:
>>>>> 'repeatChildren and newNodeset have different sizes.'
>>>>>
>>>>> So, this makes it inpossible for me to deliver (for the form-
>>>>> instance) a completely dynamic tree of widgets like this...
>>>>>
>>>>> <widget widgetType="form" description="form1">
>>>>>   <widget widgetType="tab" description="tab1">
>>>>>      <widget widgetType="comment" description="comment1" />
>>>>>      <widget widgetType="comment" description="comment2" />
>>>>>   </widget>
>>>>>   <widget widgetType="tab" description="tab21">
>>>>>      <widget widgetType="comment" description="comment1" />
>>>>>      <widget widgetType="comment" description="comment2" />
>>>>>       <widget widgetType="comment" description="comment3" />
>>>>>   </widget>
>>>>>   <widget widgetType="tab" description="tab1">
>>>>>      <widget widgetType="comment" description="comment1" />
>>>>>      <widget widgetType="comment" description="comment2" />
>>>>>   </widget>
>>>>> </widget>
>>>>>
>>>>> With above widget-tree, it would be possible to 'tab' between  
>>>>> tabs 1
>>>>> and 3, but tabbing to tab2 results in the error...
>>>>>
>>>>> Does anybody have an idea?
>>>>> Best regards,
>>>>> Bart
>>>>
--
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
OW2 mailing lists service home page: http://www.ow2.org/wws



View message @ http://n4.nabble.com/repeatChildren-and-newNodeset-have-different-sizes-tp36595p36600.html
To unsubscribe from Re: repeatChildren and newNodeset have different sizes., click here.