user3753221
user3753221

Reputation: 21

JSF URL Routing

Hi is there option in JSF to generate link like that:

localhost:8080/something/:myParamHere

Closest thing I've achieved with this was URL like:

localhost:8080/something?id=55

but I need:

localhost:8080/something/55

Upvotes: 2

Views: 870

Answers (1)

Tires
Tires

Reputation: 1602

You can rewrite request parameters to nearly any URL with Pretty Faces (http://ocpsoft.org/prettyfaces/).

Example:

@URLMapping(id = "process", pattern = "/process/#{processId}", viewId = "/faces/page/process.xhtml")

Upvotes: 1

Related Questions