[Laszlo-user] How to change the resource behavior

P T Withington ptw at openlaszlo.org
Fri Jun 2 10:15:18 EDT 2006


Can you give some example code?

On 2006-06-02, at 06:30 EDT, Morgan Duchène wrote:

> Hi,
>
> I have made a class extending view which is making some processing on
> the resource it gets, and shows it in a subview. It works fine when I
> use an attribute and call setAttribute('myattribute',myresource). To
> make it 'perfect', I wanted to use the default 'resource' attribute  
> from
> views instead of myattribute, just overiding the 'onresource' handler,
> so that I could just use my class as a standard view. But I get a
> warning saying "cannot set resource to myresource because it  
> already has
> subviews." Why can't I overide the behavior and just have it actually
> show the processed resource into the subview?
>



More information about the Laszlo-user mailing list