Hi,
I would like to know if, when I call MessageBox.prompt, I can set an initial value to the TextField that appears in the MessageBox.
Or should I use Dialog class instead of MessageBox.
Thanks !!!
Printable View
Hi,
I would like to know if, when I call MessageBox.prompt, I can set an initial value to the TextField that appears in the MessageBox.
Or should I use Dialog class instead of MessageBox.
Thanks !!!
is what you are looking for. Check the javadocs pleaseCode:msgbox.getTextBox
Thanks for the answer Sven. I'm moving from GWT-Ext and have some errors so I can't execute the application yet to test it.
I have read in another post that when MessageBox.prompt is called, the MessageBox will be shown immediately. So the next code is correct ..
or should I use this one:Code:MessageBox messageBox = MessageBox.prompt("", "someLabel", true);
messageBox.getTextArea().setValue("aaaa");
Thanks.Code:MessageBox messageBox = MessageBox.prompt("", "someLabel", true);
messageBox.addListener(Events.BeforeOpen,
new Listener<MessageBoxEvent>() {
publicvoid handleEvent(MessageBoxEvent be) {
be.messageBox.getTextArea().setValue("aaa");
}
});
first one would be fine unless you want to change the text dynamically..
Hi my code is
Ext.Msg.prompt(POPUP_CRICT_SUPPLIER_UPDATE, LABEL_CRICT_SUPPLIER_LOCATION_VALUE+' :'+depExtOwnername, function(btn, text){
});
I want to send value to text filed.
Thanks
Rajani