I can't get the default Seam Resource Bundle to work on my facelets pages. When I try to display text from the messages.properties file using either the inline #{messages.blah.hello} or by using the the two forms of the h:outputText value's, nothing appears. Any ideas? I'm sure its something trivial, I just can't figure it out.
You can see by the server log that it could not find the seam component: messages. Is that the problem? What causes that? I'm running Seam 1.1.GA in JBoss 4.0.5 with the Sun RI Thanks - Jess blah.xhtml | <?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" xml:lang="en" lang="en" | xmlns:h="http://java.sun.com/jsf/html" | xmlns:f="http://java.sun.com/jsf/core" | xmlns:s="http://jboss.com/products/seam/taglib" | xmlns:ui="http://java.sun.com/jsf/facelets" | > | <f:view> | <head> | <title>Title</title> | </head> | <body> | inline text: #{messages.blah.hello}<br/> | h:outputText, messages.blah.hello: <h:outputText value="#{messages.blah.hello}"/><br/> | h:outputText, messages['blah.hello']: <h:outputText value="#{messages['blah.hello']}"/><br/> | </body> | </f:view> | </html> | /WEB-INF/classes/messages.properties | blah.hello=hello there | server.log | 2007-01-15 14:24:20,609 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: messages | 2007-01-15 14:24:20,609 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.expressions | 2007-01-15 14:24:20,609 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.expressions | 2007-01-15 14:24:20,609 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.expressions | 2007-01-15 14:24:20,609 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.expressions | 2007-01-15 14:24:20,609 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.expressions | 2007-01-15 14:24:20,609 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.expressions | 2007-01-15 14:24:20,625 DEBUG [org.jboss.seam.Component] seam component not found: messages | 2007-01-15 14:24:20,625 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name | 2007-01-15 14:24:20,625 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: messages | 2007-01-15 14:24:20,625 DEBUG [org.jboss.seam.Component] seam component not found: messages | 2007-01-15 14:24:20,625 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name | 2007-01-15 14:24:20,625 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.afterPhase | /WEB-INF/faces-config.xml | <faces-config> | <application> | <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler> | </application> | <lifecycle> | <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener> | </lifecycle> | </faces-config> | /WEB-INF/components.xml | <components> | <component name="org.jboss.seam.core.init"> | <property name="debug">true</property> | </component> | <component class="org.jboss.seam.core.Microcontainer" | installed="false"/> | </components> | /WEB-INF/web.xml | | <listener> | <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> | </listener> | | <filter> | <filter-name>Seam Redirect Filter</filter-name> | <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class> | </filter> | | <filter-mapping> | <filter-name>Seam Redirect Filter</filter-name> | <url-pattern>*.seam</url-pattern> | </filter-mapping> | | <!-- JSF 1.2 RI --> | <listener> | <listener-class>com.sun.faces.config.ConfigureListener</listener-class> | </listener> | <!-- MyFaces --> | <!-- | <listener> | <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> | </listener> | --> | <context-param> | <param-name>javax.faces.STATE_SAVING_METHOD</param-name> | <param-value>client</param-value> | </context-param> | | <context-param> | <param-name>javax.faces.DEFAULT_SUFFIX</param-name> | <param-value>.xhtml</param-value> | </context-param> | | <!-- facelets --> | <context-param> | <param-name>facelets.DEVELOPMENT</param-name> | <param-value>true</param-value> | </context-param> | | <context-param> | <param-name>javax.faces.CONFIG_FILES</param-name> | <param-value>/WEB-INF/navigation.xml</param-value> | </context-param> | | <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>*.seam</url-pattern> | </servlet-mapping> | | </web-app> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001897#4001897 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001897 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user