PDA

View Full Version : [CLOSED] Bug With TextField (and other questions)



Webflash
15 May 2008, 2:04 AM
When make TextField name = new TextField();
name.setValue("Name"), when textField is not render I set value after render in ui value is empty. And why it not parametrized like TextField<String> = new TextField<String>() (to get end set needed object, now need cast when get value from TextField)
TreeContentProvider there
public void getChildren(Object parent, AsyncContentCallback<Object> callback);
why it not parametraized? I see you write http://extjs.com/forum/showthread.php?t=34753
in TreeLoader public boolean loadChildren(ModelData parent); can be generic Object because I use RPC and Hebernate
entity (with pure java object) and return from server this object (I dont want implement on this entity ModelData
because)
Have problem with MessageBox in host mode
after add Viewport like RootPanel.get().add(viewport); it not display any more (in web mode it work normal)

darrellmeyer
19 May 2008, 9:11 AM
Please break up your bugs into multiple posts.


When make TextField name = new TextField();
name.setValue("Name"), when textField is not render I set value after render in ui value is empty.Setting the value after render works with the latest code.

And why it not parametrized like TextField<String> = new TextField<String>() (to get end set needed object, now need cast when get value from TextField)All form fields now use generics.

TreeContentProvider has been replaced with TreeLoader.


Have problem with MessageBox in host mode
after add Viewport like RootPanel.get().add(viewport); it not display any more (in web mode it work normal)Please post some sample code as I do not understand what you are describing.