Reply To: Dynamic view ID not working.

Splash Forums PrettyFaces Users Dynamic view ID not working. Reply To: Dynamic view ID not working.

#27055

Peter-TI
Participant

Hi Christian,

The dependencies are:


<dependencies>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>7.0</version>
            <scope>provided</scope>
        </dependency>
        <!--Pretty Faces-->
        <dependency>
            <groupId>org.ocpsoft.rewrite</groupId>
            <artifactId>rewrite-servlet</artifactId>
            <version>2.0.12.Final</version>
        </dependency>
        
        <dependency>
            <groupId>org.ocpsoft.rewrite</groupId>
            <artifactId>rewrite-config-prettyfaces</artifactId>
            <version>2.0.12.Final</version>
        </dependency>
        
    </dependencies>

The import statements in LoginBean are:


import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.inject.Named;

I was using @ManagedBean and @Named becuase of an example in a book (Core JavaServer Faces).It was actually ment as a conjunction,I guess :S.
This is my first Java EE project.:)

I Guess @Named is a CDI bean and @ManagedBean is a JSF bean.
This is probably my mistake I gues i would rather use @Named?

Thank you.