This content has been marked as final.
Show 5 replies
-
1. Re: Problem with menuItem (not rendered)
ilya_shaikovsky Jul 9, 2009 5:51 AM (in response to ttrepper)Seems should just works. Any js errors? Any resources failed to load?
-
2. Re: Problem with menuItem (not rendered)
ttrepper Jul 9, 2009 6:26 AM (in response to ttrepper)No, sorry - no errors, no failed resources. Page loads normally. If it helps, I can post the html-output.
Could it be cecause of the page-header? Transitional? Page-Syntax not using ui:...
The libs are placed in tomcat-webapp-webinf-libs -
3. Re: Problem with menuItem (not rendered) (still open)
ttrepper Jul 10, 2009 1:34 AM (in response to ttrepper)The problem still exists. I also tried 3.3.0 and 3.1.6 and the problem war reproducable. Am I missing libraries?
Under WebContent-WebINF-lib I have:
commons-beanutils-1.8.0.jar
commons-collections-3.2.1.jar
commons-digester-2.0.jar
commons-logging-1.1.1.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
richfaces-api-3.3.1.GA.jar
richfaces-impl-3.3.1.GA.jar
richfaces-ui-3.3.1.GA.jar
themes-3.3.1.GA.jar
Can anybody reproduce my problem?
My web.xml looks like this:<!-- Context-Parameter --> <context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>blueSky</param-value> </context-param> <context-param> <!-- MUST be set to client, because of browser-back-button-problem, which means, that the two UI-Root-IDs (when stored on server) are not the same, when a browser-back-button is used. --> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</param-value> </context-param> <!-- Faces-config --> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config.xml</param-value> </context-param> <!-- Faces --> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> <!-- Filter --> <filter> <display-name>RichFaces Filter</display-name> <filter-name>richfaces</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>richfaces</filter-name> <servlet-name>Faces Servlet</servlet-name> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping> <!-- Welcome files --> <welcome-file-list> <welcome-file>index.jsf</welcome-file> </welcome-file-list>
Any help appreciated. Thanks a lot
Thomas -
4. Re: Problem with menuItem (not rendered)
mvitenkov Jul 10, 2009 8:55 AM (in response to ttrepper)ttrepper
I found two bugs in your code:
1) There is no "label" facet for rich:menuItem, use "icon" instead.
2) The 2nd facet have two childs.<f:facet name="label"> <h:graphicImage value="/icons/house.png" styleClass="menuIcon" rendered="true"/> <h:outputText value="Logout" /> </f:facet>
Try to replace with following code:<rich:menuItem value="Logout" id="navMenuItemLogout"> <f:facet name="icon"> <h:graphicImage value="/pics/error.gif" styleClass="menuIcon" rendered="true" /> </f:facet> </rich:menuItem>
If it will not help you - let us know. -
5. Re: Problem with menuItem (not rendered)
ilya_shaikovsky Jul 10, 2009 10:18 AM (in response to ttrepper)about 1) icon facet should not be used instead of label. It defines icon. And label part should be defined by just nested components