aspose file tools
The moose likes JSF and the fly likes File upload problem : urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "File upload problem : urgent" Watch "File upload problem : urgent" New topic
Author

File upload problem : urgent

Anks Gupta
Greenhorn

Joined: Mar 27, 2007
Posts: 21
Hello,

I am implementing file upload feature using tomahawk library along with facelets. <h:inputFileUpload>

I need to set enctype in <h:form> to "multipart/form-data" but i cannot do that because my this page(page 1) gets embedded in another page(page2) using ui:include.

This page 2 is a general page and all forms in whole app gets included in this page. So in <h:form> tag of this page i cannot set enctype because many other pages are included in this page, so it starts giving error.

And offcourse I cannot have h:form tag in my current page (page 1) because this will lead to form embedded in another form at runtime.

So i am trying to set the form enctype programaticaaly by using something like form.setEnctype("multipart/form-data") but dont know how to access the current form programatically using lets say faces context.

Can somebody please help me with this solution?

Any other solutions are welcome.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Why did you add 'urgent' to the topic title? That's your own problem, not ours. Why are you moving the pressure to us? My motivation to help you has been disappeared.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File upload problem : urgent
 
Similar Threads
[Help, File Upload encounter OutOfMemoryError]
Encoding problem with File Upload
problem with enctype="multipart/form-data"
Action form is not populated while using html:form enctype="multipart/form-data"
Multipart/form-data enctype incompatible with file upload?