Bruno, I work with JBoss-IDE 1.5M2 but does not work correctly ... I try WTP and I'm very happy because work fine, Thanks; but, again I have a little problem, when I try to define a configuration of JBoss 4.0.x, the Server view does not let me, in this tab only permit make a configuration of JBoss 3.2.3. I see this URL: but, again doesn't work:
http://mail-archive.objectweb.org/lomboz/2005-05/msg00003.html https://bugs.eclipse.org/bugs/show_bug.cgi?id=90100 I am going to look for a little more and I will be informing to them 2005/7/23, Bruno Aranda <[EMAIL PROTECTED]>: > Fabio, apart from the 'extensionsFilter' which is missing in your > web.xml file I don't see nothing strange in your code. Do you use any > web development plugin. I use the WTP (Eclipse Web Tools Platform > Project, http://eclipse.org/webtools/index.html) but other plugins are > available (look the section "Creation of a new Webapp" in this page of > the wiki -> http://wiki.apache.org/myfaces/Eclipse_IDE). This will > make everything work ok... > > Regards, > > Bruno > > 2005/7/23, fabio quimbay <[EMAIL PROTECTED]>: > > Greetings ... > > > > I will try to explain what I make to create a project with myFaces ... > > At the moment, I am working with: > > > > jdk1.5.0_04 > > eclipse 3.1 final > > myfaces 1.0.9 (20050720) > > > > I create a project with this structure: > > > > myfaces-test > > |_ bin > > |_ lib > > | |_ myfaces-api.jar > > | |_ myfaces-impl.jar > > | |_ tomahawk.jar > > |_ src > > | |_ sp > > | |_ myfaces > > | |_ test > > | |_ MyFacesTest.java > > |_ web > > | |_ WEB-INF > > | | |_ build.xml > > | | |_ faces-config.xml > > | | |_ web.xml > > | |_ index.jsp > > | |_ test.jsp > > |_ .classpath > > |_ .project > > |_ build.xml > > > > The content of each file is: > > > > ###################### > > ## MyFacesTest.java ## > > ###################### > > > > package sp.myfaces.test; > > > > import javax.faces.event.AbortProcessingException; > > import javax.faces.event.ActionEvent; > > import javax.faces.event.ActionListener; > > > > public class MyFacesTest implements ActionListener { > > > > public void processAction(ActionEvent event) throws > > AbortProcessingException { > > System.out.println("hola ..."); > > } > > } > > > > ####################### > > ## WEB-INF/build.xml ## > > ####################### > > > > <project name="web" default="deploy" basedir="."> > > > > <!-- set global properties for this build --> > > <property file="build.properties"/> > > <property name="dist" value="../../dist" /> > > <property name="web" value="../" /> > > <property name="bin.dir" value="bin"/> > > <property name="project.dir" value="../../"/> > > <property name="war" value="myfaces-test"/> > > <property environment="env" /> > > <property name="jboss.home" value="${env.JBOSS_HOME}" /> > > <property name="jboss.configuration" value="siglos" /> > > <property name="jboss.server" > > value="${jboss.home}/server/${jboss.configuration}" /> > > <property name="jboss.deploy" value="${jboss.server}/deploy" /> > > > > <target name="init"> > > <!-- Create the dist directory structure used by compile > > and copy the deployment descriptors into it--> > > <mkdir dir="${dist}"/> > > <mkdir dir="${dist}/WEB-INF"/> > > <mkdir dir="${dist}/WEB-INF/classes"/> > > <mkdir dir="${dist}/WEB-INF/lib"/> > > <copy todir="${dist}"> > > <fileset dir="${web}"> > > <include name="**/*.*"/> > > <exclude name="**/build.xml"/> > > </fileset> > > </copy> > > <copy todir="${dist}/WEB-INF/classes"> > > <fileset dir="${project.dir}/${bin.dir}"> > > <include name="**/*.*"/> > > </fileset> > > </copy> > > <copy todir="${dist}/WEB-INF/lib"> > > <fileset dir="${project.dir}/lib"> > > <include name="**/*.*"/> > > </fileset> > > </copy> > > </target> > > > > <target name="deploy" depends="init" > > > <!-- Create the distribution directory --> > > <delete file="${war}.war" failonerror="false" /> > > <jar jarfile="${war}.war" basedir="${dist}"/> > > <copy file="${war}.war" todir="${jboss.deploy}"/> > > <delete file="${war}.war" failonerror="false" /> > > <delete dir="${dist}" failonerror="false" /> > > </target> > > > > </project> > > > > ############################## > > ## WEB-INF/faces-config.xml ## > > ############################## > > > > <?xml version="1.0"?> > > > > <!DOCTYPE faces-config PUBLIC > > "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN" > > "http://java.sun.com/dtd/web-facesconfig_1_0.dtd"> > > > > <faces-config> > > > > <managed-bean> > > <managed-bean-name>test</managed-bean-name> > > <managed-bean-class>sp.myfaces.test</managed-bean-class> > > <managed-bean-scope>request</managed-bean-scope> > > </managed-bean> > > > > </faces-config> > > > > ##################### > > ## WEB-INF/web.xml ## > > ##################### > > > > <?xml version="1.0"?> > > > > <!DOCTYPE web-app PUBLIC > > "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > > > <web-app> > > > > <description>debug web.xml</description> > > > > <context-param> > > <param-name>javax.faces.CONFIG_FILES</param-name> > > <param-value> > > /WEB-INF/faces-config.xml > > </param-value> > > <description> > > Comma separated list of URIs of (additional) faces config files. > > (e.g. /WEB-INF/my-config.xml) > > See JSF 1.0 PRD2, 10.3.2 > > </description> > > </context-param> > > > > <context-param> > > <param-name>javax.faces.STATE_SAVING_METHOD</param-name> > > <param-value>server</param-value> > > <description> > > State saving method: "client" or "server" (= default) > > See JSF Specification 2.5.2 > > </description> > > </context-param> > > > > <context-param> > > <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name> > > <param-value>true</param-value> > > <description> > > This parameter tells MyFaces if javascript code should be > > allowed in the > > rendered HTML output. > > If javascript is allowed, command_link anchors will have > > javascript code > > that submits the corresponding form. > > If javascript is not allowed, the state saving info and > > nested parameters > > will be added as url parameters. > > Default: "true" > > </description> > > </context-param> > > > > <context-param> > > <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name> > > <param-value>false</param-value> > > <description> > > This parameter tells MyFaces if javascript code should be > > allowed in the > > rendered HTML output. > > If javascript is allowed, command_link anchors will have > > javascript code > > that submits the corresponding form. > > If javascript is not allowed, the state saving info and > > nested parameters > > will be added as url parameters. > > Default: "false" > > > > Setting this param to true should be combined with > > STATE_SAVING_METHOD "server" for > > best results. > > > > This is an EXPERIMENTAL feature. You also have to enable > > the detector filter/filter mapping below to get > > JavaScript detection working. > > </description> > > </context-param> > > > > <context-param> > > <param-name>org.apache.myfaces.PRETTY_HTML</param-name> > > <param-value>true</param-value> > > <description> > > If true, rendered HTML code will be formatted, so that it > > is "human readable". > > i.e. additional line separators and whitespace will be > > written, that do not > > influence the HTML code. > > Default: "true" > > </description> > > </context-param> > > > > <context-param> > > <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> > > <param-value>true</param-value> > > <description> > > If true, a javascript function will be rendered that is > > able to restore the > > former vertical scroll on every request. Convenient > > feature if you have pages > > with long lists and you do not want the browser page to > > always jump to the top > > if you trigger a link or button action that stays on the same > > page. > > Default: "false" > > </description> > > </context-param> > > > > <!-- Listener, that does all the startup work (configuration, init). --> > > <listener> > > > > <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> > > </listener> > > > > <!-- Faces Servlet --> > > <servlet> > > <servlet-name>Faces Servlet</servlet-name> > > <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> > > <load-on-startup>1</load-on-startup> > > </servlet> > > > > <!-- extension mapping --> > > <servlet-mapping> > > <servlet-name>Faces Servlet</servlet-name> > > <url-pattern>*.jsf</url-pattern> > > </servlet-mapping> > > > > <!-- Welcome files --> > > > > <welcome-file-list> > > <welcome-file>index.jsf</welcome-file> > > <welcome-file>index.jsp</welcome-file> > > <welcome-file>index.html</welcome-file> > > </welcome-file-list> > > > > </web-app> > > > > ############### > > ## index.jsp ## > > ############### > > > > <% response.sendRedirect("test.jsf"); %> > > > > ############## > > ## test.jsp ## > > ############## > > > > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> > > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> > > <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%> > > > > <html> > > <body> > > <f:view> > > <h:panelGroup id="body"> > > <h:form id="q_form" name="q_form"> > > <h:commandButton id="button1" value="UNO" action="none"> > > <f:actionListener type="sp.myfaces.test.MyFacesTest" > > ></f:actionListener> > > </h:commandButton> > > </h:form> > > </h:panelGroup> > > </f:view> > > </body> > > </html> > > > > ################ > > ## .classpath ## > > ################ > > > > <?xml version="1.0" encoding="UTF-8"?> > > <classpath> > > <classpathentry kind="src" path="src"/> > > <classpathentry kind="con" > > path="org.eclipse.jdt.launching.JRE_CONTAINER"/> > > <classpathentry kind="lib" path="lib/myfaces-api.jar"/> > > <classpathentry kind="lib" path="lib/myfaces-impl.jar"/> > > <classpathentry kind="lib" path="lib/tomahawk.jar"/> > > <classpathentry kind="output" path="bin"/> > > </classpath> > > > > ############# > > ## .projct ## > > ############# > > > > <?xml version="1.0" encoding="UTF-8"?> > > <projectDescription> > > <name>myfaces-test</name> > > <comment></comment> > > <projects> > > </projects> > > <buildSpec> > > <buildCommand> > > <name>org.eclipse.jdt.core.javabuilder</name> > > <arguments> > > </arguments> > > </buildCommand> > > </buildSpec> > > <natures> > > <nature>org.eclipse.jdt.core.javanature</nature> > > </natures> > > </projectDescription> > > > > ############### > > ## build.xml ## > > ############### > > > > <project name="myfaces-test" default="deploy" basedir="."> > > > > > > > > <!-- ========== --> > > > > <!-- PROPERTIES --> > > > > <!-- ========== --> > > > > > > > > <property environment="env" /> > > > > <property name="jboss.home" value="${env.JBOSS_HOME}" /> > > > > <property name="jboss.configuration" value="siglos" /> > > > > <property name="jboss.server" > > value="${jboss.home}/server/${jboss.configuration}" /> > > > > <property name="jboss.deploy" value="${jboss.server}/deploy" /> > > > > > > > > <!-- ================= --> > > > > <!-- DEPLOY TARGETS --> > > > > <!-- ================= --> > > > > > > > > <target name="deploy" description="deploys the modules jar files into > > jboss"> > > > > <ant antfile="web/WEB-INF/build.xml" target="deploy" > > inheritall="false" /> > > > > </target> > > > > > > > > <!-- ============= --> > > > > <!-- JBOSS TARGETS --> > > > > <!-- ============= --> > > > > > > > > <target name="configure.jboss-4.0.1"> > > > > <copy todir="${jboss.server}"> > > > > <fileset dir="${jboss.home}/server/default"/> > > > > </copy> > > > > </target> > > > > > > > > <!-- ================== --> > > > > <!-- UNDEPLOY TARGETS --> > > > > <!-- ================== --> > > > > > > > > <target name="undeploy" description="undeploys the modules jar files > > into jboss"> > > > > <delete file="${jboss.deploy}/myfaces-test.war"/> > > > > </target> > > > > > > > > </project> > > > > > > Bruno, thanks for its help and to any person of the list that can > > collaborate to solve this incoveniente to me. > > > > 2005/7/22, Bruno Aranda <[EMAIL PROTECTED]>: > > > I do actually. I use eclipse 3.1 and always in the myfaces bleeding > > > edge without problems. Do you have the jars in the eclipse classpath? > > > > > > Regards, > > > > > > Bruno > > > > > > 2005/7/22, fabio quimbay <[EMAIL PROTECTED]>: > > > > Thanks Bruno, .. > > > > > > > > But semicolns (;) was a write error at the time of writing the mail; > > > > in my project I have the lines well, but it follows without working > > > > correctly. Somebody works with Eclipse and myFaces and him to > > > > presented/displayed this problem? Somebody has been able to solve it?. > > > > > > > > The truth is enough the lost time when trying to know that attributes > > > > have a <tag>. A long time ago with an old version of eclipse 3.0.x and > > > > myfaces 1.0.7 worked correctly, but now it does not work. > > > > > > > > Again, thanks for your help > > > > > > > > 2005/7/22, Bruno Aranda <[EMAIL PROTECTED]>: > > > > > Fabio, remove the semicolons (;) after the uri from the taglib > > > > > declarations... > > > > > > > > > > <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%> > > > > > <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%> > > > > > <%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x"%> > > > > > > > > > > should be: > > > > > > > > > > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> > > > > > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> > > > > > <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%> > > > > > > > > > > Regards, > > > > > > > > > > Bruno > > > > > > > > > > 2005/7/21, fabio quimbay <[EMAIL PROTECTED]>: > > > > > > Greettings, Dennis ... > > > > > > > > > > > > It will leave jars in WEB-INF/lib according to as it describes the > > > > > > especficaci�n to it, the truth didn't know it; although I continue > > > > > > with the problem of not being able to load tags from a page JSP in > > > > > > eclipse 3.1. I have been enough time with this restlessness and not > > > > > > yet I have managed to find a solution. Thanks. > > > > > > > > > > > > 2005/7/21, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > Are the jar files from the standard release? > > > > > > > > > > > > > > If so, remove the myfaces tld files and the taglib elements from > > > > > > > the DD. We > > > > > > > don't have to declare TLs anymore. The new spec mandates that > > > > > > > the container > > > > > > > to automatically make TLs available ... if they are located in > > > > > > > certain > > > > > > > places. Those certain places include inside the manifest of a > > > > > > > jar that is > > > > > > > inside /WEB-INF/lib , which you have done already by placing the > > > > > > > myfaces > > > > > > > jars under lib. I don't think this will help you with eclipse, > > > > > > > but it will > > > > > > > save you a second post to the list. > > > > > > > > > > > > > > Dennis Byrne > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > fabio quimbay > > > > > > > > > > > > > > > > > > > > > > > -- > > > > fabio quimbay > > > > > > > > > > > > > -- > > fabio quimbay > > > -- fabio quimbay