Open GoogleCodeExporter opened 8 years ago
Can you try using GWT-Ext 2.0.2 with Ext 2.0.2?
The following code works as expected.
TextField testTF = new TextField();
testTF.setInputType("file");
testTF.setAllowBlank(false);
boolean valid = testTF.validate();
Original comment by sanjiv.j...@gmail.com
on 8 Mar 2008 at 3:25
I've tried upgrading to GWT-Ext 2.0.2 and Ext 2.0.2. It doesn't work either.
Original comment by pgil%agn...@gtempaccount.com
on 10 Mar 2008 at 2:56
Can you send the entire code for the test as a module class.
Original comment by sanjiv.j...@gmail.com
on 10 Mar 2008 at 3:14
The following class throws the mentioned exception upon click on
'validateButton':
import com.gwtext.client.widgets.Button;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.event.ButtonListenerAdapter;
import com.gwtext.client.widgets.form.TextField;
import com.gwtext.client.widgets.layout.VerticalLayout;
import com.gwtext.client.core.EventObject;
public class TestTextFieldValidationPanel extends Panel{
public TestTextFieldValidationPanel(){
setLayout(new VerticalLayout(15));
final TextField fileTextField = new TextField();
fileTextField.setInputType("file");
fileTextField.setAllowBlank(false);
Button validateButton = new Button("Validate",new ButtonListenerAdapter(){
public void onClick(Button button, EventObject e){
fileTextField.validate();
}
});
add(fileTextField);
add(validateButton);
}
}
Original comment by pgil%agn...@gtempaccount.com
on 24 Mar 2008 at 7:52
Maybe it should be set to priority-high. ;)
Original comment by virid...@gmail.com
on 5 Aug 2008 at 6:53
OK guys,
Until the bug is fixed, here is how I fixed the problem by patching GWT. If you
need the patched file, or need
further assistance, contact me at viridium at gmail.
@ Viridium.ro: http://www.viridium.ro/2008/gwt-gwt-ext-and-mimemultipart-forms/
Mihai
Original comment by virid...@gmail.com
on 5 Aug 2008 at 8:03
I can't replicate this problem!
This is what I have:
final Panel form = new Panel();
form.setLayout(new FormLayout());
final TextField tf = new TextField("First");
tf.setId("first");
tf.setInputType("file");
tf.setAllowBlank(false);
form.add(tf);
TextField tf2 = new TextField("Second");
tf2.setId("second");
form.add(tf2);
form.addButton(new Button("Validate First", new ButtonListenerAdapter(){
public void onClick(Button button, EventObject e) {
tf.validate();
}
}));
Original comment by mlim1...@gmail.com
on 9 Sep 2008 at 4:48
as is discussed here:
http://gwt-ext.com/forum/viewtopic.php?f=5&t=161&p=1801&hilit=form+submit+respon
se#p1801
sjivan suggests this issue be about receiving server response for file upload
using
FormListener. However, this issue seems discussing a different issue.
Original comment by jasonzha...@gmail.com
on 15 Sep 2008 at 4:37
Original issue reported on code.google.com by
pgil%agn...@gtempaccount.com
on 6 Mar 2008 at 10:59