[Laszlo-dev] Problem with baselistitem (and derived objects like radiobutton)

Max Carlson max at laszlosystems.com
Wed Aug 12 11:19:12 PDT 2009


Perhaps the accessibility code needs to ignore events when selected == 
false?

promanik at laszlosystems.com wrote:
> Hi Max,
> 
> I'd like your thoughts on this. I think there is a problem in 
> baselistitem. If setSelected() is called with false, the onselect and 
> onselected events are generated.
> 
>         <method name="setSelected" args="s">
>             <![CDATA[
>                 this.selected = s;
>                 if (this.onselect.ready) this.onselect.sendEvent(this);
>                 if (this.onselected.ready) this.onselected.sendEvent(this);
>             ]]>
>         </method>
> 
> 
> According to the docs:
> 
> onselect  Event sent when the user makes a selection.
> onselected  Event sent when this item is selected.
> 
> 
> I don't think either of these should be generated if this.selected is 
> false and this might explain some of the strange behavior in LPP-7594. I 
> will play with this tomorrow.
> 
> Thanks!
> 
> Phil

-- 
Regards,
Max Carlson
OpenLaszlo.org


More information about the Laszlo-dev mailing list