[Laszlo-user] incubator validators: a question and a typo

manabu togawa togawamanabu at gmail.com
Wed Mar 8 02:28:36 EST 2006


Hi William,

Thanks for your point.

> In the "addSubview" method (see below), there's a test to see if the added
> subview is of a class called "edittext".  This is unnecessarily restrictive
> since I have a class that extends edittext but will not work because the

you can override addSubview method for your validator.

> ...that probably should be fixed before people write a lot of code that
> depends on the misspelling.

thank you I fixed it.

2006/3/7, William Krick <wkrick at eio-online.com>:
> I have a question about the incubator/basevalidator class.
>
> In the "addSubview" method (see below), there's a test to see if the added
> subview is of a class called "edittext".  This is unnecessarily restrictive
> since I have a class that extends edittext but will not work because the
> class name isn't the same.  Is there some sort of "instance of" test that
> can be used instead?
>
>
> <method name="addSubview" args="item">
>  super.addSubview(item);
>  if (item.classname == "edittext") {
>    // irrelevant stuff removed
>  }
> </method>
>
>
> Also, I just wanted to point out a typo.  There's an attribute named
> "innercompornent"...
>
> <attribute name="innercompornent" type="expression" value="null" />
>
> ...that probably should be fixed before people write a lot of code that
> depends on the misspelling.
>
>
> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: validators.zip
Type: application/zip
Size: 8302 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20060308/c8ca0c09/validators.zip


More information about the Laszlo-user mailing list