Reply To: Executing first configured mapping of by default for all other actions

Splash Forums PrettyFaces Users Executing first configured mapping of by default for all other actions Reply To: Executing first configured mapping of by default for all other actions

#27091

The problem is that your mappings overlap. Imagine an URL like /contextpath/3/. How should PrettyFaces know which of the patterns should match? It cannot!

You have basically two options. Either use custom regular expressions to ensure that for each URL only the relevant mapping matches.

See: http://www.ocpsoft.org/docs/prettyfaces/3.3.3/en-US/html/Configuration.html#config.pathparams.regex

Or prefix your URL with something that makes the patterns unique:

<pattern value="/c/#{customerMBean.lookupId}/"/>
...
<pattern value="/a/#{mySearchMBean.addressId}/"/>
...