The problem has been fixed - it was a case of misspelling - silly mistake.
I'm using Commons FileUpload. And while we are on the subject of file uploads NOT GWT related: Any gurus give me a pointer on how to upload a file to MS SQL Server using streams (setBinaryStream) when the LENGTH of the stream is NOT available? At the moment, I'm writing to a file and then reading it again with the known length/size of the file. <-- not good :( On Mar 23, 9:32 pm, John Ivens <[email protected]> wrote: > What does the server side code look like? I have implemented something like > this, and I would like to see how you did it.. > > On Sun, Mar 22, 2009 at 3:54 AM, Riyaz Mansoor <[email protected]>wrote: > > > > > I found my mistake. It a single character misspelled in the form panel > > action url !!! > > > Regardless, it would help if the onSubmitComplete or elsewhere an > > exception is thrown. > > > On Mar 22, 2:16 pm, Riyaz Mansoor <[email protected]> wrote: > > > I have added onSubmit and onSubmitComplete handlers and both fire > > > successfully. Have checked the url as well. > > > > But nothing is being submitted to the servlet. I checked this with a > > > log() statement in my servlet service method. > > > > what should i do? > > > > On Mar 22, 12:59 am, Riyaz Mansoor <[email protected]> wrote: > > > > > The form panel below is in a vertical panel which has submit link. The > > > > vertical panel is in a popup panel. Clicking submit has no effect! > > > > > The examples seem to show formpanel being added to rootpanel. can't > > > > use popup? > > > > > Grid grid = new Grid(3, 2); > > > > grid.setCellSpacing(8); > > > > grid.setWidget(0, 0, hiddenStmtId); > > > > grid.setWidget(0, 1, hiddenEntityId); > > > > grid.setText(1, 0, "Comment"); > > > > grid.setText(2, 0, "Attachment"); > > > > grid.setWidget(1, 1, txtComment); > > > > grid.setWidget(2, 1, fileUpload); > > > > > formPanel = new FormPanel(); > > > > formPanel.setAction("/uploadservlet"); > > > > formPanel.setMethod(FormPanel.METHOD_POST); > > > > formPanel.setEncoding(FormPanel.ENCODING_MULTIPART); > > > > formPanel.add(grid); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
