File uploading using MyFaces Tomahawk + JSF 2.0

前端 未结 1 1076
南旧
南旧 2021-01-14 18:43

I am currently ussing Tomahawk MyFaces to upload files in to my server. I followed some instructions step by step and all seems ok, but i dont get the file persisted into th

相关标签:
1条回答
  • 2021-01-14 19:12

    When i select a file with the browse button and then i click submit nothing happens.

    Your <h:form> is missing the enctype="multipart/form-data" attribute. Check the mini tutorial here: JSF 2.0 file upload with Tomahawk's <t:inputFileUpload>.

    WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.ajax4jsf.taglib.html.facelets.AjaxSupportHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered.

    You still have some JSF 1.2-targeted RichFaces/A4J libs in your web project. Get rid of them if you don't need it.

    WARNING: PWC4011: Unable to set request character encoding to UTF-8 from context /Datapool, because request parameters have already been read, or ServletRequest.getReader() has already been called

    This is Glassfish specific. Glassfish defaults to ISO-8859-1 and needs to be reconfigured to use UTF-8. See also How to get rid of WARNING: PWC4011: Unable to set request character encoding to UTF-8

    0 讨论(0)
提交回复
热议问题