Re: Widget does not change value? GWT 2.1
Hi Everyone, I just found solution, I had two constructors in class where one of them was @UIConstrustructor, removed that constructor and everything now works. Thanks On Tue, Mar 22, 2011 at 6:54 AM, Y2i yur...@gmail.com wrote: Is text a field? May be the local text hides the field, and you are setting new value to the field? -- LiquidBrain! -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Widget does not change value? GWT 2.1
Hi Everyone, i am stuck with unexpected problem. I have following situation, i am creating HorizontalPanel, and adding Label widget in it. HorizontalPanel panel = new HorizontalPanel(); Label text = new Label(Foo); panel.add(text); when i want to change value in label ie: text.setText(Foo); nothing changes. I tried following code public void setText(String message) { Window.alert(text.getText()); text.setText(message); Window.alert(text.getText()); } and when executed i see that value in text change, but it is not displayed on interface. Am i doing something wrong, or this is expected behaviour? When i remove label from HorizontalPanel and insert it again, new value is displayed. 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Widget does not change value? GWT 2.1
Is text a field? May be the local text hides the field, and you are setting new value to the field? -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.