tree problem

classic Classic list List threaded Threaded
1 message Options
hcr
Reply | Threaded
Open this post in threaded view
|

tree problem

hcr
Hi.
    I have a problem with "tree". When "delete" or "insert" actions use in "tree" component, It is wrong! For example:
 
OPS: ops-3.5.0.200702202124  
...
   <xforms:instance id="menu-data">
     <data xmlns="">
       <selected/>
       <items>
           <item name="File"/>
           <item name="Edit"/>
           <item name="View"/>
       </items> 
     </data> 
   </xforms:instance>
...
  <xforms:select appearance="compact" ref="instance('menu-data')/selected">
     <xforms:itemset nodeset="instance('menu-data')/items/item">
         <xforms:label ref="@name"/>
         <xforms:value ref="@name"/>
     </xforms:itemset>
  </xforms:select>
 
  <xforms:select1 appearance="xxforms:tree" incremental="true" ref="instance('menu-data')/selected">
     <xforms:itemset nodeset="instance('menu-data')/items//item">
        <xforms:label ref="@name"/>
        <xforms:value ref="@name"/>
     </xforms:itemset>
  </xforms:select1>
 
  <xforms:trigger>
     <xforms:label>Add</xforms:label>
     <xforms:action ev:event="DOMActivate">
         <xforms:insert nodeset="instance('menu-data')/items/item" at="last()" position="after"/>
     </xforms:action>
  </xforms:trigger>
  
  <xforms:trigger>
     <xforms:label>Delete</xforms:label>
     <xforms:action ev:event="DOMActivate">
        <xforms:delete nodeset="instance('menu-data')/items/item" at="last()"/>
     </xforms:action>
  </xforms:trigger>
...
 
   Is it a bug?


 
 
 
 
 
 
 



网易邮箱精准过滤超过98%的垃圾邮件 www.126.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

menu.xhtml (15K) Download Attachment