MenuItem/onCommand throws exception
-----------------------------------

                 Key: XAP-500
                 URL: https://issues.apache.org/jira/browse/XAP-500
             Project: XAP
          Issue Type: Bug
          Components: Widgets: Menu/MenuBar/Toolbar
         Environment: FF2, IE6
            Reporter: Scott Boyd
            Assignee: James Margaris


XAL Snippet:
      <menuBar x="1px" y="101px">
        <menu text="Home">
          <popupMenu>
            <menuItem text="Home Page" onCommand="changeColor.xm"/>
            <menuItem text="Logout"/>
          </popupMenu>
        </menu>
      </menuBar>

changeColor.xm
<xal>
<xm:modifications xmlns:xm="http://openxal.org/core/xmodify";> 
        <xm:set-attribute select="//menuItem">
                <xm:attribute name="color" value="red"/>
        </xm:set-attribute>
</xm:modifications>
</xal>


Error in IE: 'target' is null or not an object
Error in FF: Error: [Exception... "'Error: _15c5 has no properties' when 
calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c 
(NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]

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

Reply via email to