Starting with 1.6, you can no longer wrap() an element with an ancestor that has already been wrap()ed: http://code.google.com/p/google-web-toolkit/source/detail?r=4948
This makes this code fail in 1.6: http://groups.google.fr/group/Google-Web-Toolkit-Contributors/msg/9bcebfb17cf914ba What would be the "blessed" way of doing such a thing with GWT 1.6? use the com.google.gwt.dom.client.* to access the inner elements instead of wrapping them? In this simple example, it would work, but what if you want to attach a KeyUpHandler to the TextBox and PasswordBox (e.g. to disable the submit Button when one or both fields are empty) ? use the low-level DOM.sinkEvents and DOM.setEventListener? (and don't forget to call DOM.removeEventListener with 'null' on unload to not leak memory). See also issue 3528 about an inconsistency (flaw?) with this new wrap () constraint (inconsistency that could be used as a workaround for the above code) http://code.google.com/p/google-web-toolkit/issues/detail?id=3528 -- Thomas Broyer --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
