Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stuck making JSF 2.0 work with MyFaces  RSS feed

Cristian Jujea
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

I'm trying to solve the file upload lack in JSF 2.0 using MyFaces. I'm trying with a very simple example:

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns=""

<h:form enctype="multipart/form-data" id="myForm">
firstName : <h:inputText value="#{user.firstName}" /><br />
lastName : <h:inputText value="#{user.lastName}" /><br />
pic : <t:inputFileUpload id="file" storage="file" accept="image/*" styleClass="myStyle" value="#{user.file}"/><br />
<h:commandButton action="#{user.createUser}" value="Create user"/>

The problem is that the page does not get transformed. In the browser I get the exact same code above, not the XHTML code expected.
Please tell me, how can I solve this?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!