[Laszlo-user] How to change the resource behavior
Morgan Duchène
mduchene at ebusinessinformation.fr
Fri Jun 2 06:30:40 EDT 2006
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?
Thanks for the help
More information about the Laszlo-user
mailing list