I am trying to migrate my 4.9 DHTML application to 5.0. When i am doing that i am getting an error
ReferenceError: EVENT_OBJECT_FOCUS is not defined
[Break On This Error]
this.sendAAEvent(0,EVENT_OBJECT_FOCUS)
And in the line i am seeing this set of code. From the class name it looks like it is a radiobutton class.
$lzc$class_baselistitem,["tagname","radiobutton","children",[{attrs:{$CSSDescriptor:{},$attributeDescriptor:{types:LzNode.mergeAttributeTypes(lz.ClassAttributeTypes["accessible"],{EVENT_OBJECT_FOCUS:"number",EVENT_OBJECT_NAMECHANGE:"number",EVENT_OBJECT_SELECTION:"number",EVENT_OBJECT_STATECHANGE:"number"})},$classrootdepth:1,$delegates:["onselected","$mb5",null,"ontext","$mb6",null],$mb5:function($0){
if(!this.isinited){
return
};if(this.selected){
this.sendAAEvent(0,EVENT_OBJECT_FOCUS)
};this.sendAAEvent(0,EVENT_OBJECT_STATECHANGE,true)
},$mb6:function($0){
this.sendAAEvent(0,EVENT_OBJECT_NAMECHANGE)
},EVENT_OBJECT_FOCUS:32773,EVENT_OBJECT_NAMECHANGE:32780,EVENT_OBJECT_SELECTION:32774,EVENT_OBJECT_STATECHANGE:32778,name:"accessible",updateFocus:function($0){
if($0){
this.sendAAEvent(0,EVENT_OBJECT_SELECTION);this.sendAAEvent(0,EVENT_OBJECT_FOCUS)
};this.sendAAEvent(0,EVENT_OBJECT_STATECHANGE,true)
}},"class":LzState}
This is happening because of the radio.lzx .has anyone come across an issue like this.
I am currently using FF 16.0 windows xp sp 3 and Openlaszlo 5.0.x revision 19830
I would try with a different Firefox version or Firefox on a different OS. I have the feeling that it might be a Firefox bug in one specific version of Firefox.
The only mention of the
EVENT_OBJECT_FOCUS
can be found in OpenLaszlo's JIRA issue LPP-7594 Jaws Accessibility support needed for Radioboxes. It doesn't seem that any bug has been filed.