Hi,

Am I getting this right: also your h: and your f: components are not
displayed correctly?

If so, either your configuration or the URL with which you access the site
are wrong. You need to include /faces/ or *.jsf (or something similar,
depending on your configuration) in your URL to get the XHTML page processed
by the Faces Servlet.

Please provide your web.xml file and the URL from your browser with which
you try to access the site.

Regards,
Jakob

2010/2/22 cristiJ <cristi_ju...@yahoo.com>

>
> Hi Martin,
>
> Thnak you for replying, I'm starting to get a little desperate with this
> problem. I'm pretty sure the config files are proper. This is part of my
> web.xml :
>
> <context-param>
>        <param-name>javax.faces.FACELETS_LIBRARIES</param-name>
>        <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
> </context-param>
>
> which points to this tomahawk.taglib.xml file :
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <facelet-taglib
>    xmlns="http://java.sun.com/xml/ns/javaee";
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>        http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd";
>    version="2.0">
>
>    <namespace>http://myfaces.apache.org/tomahawk</namespace>
>    <tag>
>        <tag-name>inputFileUpload</tag-name>
>        <component>
>
> <component-type>org.apache.myfaces.HtmlInputFileUpload</component-type>
>            <renderer-type>org.apache.myfaces.FileUpload</renderer-type>
>        </component>
>    </tag>
>
> </facelet-taglib>
>
>
>
> Martin Monshausen-2 wrote:
> >
> > Hi,
> > could you please post your config files?
> >
> > In my opinion there is a configuration problem which avoids the container
> > to process your facelet...
> >
> > Yours,
> >
> > Martin
> >
> > ________________________________
> >
> > Von: cristiJ [mailto:cristi_ju...@yahoo.com]
> > Gesendet: Mo 22.02.2010 16:48
> > An: users@myfaces.apache.org
> > Betreff: Stuck making JSF 2.0 work with MyFaces
> >
> >
> >
> >
> > 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.
> >
> >
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Stuck-making-JSF-2.0-work-with-MyFaces-tp27689327p27690169.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to