[Laszlo-user] edittext and password fields
P T Withington
ptw at openlaszlo.org
Wed Oct 10 15:23:23 PDT 2007
'immediately' is effectively 'compile time', so you really can only
use it for constant expressions. You almost never want to use it.
I'm not the edittext guru, so I can't answer the rest of your question.
On 2007-10-10, at 16:05 EDT, James Robey wrote:
> Hi all, I think i may have found a bug in the edittext component,
> but i thought someone might show this to be correct behavior in a
> way I don't yet see. The issue is setting password="true" on an
> <edittext/> component. It doesn't seem like the password attribute
> can be constrained. This example might also reveal a bug with
> $immediately{} constraints wherein "classroot" and "parent" don't
> exist when the constraint is evaluated.
>
> Anyone have advice on how to make this work?
>
> Test case: none of these fields (save the last hardcoded editext)
> has password styling.
>
> <canvas proxied="false" debug="true">
> <debug/>
>
> <class name="pwtest">
> <attribute name="passwordB" type="boolean" value="true"/>
> <attribute name="passwordS" type="string" value="true"/>
> <attribute name="passwordE" type="expression" value="true"/>
>
> <simplelayout axis="y"/>
>
> <edittext password="${classroot.passwordB}"/>
> <edittext password="${classroot.passwordS}"/>
> <edittext password="${classroot.passwordE}"/>
>
> <edittext password="$immediately{classroot.passwordB}"/>
> <edittext password="$immediately{classroot.passwordS}"/>
> <edittext password="$immediately{classroot.passwordE}"/>
>
> <edittext password="$once{classroot.passwordB}"/>
> <edittext password="$once{classroot.passwordS}"/>
> <edittext password="$once{classroot.passwordE}"/>
>
> <edittext password="true"/>
> </class>
>
> <pwtest/>
>
> </canvas>
More information about the Laszlo-user
mailing list