You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by "Michael Mikhaylov (JIRA)" <xa...@incubator.apache.org> on 2007/05/11 18:31:15 UTC

[jira] Commented: (XAP-306) XModify: Clone: Clone statement is appended instead of the element selected to be cloned.

    [ https://issues.apache.org/jira/browse/XAP-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495122 ] 

Michael Mikhaylov commented on XAP-306:
---------------------------------------

Appears to be working as expected.

> XModify: Clone: Clone statement is appended instead of the element selected to be cloned.
> -----------------------------------------------------------------------------------------
>
>                 Key: XAP-306
>                 URL: https://issues.apache.org/jira/browse/XAP-306
>             Project: XAP
>          Issue Type: Bug
>          Components: XModify
>            Reporter: Trevor Oldak
>
> Create a xal file with the following contents and add it to the widget component test folder
> <xal xmlns="http://openxal.org/ui/html">
>     <mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
>         src="src-js/AttributeTester.js"/>
>     <macro:macro xmlns:macro="http://openxal.org/core/macro" id="addSpecialMention">
>         <xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
>             <xm:append select="id('specialMentionCarrier')">
>                 <xm:clone select="//horizontalBoxPane" deep="true"/>
>             </xm:append>
>         </xm:modifications>
>     </macro:macro>
>     <verticalBoxPane height="200px" width="600px" backgroundColor="#FFFF00">
>         <label height="20px" text="Label" width="100px"/>
>         <verticalBoxPane height="200px" width="600px" id="specialMentionCarrier">
>             <horizontalBoxPane height="20px" width="600px">
>                 <textField 
>                     height="20px" 
>                     text="TextField" 
>                     width="200px" 
>                     maxLength="70" 
>                     selectable="true"
>                     disabled="false" 
>                     visible="true" 
>                     backgroundColor="#00FF00" 
>                     class="input_06"
>                     selectedBackgroundColor="#FFFF00"/>
>                 <button height="20px" text="append" width="20px"
>                     onCommand="macro:addSpecialMention.execute()"/>
>                 <button width="150px" height="22px" text="Print Element XAL"
>                     onCommand="mco:attributeSetter.printElement(specialMentionCarrier)"/>
>             </horizontalBoxPane>
>         </verticalBoxPane>
>     </verticalBoxPane>
> </xal>
> Load the xal file. 
> Print the element xal.
> Click 'append'
> Print the element xal. Notice how the clone statement was appended instead of the horizontalBoxPane

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.