Re: Duplicated mapping id

Splash Forums PrettyFaces Users Duplicated mapping id Re: Duplicated mapping id

#21517

mika
Participant

i want to rephrase my configuration again:

1- i am using PrettyFaces 3.3.0 (through maven 2).

2- i configured the PrettyFaces filter in the web.xml as follows:

<filter>

<filter-name>Pretty Filter</filter-name>

<filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>Pretty Filter</filter-name>

<url-pattern>/*</url-pattern>

<dispatcher>FORWARD</dispatcher>

<dispatcher>REQUEST</dispatcher>

<dispatcher>ERROR</dispatcher>

</filter-mapping>

3- i am using spring to create my beans not jsf:

a- UserBean:

@Component(“user”)

@Scope(“request”)

@URLMappings(mappings = {

@URLMapping(id = “users”, pattern = “/users”, viewId = “/faces/users.xhtml”),

@URLMapping(id = “add”, pattern = “/add”, viewId = “/faces/add.xhtml”) })

public class UserBean {}

b- LoginBean:

@Component(“login”)

@Scope(“request”)

@URLMapping(id = “login”, pattern = “/login”, viewId = “/faces/login.xhtml”)

public class LoginBean {}

4- i don’t have the pretty-faces.config.xml file or any other configuration than mentioned above, maybe i am missing something.

hope that this may help.