maven - JSF can't find h:inputFile tag -
maven - JSF can't find h:inputFile tag -
i seek reproduce tutorial http://www.javatutorials.co.in/jsf-2-2-file-upload-example-using-hinputfile/ , have big problem: inputfile tag not available me.
<h:form id="inputform" enctype="multipart/form-data">     upload file     <h:inputfile id="file"                  label="file"                  value="#{inputbean.part}"                  required="true"                  requiredmessage="file not selected !!">     </h:inputfile>     <h:message style="color: red" for="file" /><br />      <h:commandbutton id="submit"                      action="#{inputbean.uploadfile}"                      value="upload file" /><br />     <h:outputtext value="#{inputbean.statusmessage}"                   rendered="#{not empty inputbean.statusmessage}" /> </h:form>    i've seen question tag library supports namespace: http://java.sun.com/jsf/html, no tag defined name: inputfile, in pom file right file version used (2.2.7 > 2.2.4)
<dependency>         <groupid>com.sun.faces</groupid>         <artifactid>jsf-api</artifactid>         <version>2.2.7</version>     </dependency>      <dependency>         <groupid>com.sun.faces</groupid>         <artifactid>jsf-impl</artifactid>         <version>2.2.7</version>     </dependency>    here project^ https://github.com/solorad/checkrulesserver
i found! in .xhtml file imported wrong tag library. should used instead. xmlns:h="http://xmlns.jcp.org/jsf/html"
 maven jsf jsf-2 
 
Comments
Post a Comment