Hi All,
I have input, div, span, select elements in my uibinders file. How can I access those elements in view and presenter class.
So that, I can convert into TextBx.wrap(Element element) and attach handlers to it for validation.
I tried, using DOM.getElementById() in onBind() it returns null, because DOM is not attached yet and I tried it in onReveal it returns the Element, but not able to use TextBx.wrap(Element element);
it throws
java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list
at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:136)
at com.google.gwt.user.client.ui.TextBox.wrap(TextBox.java:69)
I tried to access in View class constructor, No use.
right place to get the DOM element?
Please help me,
Thanks In Advance,
Bennet.