users@glassfish.java.net

GlassFish 3 and faces-config

From: <glassfish_at_javadesktop.org>
Date: Tue, 31 Aug 2010 09:57:46 PDT

Hi,

i'm quite new to java ee and glass fish and currently i'm doing some simple jsf tutorials. I developed an xhtml page and a backing beans. My code works as long as i use the @ManagedBean annotation. When i try to use a faces-config.xml instead of annotations it does not work anymore (the server outputs an unevaluated string like #{test.output}). Is there a special GlasFish configuration needed? Thanks for your help.

Just in case... here is my faces-config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
    <managed-bean>
        <managed-bean-name>test</managed-bean-name>
        <managed-bean-class>mypackage.Test</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
</faces-config>
[Message sent by forum member 'lovebongo']

http://forums.java.net/jive/thread.jspa?messageID=481372