[Laszlo-user] edittext and password fields

James Robey jrobey at laszlosystems.com
Wed Oct 10 13:05:34 PDT 2007


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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20071010/5491e2d7/attachment.html


More information about the Laszlo-user mailing list