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 "Trevor Oldak (JIRA)" <xa...@incubator.apache.org> on 2006/12/13 17:06:21 UTC

[jira] Reopened: (XAP-121) Xmodify: replace: replace will remove elements from the DOM but not from the UI being displayed

     [ http://issues.apache.org/jira/browse/XAP-121?page=all ]

Trevor Oldak reopened XAP-121:
------------------------------

             
Still no luck with example code.

> Xmodify: replace: replace will remove elements from the DOM but not from the UI being displayed
> -----------------------------------------------------------------------------------------------
>
>                 Key: XAP-121
>                 URL: http://issues.apache.org/jira/browse/XAP-121
>             Project: XAP
>          Issue Type: Bug
>          Components: XModify
>            Reporter: Matt Carbone
>
> xm:replace will not remove widgets from the UI when they are removed from the DOM
> run xal snippet:
> click macro go button
> notice new button is drawn (in wrong place btw) and button to be replaced is still there
> click the button again - Xpath verifies that it is no longer in the dom
> <xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
>     <macro:macro id="replace"  xmlns:macro="http://www.openxal.org/macro">
>         <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
>             <xm:replace select="id('boom')">
>                 <xal:button id="newBoom" text="NEW, BOOM" />
>             </xm:replace>
>         </xm:modifications>
>     </macro:macro>
>     <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
>         <xm:append select="/xal">
>             <xal:button id="boom" text="button" />
>             <xal:button id="test1" text="Macro - GO!!!" onCommand="macro:replace.execute()" /> 
>             
>         </xm:append>
>     </xm:modifications>
> </xal>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira