Problem Updating View Programmatically
All,
I am attempting to do something that must be very common, but I can't
get it to work. I place either a canvas or a TextBox on the screen
and change it programmatically and my changes don't show up on the
screen.
I am using uibinder. If I give say, my TextBox an initial value
<g:TextBox>XXX</g:TextBox> this value is displayed on the screen when
I run the app. But if I attempt to change the value by calling
textBox.setText("YYY") from the program. The display continues to
show the original XXX. It's as if I need to do some kind of refresh.
A similar thing is happening with Canvas. I create the Canvas in the
program, add it to a SimpleLayoutPanel, and draw on it--nothing
appears.
All this is consistent throughout my app. Any data values I declare
in the uibinder file. appear just fine, but any values is set from the
program have no effect.
Clearly, I am doing something wrong, but what? Do I need to repaint
somehow?
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home