Hello community!

As you all know HTML has 2 types (definitely more but 2 is interesting
there) of <input>: text and password. As you also know they are pretty
much the same. Dots versus normal characters nothing else. When you
will look into appropriate GWT classes you also will find that one
extends another and the only own that PasswordTextBox has is wrap(...)
mostly because it is static and "gwt-PasswordTextBox".

>From object-oriented point of this this all makes me think that
PasswordTextBox is TextBox "inside" and if I will make 1 TextBox and 1
PasswordTextBox I will likely name both of them as TextBox. Why not?

And that's why the question is: Why this assertions are in protected
constructors which always fails in Hosted Mode and restrict me from
generalizing all fields on form by TextBox pattern.

I see why such type of restriction is useful. For sure I shouldn't
wrap type="image" or type="radio" with TextBox. But may be it should
look different when we're wrapping expendable elements like "text" and
"password"

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to