YB,

I was making the same "rookie" mistake you were. However, attaching my
FormPanel to the RootPanel does not display/show it.

Any ideas what problem I might be running into?

On Oct 10, 2:05 am, YB <[EMAIL PROTECTED]> wrote:
> AHHH progress. Found the problem.
>
> Rookie mistake, i was attaching the wrong container. Instead of
> attachingFormPanelto the page, i was attaching the VerticalPanel. So
> visually it appeared that all was well (file selector worked,submit
> button there), but the browser would never allow you tosubmitit
> since it wasn't wrapped into aFormPanel.
>
> Oh and you can have anything for your action url, Tomcat will let you
> know with a nice 404 to go fix it:)
>
> On Oct 10, 1:40 am, YB <[EMAIL PROTECTED]> wrote:
>
> > Just ran http sniffer. There is no traffic when i clicksubmit, what
> > so ever! What does *that* mean?FormPanel.class is busted?
> > I am running with 1.5.0 but will try 1.5.2, although i think something
> > else is wrong otherwise everyone would be having this issue.
>
> > On Oct 9, 11:26 pm, YB <[EMAIL PROTECTED]> wrote:
>
> > > Mon3y, it is imageUpload.do (that's how my Spring controllers are
> > > defined).
> > > @RequestMapping("/imageUpload.do")
> > >         public String processImageUpload(
> > >                         @RequestParam("imageName") String imageName,
> > >                         @RequestParam("description") String description,
> > >                         @RequestParam("image") MultipartFile image,
> > >                         @RequestParam("propertyId") String propertyId ) 
> > > throws IOException
> > > {
>
> > >                 log.debug("Image: " + image);
> > >                 log.debug("Original file name: " + 
> > > image.getOriginalFilename());
> > >                 log.debug(new String(image.getBytes()));
> > >                 return "redirect:/index.jsp";
>
> > >         }
>
> > > On Oct 9, 2:53 am, mon3y <[EMAIL PROTECTED]> wrote:
>
> > > > Are you sure you need that "ImageUpload.do");
> > > > should it not be "ImageUpload"); ??
>
> > > > On Oct 9, 8:21 am, mon3y <[EMAIL PROTECTED]> wrote:
>
> > > > > Does that Window.alert pop up?
>
> > > > > If not:
> > > > > 1)Did you map the servlet in  your xml?
> > > > > 2) There's an error on your server side
> > > > > 3)It doesn't find your server class that handles the upload
>
> > > > > If it does:
> > > > > *shrug*
>
> > > > > On Oct 9, 6:48 am,YB<[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi,
> > > > > > My file upload not submitting. Form handler is printing out the 
> > > > > > debugs
> > > > > > when i clicksubmit, but the server is not registering any activity.
> > > > > > No errors in the log on client or server.
>
> > > > > > the code:
> > > > > > finalFormPanelform = newFormPanel();
> > > > > >                 form.setAction(GWT.getModuleBaseURL() + 
> > > > > > "ImageUpload.do");
> > > > > >             form.setEncoding(FormPanel.ENCODING_MULTIPART);
>
> > > > > >                 form.setMethod(FormPanel.METHOD_POST);
> > > > > >             VerticalPanel panel = new VerticalPanel();
> > > > > >             form.setWidget(panel);
>
> > > > > >             FileUpload upload = new FileUpload();
> > > > > >             upload.setName("uploadFormElement");
> > > > > >             panel.add(upload);
> > > > > >             panel.add(new Button("Submitit !!!!", new 
> > > > > > ClickListener() {
> > > > > >                 public void onClick(Widget sender) {
> > > > > >                         System.out.println("onClick() called");
> > > > > >                         form.submit();
> > > > > >                 }
> > > > > >             }));
>
> > > > > >             form.addFormHandler(new FormHandler() {
> > > > > >                 public void onSubmit(FormSubmitEvent event) {
> > > > > >                         System.out.println("form handler onSubmit() 
> > > > > > invoked");
> > > > > >                         System.out.println("event: " + event);
> > > > > >                         System.out.println("event.isCanceled: " +
> > > > > > event.isCancelled());
> > > > > >                 }
> > > > > >                 public void 
> > > > > > onSubmitComplete(FormSubmitCompleteEvent event) {
> > > > > >                     Window.alert(event.getResults());
> > > > > >                 }
> > > > > >             });
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to