1 Reply Latest reply on Jun 5, 2007 4:40 PM by trouby

    <s:fileUpload> NPE

    trouby

      Hey,

      I'm trying to simply use fileUpload with no luck,
      submitting the form always returns null of the bean's property binded to the 'data' parameter of the 'fileUpload' tag.

      I have exactly the same code as mentioned at the begining of this post:
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=106837&postdays=0&postorder=asc&start=0

      I use:
      - Glassfish as an app server
      - Seam 1.2.0.PATCH1
      - Facelets
      - Stateful backend bean


      I don't have any special filters in web.xml except 'org.jboss.seam.web.SeamFilter'

      Any idea?

      Thanks.

        • 1. Re: <s:fileUpload> NPE
          trouby

          Hey,

          just to mention:

          - If I replace Seam's 'fileUpload' tag with Myfaces one it works well and the file gets uploaded.

          - Something is very odd, even if I bind the tag with a varabile/backend seam component that does not exist it doesnt throw a 'property not found' exception when the page gets rendered,

          it renders the file component anyway and for sure it never calls the setMethod of the property binded to the 'data' parameter of the tag.


          As always, many thanks,

          Asaf.