You're correct Mike, 

I seem to be having a "slow brain" moment.   :-)

I now going to try changing 

<h:form id="theForm">

To

<h:form id="formNCMAttach" name="formNCMAttach"
enctype="multipart/form-data" >


I now get an exception...

17:46:04,926 ERROR [[FacesServlet]] Servlet.service() for servlet
FacesServlet threw exception javax.faces.FacesException: expr
        at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:421)

Any ideas?

JP


-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: 27 February 2006 17:22
To: MyFaces Discussion
Subject: Re: Forms inside Forms - is it possible?

It's unclear to me why you need a second form.

Maybe you just need to put "immediate=true" on your
file-upload-related controls?
Or maybe look at the sandbox subform component if you need different
validation on each submit....


On 2/27/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
>
> Thanks Dennis.
>
> I found your post on 2006-02-01 18:17 (HtmlCollapsiblePanel get's a
> javascript error when inside two form tags), after I'd made my post.
>
> :-)
>
> So I'm now looking at t:aliasBean, but that doesn't seem to support
> setting the enctype="multipart/form-data".
>
> I guess I'm gonna have to redesign the whole page. :-(
>
> Unless you have any ideas?
>
> JP
>
>
> -----Original Message-----
> From: Dennis Byrne [mailto:[EMAIL PROTECTED]
> Sent: 27 February 2006 17:09
> To: MyFaces Discussion
> Subject: Re: Forms inside Forms - is it possible?
>
> Nested forms are not supported by HTML.  This is not a limitation of
the
> server side ( JSF, ASP.net , etc. ).
>
> Dennis Byrne
>
> >-----Original Message-----
> >From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
> >Sent: Monday, February 27, 2006 11:48 AM
> >To: 'MyFaces Discussion'
> >Subject: Forms inside Forms - is it possible?
> >
> >
> >
> >Hello all again...
> >
> >
> >
> >I have the situation where I have a myfaces page, but inside it I
want
> >to have a second form for file upload.
> >
> >
> >
> >The outer object doesn't contain the files, hence it not part of that
> >object.
> >
> >
> >
> >Anyway, when the user clicks on the button to upload the file my
method
> >gets called but the org.apache.myfaces.custom.fileupload.UploadedFile
> >does not have its SET method called.
> >
> >Hence it's still null.
> >
> >
> >
> >Anyone any ideas on how solve this issue?
> >
> >
> >
> >Using the VaribleResolvers results in the UploadedFile remaining
null.
> >
> >
> >
> >Thanks
> >
> >Jeff
> >
> >
>
>
>

Reply via email to