myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Yee <richard.k....@gmail.com>
Subject Re: Stuck making JSF 2.0 work with MyFaces
Date Mon, 22 Feb 2010 18:22:29 GMT
What version of Tomahawk are you using? If it is 1.1.7 or later, you don't
need tomahawk.taglib.xml

See: http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk

-Richard




On Mon, Feb 22, 2010 at 7:48 AM, cristiJ <cristi_jujea@yahoo.com> wrote:

>
> 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"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:t="http://myfaces.apache.org/tomahawk">
>
> <body>
> <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"/>
> </h:form>
> </body>
> </html>
>
> 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?
> --
> View this message in context:
> http://old.nabble.com/Stuck-making-JSF-2.0-work-with-MyFaces-tp27689327p27689327.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message