tree control in xforms repeat issue

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

tree control in xforms repeat issue

paul.hermans
using version 3.5M1

See included example.

When the "Add Material"-trigger is activated, a new "Material"-label is
inserted, but the tree-control is not and an infinite loop occurs.

When replacing the tree-control with a plain input control, the code works fine.


An extract of the problematic xforms code:
<f:group ref="materials">
<f:repeat nodeset="material[position() lt last()]" id="materials">
<h:tr>
<h:th>Material</h:th>
<h:td>
<f:select1 appearance="xxforms:tree" ref="material">
<f:itemset nodeset="instance('objectnames-list-instance')//item">
<f:label ref="@label"/>
<f:value ref="@value"/>
</f:itemset>
</f:select1>
</h:td>
</h:tr>
</f:repeat>
<h:tr>
<h:th />
<h:td>
<f:trigger>
<f:label>Add material</f:label>
<f:action ev:event="DOMActivate">
<f:insert nodeset="material" at="index('materials')"

position="after"/>
</f:action>
</f:trigger>
</h:td>
</h:tr>
</f:group>

A solution or workaround?

Paul



--
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: tree control in xforms repeat issue

Erik Bruchez
Administrator
Paul,

I guess it's just a bug. I have entered a bug to track this:

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

-Erik

[hidden email] wrote:

> using version 3.5M1
>
> See included example.
>
> When the "Add Material"-trigger is activated, a new "Material"-label is
> inserted, but the tree-control is not and an infinite loop occurs.
>
> When replacing the tree-control with a plain input control, the code works fine.
>
>
> An extract of the problematic xforms code:
> <f:group ref="materials">
> <f:repeat nodeset="material[position() lt last()]" id="materials">
> <h:tr>
> <h:th>Material</h:th>
> <h:td>
> <f:select1 appearance="xxforms:tree" ref="material">
> <f:itemset nodeset="instance('objectnames-list-instance')//item">
> <f:label ref="@label"/>
> <f:value ref="@value"/>
> </f:itemset>
> </f:select1>
> </h:td>
> </h:tr>
> </f:repeat>
> <h:tr>
> <h:th />
> <h:td>
> <f:trigger>
> <f:label>Add material</f:label>
> <f:action ev:event="DOMActivate">
> <f:insert nodeset="material" at="index('materials')"
>
> position="after"/>
> </f:action>
> </f:trigger>
> </h:td>
> </h:tr>
> </f:group>
>
> A solution or workaround?
>
> Paul
--
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: tree control in xforms repeat issue

marc-62
Paul, Erik,

See what Alex have said about that :

http://mail-archive.objectweb.org/ops-users/2006-12/msg00034.html

HTH,
 
--
Marc


Erik Bruchez a écrit :

> Paul,
>
> I guess it's just a bug. I have entered a bug to track this:
>
> http://forge.objectweb.org/tracker/index.php?func=detail&aid=306520&group_id=168&atid=350207 
>
>
> -Erik
>
> [hidden email] wrote:
>
>> using version 3.5M1
>>
>> See included example.
>>
>> When the "Add Material"-trigger is activated, a new "Material"-label is
>> inserted, but the tree-control is not and an infinite loop occurs.
>> When replacing the tree-control with a plain input control, the code
>> works fine.
>>
>>
>> An extract of the problematic xforms code:
>> <f:group ref="materials">
>> <f:repeat nodeset="material[position() lt last()]" id="materials">
>> <h:tr>
>> <h:th>Material</h:th>
>> <h:td>
>> <f:select1 appearance="xxforms:tree" ref="material">
>> <f:itemset nodeset="instance('objectnames-list-instance')//item">
>> <f:label ref="@label"/>
>> <f:value ref="@value"/>
>> </f:itemset>
>> </f:select1>
>> </h:td>
>> </h:tr>
>> </f:repeat>
>> <h:tr>
>> <h:th />
>> <h:td>
>> <f:trigger>
>> <f:label>Add material</f:label>
>> <f:action ev:event="DOMActivate">
>> <f:insert nodeset="material" at="index('materials')"
>>
>> position="after"/>
>> </f:action>
>> </f:trigger>
>> </h:td>
>> </h:tr>
>> </f:group>
>>
>> A solution or workaround?
>>
>> Paul
>



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