thanks all for the clarification. I m so new to openlaszlo, and this
information has been a great for me.
Most of the time, i use attributes(someatt) and do the operations in the
handler of the related attributes (onsomeatt). As J said, attribute model
came to me easier to learn. And till now, i havenT needed to use the
event-handler model. I m not sure, if it means good or bad:)
Kind regards.


2009/12/21 P T Withington <[email protected]>

> It is always safe to use .setAttribute.  It is inlined by the compiler, so
> not expensive.  We would like someday to do as you suggest.  See:
>
> http://jira.openlaszlo.org/jira/browse/LPP-7469
>
> for some of the details on why we have not yet.
>
> On 2009-12-21, at 14:37, Rami Ojares / AMG wrote:
>
> > The only with attributes and events according to me is this:
> > attr = somevalue should work like setAttribute("attr", somevalue);
> > And only in cases when you don't want to send events you would call
> setSilently("attr", somevalue);
> > At least I have made it my golden rule that ALWAYS use setAttribute when
> setting attribute values.
> > That's because so often I have not done it and then wondered later why
> some of my delegates are not working.
> >
> > - rami
>
>
>


-- 
Cem SONMEZ

Reply via email to