| I'm converting the base components to use <event> and <handler>, and ran into something I don't think is quite right. The proposal (http://wiki.openlaszlo.org/Event_and_handler_tags) suggests that <handler> should have two forms:
and
But the schema entry looks like this:
I read this as allowing <handler name="eventName" [args="..."]> ... </handler> or <handler [name="eventName"] method="methodName" [reference="..."] [args="..."]> ... </handler> Whether text is allowed or not (it shouldn't if @method is given) is one problem. Another is that I can't write <handler name="eventName" reference="..." args="..."> ... </handler> The workaround for the second is (I think) to split the handler definition into a handler and a method, but I shouldn't have to do this. Third, the comment says about @method that "this attribute may be present only if the @a{event} attribute is present too," but there's no @event attribute in handler. Does this mean to say @name instead of @event? If everyone agrees, I'll propose a change to the schema to fix both of these problems. I don't see a unit test file; Henry, did you write one when you did the initial implementation? jim |
_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
