I'm trying to use @PostConstruct with MyFaces 1.2.0 as described by Jacob
Hookom:

http://weblogs.java.net/blog/jhook/archive/2007/05/jsf_12_ri_backi.html

I added the javax.annotation dependency to my pom.xml:

    <dependency>
        <groupId>javax.annotation</groupId>
        <artifactId>jsr250-api</artifactId>
        <version>1.0</version>
    </dependency>

My managed bean looks as follows:

    <managed-bean>
        <managed-bean-name>userForm</managed-bean-name>
        <managed-bean-class>org.appfuse.web.UserForm</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
            <property-name>id</property-name>
            <value>#{param.id}</value>
        </managed-property>
        <managed-property>
            <property-name>userManager</property-name>
            <value>#{userManager}</value>
        </managed-property>
    </managed-bean>

If I fire up a debugger, my @PostConstruct method gets hit, but none of my
managed properties have been initialized. Even if I pass in ?id=12.

I'm using the latest release of the maven-jetty-plugin (6.1H.5-beta). 

Any ideas?

Thanks,

Matt


-- 
View this message in context: 
http://www.nabble.com/%40PostConstruct---managed-properties-not-set-first-tf4337121.html#a12353855
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to