Como configurar o myfaces?

Olá pessoal!

Eu estou tentando de tudo para configurar o myfaces no netbeans. Mas não estou conseguindo. Já configurei os filtros do web.xml, já acrescentei os jars mas nada. Alguém já conseguiu?

Agradeço desde já!

tenta pegar um blank e importa ele

Como assim?

jsf-blank-Sun-RI

digita isso no google e baixe

importe ele dentro da sua ide, como um projeto qualquer

ele vai ter todas as estruturas necessarias para o desenvolvimento jah montadas, inclusive as bibliotecas

se continuar dando pau, verifique o seu server, ele pode conter alguma biblioteca q esteja dando conflito

Tava olhando esse projetinho e ele não tem a biblioteca do myfaces.

cara, lah tem a myfaces-impl-1.1.4 ?

e a myfaces claro ? tem q ter essas duas obrigatoriamente no lib do seu projeto.

[size=18]Diretamente de www.myfaces.org! É só dar uma lida![/size]

Using MyFaces in your own web application
Suggested step:

* Look at the compatibility list to find out if your servlet container is supported.

There are two possible ways to start off with MyFaces, one is to start from the example-app:

* If you want to have it simple, take the myfaces-X.X.X-examples.zip you downloaded before for looking at the examples, and extract the blank.war file (MyFaces binary)
* Rename the blank.war file to blank.zip, and extract this file - you have a working directory structure for a MyFaces application at hand after this step.

The second possibility is to download the core implementation and/or tomahawk (dependent on if you want to use the RI and the tomahawk components, or only MyFaces), and start from there:

* Alternatively, download the latest MyFaces binary release. You can download only the implementation (aka core) or the implementation and tomahawk.
* Copy all *.jar files into your WEB-INF/lib directory. Some of the jar-files are optional, you can find more info on: http://myfaces.apache.org/impl/dependencies.html and http://myfaces.apache.org/tomahawk/dependencies.html

After you have downloaded the necessary packages and setup your project hierarchy, do this:

* Make sure that there is no jsf-api.jar (i.e. Suns API implementation) in the classpath or in one of your container's shared lib directories (e.g. common/lib or shared/lib for Tomcat).
* Configure your webapp's web.xml file (see conf/web.xml for example and documentation)
* Add the following lines to your JSPs:
     [code]<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>[/code]

      [code]<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>[/code]

Using the MyFaces extensions (aka Tomahawk) in your own web application

* If you don't use the MyFaces implementation, you will need to add the file tomahawk.jar and its dependencies (see above) to your web-app directory.
* To be able to use the MyFaces extensions (aka Tomahawk) add the following line to your JSPs:
     [code] <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>[/code]

     [code]<%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>[/code]

  For using the Tomahawk components, it's also very important to setup the MyFaces Extensions-Filter. You find the explanations for doing this under: http://myfaces.apache.org/tomahawk/extensionsFilter.html 

Tutorials for getting started with JSF

* Core-Servlets JSF Tutorial by Marty Hall

Conseguiiiii! hahhaha. Valeu Tarcisio.
Agora! Ninguém sabe como colocar ele na lista de frameworks do netbeans?
Valeu febatata. Já vi isso mas eu não tenho inglês para entender isso. heheh. Mas um dia terei!

tools - Library Manager

Ali vc pode criar suas library e adicionar os jar’s nela

Não. Eu não quero criar as librarys. Eu quero que o myFaces seja uma das opções junto com o serverFaces e struts.