[
https://issues.apache.org/jira/browse/XAP-403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Turyn, Michael closed XAP-403.
------------------------------
Resolution: Fixed
Table.altColor fixed in r. 522398
Bug in MenuBarBridge was awful:
var handler = this.getUiContentHandler().getHandlerForPeer(children[i]);
eval("handler.set" + name + "Attribute(\"" + value +"\")");
which broke on compaction when "handler" changed to something like "_1283".
Replaced it with
var setterFunction =
childHandler.getSetterFunctionForAttribute( name ) ;
setterFunction.call(childHandler,value) ;
See r.534613.
Please open new reports if similar attribute setting bugs are found, since I
think this is a special case.
> Widgets: Various: Setting various attributes on-the-fly throws errors
> ---------------------------------------------------------------------
>
> Key: XAP-403
> URL: https://issues.apache.org/jira/browse/XAP-403
> Project: XAP
> Issue Type: Bug
> Components: Widgets: Menu/MenuBar/Toolbar, Widgets: Other, Widgets:
> Table/Tree/TreeTable
> Reporter: Trevor Oldak
> Assigned To: Turyn, Michael
> Priority: Blocker
>
> I originally noticed this with the menubar, but it is also showing up in
> Table and a few other widgets
> Open the menubar widget component test.
> Under the standard tests, set the font weight, style, size, or color.
> An error will be thrown.
> Try this with table and altColor and you'll get the same error.
> [14:20:8 ERROR exception] Exception occured exception: Exception:Bad
> attribute with name fontWeight and value bold on element <xal:menuBar
> id="testComponent" fontWeight="bold"><xal:menu id="testMenuBarItem"
> text="Edit"
> onCreate="mco:attributeSetter.registerElement(this)"><xal:popupMenu
> id="xap:1177697992668314"><xal:menuItem id="xap:1177697992668316"
> text="Cut"/><xal:menuItem id="xap:1177697992668318"
> text="Copy"/><xal:horizontalSeparator id="xap:1177697992668320"
> width="10px"/><xal:menuItem id="xap:1177697992668322"
> text="Paste"/></xal:popupMenu></xal:menu><xal:menu id="xap:1177697992668324"
> text="File"><xal:popupMenu id="xap:1177697992668326"><xal:menuItem
> id="xap:1177697992668328" text="Open" enabled="false"
> onCommand="mco:attributeSetter.reportEvent(event)"/><xal:menuItem
> id="xap:1177697992668330" text="Close"
> onCommand="mco:attributeSetter.reportEvent(event)"/><xal:menuItem
> id="xap:1177697992668332" text="Preferences..."><xal:popupMenu
> id="xap:1177697992668334"><xal:menuItem id="xap:1177697992668336" text="A
> preference"/><xal:menuItem id="xap:1177697992668338" text="A different
> preference"/></xal:popupMenu></xal:menuItem></xal:popupMenu></xal:menu><xal:menu
> id="xap:1177697992668340" text="Format" enabled="false"><xal:popupMenu
> id="xap:1177697992668342"><xal:menuItem id="xap:1177697992668344"
> text="Cut"/><xal:menuItem id="xap:1177697992668346"
> text="Copy"/><xal:menuItem id="xap:1177697992668348"
> text="Paste"/></xal:popupMenu></xal:menu><xal:menu id="xap:1177697992668350"
> text="Run"><xal:popupMenu id="xap:1177697992668352"><xal:menuItem
> id="testMenuItem" text="Open"
> onCreate="mco:attributeSetter.registerElement(this)"/><xal:menuItem
> id="xap:1177697992668355" text="Close"/><xal:menuItem
> id="xap:1177697992668357"
> text="Preferences..."/></xal:popupMenu></xal:menu></xal:menuBar> because of
> Exception: ReferenceError - handler is not defined
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.