Re: How can handle URL ?

Splash Forums PrettyFaces Users How can handle URL ? Re: How can handle URL ?

#21347

Your first pattern will probably not match because path parameters don’t match / in the default configuration and you are missing the leading slash as the first part of the URL. Try:

<pattern>/#{danhMucController.category}</pattern>

You second pattern is missing the name of the property to inject the value into. You need to write something like:

<pattern>/#{ /[a-z-_:]+/ danhMucController.category }/</pattern>

See the documentation for details:

http://ocpsoft.com/docs/prettyfaces/3.3.0/en-US/html/Configuration.html#config.pathparams.regex