Hi, I want to access the text box written in HTML from GWT on the basis of element ID. I am able to get this elemt in GWT and also show that. Even I am able to change the text of the text box but I am not able to add the events to the element. How to add the event. I have written some bit of code but not able to sink the event.
I have extended the text box to add the element
-----------------------------------------------------------------------------
Public class MarkupTextBox extends TextBox{
Public MarkupTextBox(String markupTextboxID) {
This(DOM.getElementById(markupTextboxID));
}
Protected MarkupTextBox(Element element) {
Super(element);
}
}
-----------------------------------------------------------------------------
And then adding listener to it
-----------------------------------------------------------------------------
--
Final MarkupTextBox box = new MarkupTextBox("poctext");
Box.setText("Hi how are you");
Box.addClickListener(new ClickListener(){
Public void onClick(Widget sender) {
}});
Box.addChangeListener(new ChangeListener(){
Public void onChange(Widget sender) {
Box.setText("Hi how are you");
}});
---------------------------------------------------------------------
May be I making some mistake. Please suggest me without the suggestion of
using the
Third party lib like GWTTiger.
Warm Regards,
Vaibhav Saxena
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
<<inline: faint_grain.jpg>>
<<inline: imstp_animation_butterflies_en_020908.gif>>
