Adam, I beg your pardon.
Your suggestion IS very cool. I had some wrong experimental (!) code in my test page. Now everything is going smooth. Thank you again. Fab. On Thursday 18 January 2007 22:22, Fabrizio Boco wrote: > Adam, > > thank you for your answer. > > I your suggestion seams very cool but I still have the same problem. > > I have attached my web.xml file hoping in your further help. > > Tank you so much. > > Fab. > > <?xml version="1.0" encoding="UTF-8"?> > <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > > <context-param> > <param-name>facelets.SKIP_COMMENTS</param-name> > <param-value>true</param-value> > </context-param> > > <context-param> > <param-name>javax.faces.DEFAULT_SUFFIX</param-name> > <param-value>.xhtml</param-value> > </context-param> > <context-param> > <param-name>facelets.REFRESH_PERIOD</param-name> > <param-value>2</param-value> > </context-param> > <context-param> > <param-name>facelets.DEVELOPMENT</param-name> > <param-value>true</param-value> > </context-param> > <context-param> > <param-name>javax.faces.STATE_SAVING_METHOD</param-name> > <param-value>client</param-value> > </context-param> > <context-param> > <param-name>com.sun.faces.validateXml</param-name> > <param-value>true</param-value> > </context-param> > <context-param> > <param-name>com.sun.faces.verifyObjects</param-name> > <param-value>true</param-value> > </context-param> > <context-param> > > <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-nam >e> <param-value>com.sun.facelets.FaceletViewHandler</param-value> > </context-param> > <!-- Seam --> > > <listener> > > <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> > </listener> > > <!-- MyFaces --> > > <listener> > > <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</li >stener-class> </listener> > > <servlet> > <servlet-name>Faces Servlet</servlet-name> > <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > > <filter> > <filter-name>Seam Exception Filter</filter-name> > > <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class> > </filter> > > <filter-mapping> > <filter-name>Seam Exception Filter</filter-name> > <url-pattern>*.seam</url-pattern> > </filter-mapping> > > > <!-- resource loader servlet --> > > <servlet> > <servlet-name>resources</servlet-name> > > <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet- >class> </servlet> > > <servlet-mapping> > <servlet-name>Faces Servlet</servlet-name> > <url-pattern>*.jsf</url-pattern> > </servlet-mapping> > > <servlet-mapping> > <servlet-name>resources</servlet-name> > <url-pattern>/adf/*</url-pattern> > </servlet-mapping> > <!-- Faces Servlet Mapping --> > <servlet-mapping> > <servlet-name>Faces Servlet</servlet-name> > <url-pattern>*.seam</url-pattern> > </servlet-mapping> > > <filter> > <filter-name>trinidad</filter-name> > > <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-cla >ss> </filter> > > <filter-mapping> > <filter-name>trinidad</filter-name> > <servlet-name>Faces Servlet</servlet-name> > </filter-mapping> > > <welcome-file-list> > <welcome-file>Index.jsp</welcome-file> > </welcome-file-list> > > <context-param> > <param-name>org.jboss.seam.core.init.debug</param-name> > <param-value>true</param-value> > </context-param> > > </web-app> > > On Thursday 18 January 2007 17:37, Adam Winer wrote: > > From http://wiki.java.net/bin/view/Projects/FaceletsFAQ: > > > > How do I prevent HTML comments from being rendered? > > Add the following to your web.xml: > > <context-param> > > <param-name>facelets.SKIP_COMMENTS</param-name> > > <param-value>true</param-value> > > </context-param> > > > > -- Adam > > > > On 1/17/07, Fabrizio Boco <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > I am newbie to trinidad that I am using with Jboss. > > > > > > I have an xhtml page with the following code: > > > .......... > > > <f:view> > > > <f:loadBundle basename="messages" var="msgs" /> > > > <br/> > > > <h:form> > > > <div class="menuBar"> > > > <tr:navigationPane hint="bar" > > > > <tr:commandNavigationItem immediate="true" text="...." > > > action="....." /> <tr:commandNavigationItem immediate="true" > > > text="...." action="....." /> <tr:commandNavigationItem > > > immediate="true" text="...." action="....." /> </tr:navigationPane> > > > </div> > > > ............ > > > > > > and everything goes well. > > > > > > Since the page is generated by an application, I have to put some > > > comments as placeholders for custom code: > > > > > > <f:loadBundle basename="messages" var="msgs" /> > > > <br/> > > > <h:form> > > > <div class="menuBar"> > > > <tr:navigationPane hint="bar" > > > > <tr:commandNavigationItem immediate="true" > > > text="...." action="....." /> <!-- Start comment --> > > > <!-- End comment --> > > > <tr:commandNavigationItem immediate="true" > > > text="...." action="....." /> <tr:commandNavigationItem > > > immediate="true" text="...." action="....." /> </tr:navigationPane> > > > </div> > > > ............ > > > > > > If I put the comments I get the following error message (on the jboss > > > console) when the page is rendered: > > > > > > 21:55:22,076 ERROR [STDERR] Jan 17, 2007 9:55:22 PM > > > org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPane > > >Re nderer renderContent > > > SEVERE: Warning: illegal component hierarchy detected, expected > > > UIXCommand but found another type of component instead. > > > java.lang.ClassCastException: com.sun.facelets.tag.ui.ComponentRef > > > > > > Question are: > > > > > > 1) Can I use comments into commandNavigationItem and if yes how I have > > > to use them > > > > > > 2) If I can't use comments is there any tag that can I use as place > > > holder ? > > > > > > Please, help me !!! > > > > > > Thank you > > > > > > Fab.
