Tomahawk inputFileUpload in subform: required fields are validated

假如想象 提交于 2019-12-13 04:23:02

问题


I have integrated the inputFileUpload of Tomahawk in my webapplication. I have tried to use it with subform from tomahawk but with no luck.

My form looks like this:

<h:form enctype="multipart/form-data">
   <!-- some <h:inputText required="true" /> tags -->

   <t:subform id="testSubForm">
       <t:inputFileUpload value="#{fileBean.uploadedFile}" />

       <t:commandButton action="#{fileBean.submit()}" value="Submit subForm"/>
   </t:subform>
</h:form

The problem is that the submit of the subform tries to validate the inputText-tags which are required but not filled.

What am I doing wrong here?


回答1:


Splitting my form in two forms works fine now.



来源:https://stackoverflow.com/questions/11101853/tomahawk-inputfileupload-in-subform-required-fields-are-validated

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!