0

In social networks like facebook you have links like https://www.<socialNetwork>.com/<userName>/about for example.

How can this be done with JSF? I mean, the way I am doing now is with parameters (which is quite ugly):

https://www.<socialNetwork>.com?userName=<userName>&page=about

I want the page to be bookmarkable, so I need the parameters in the url.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Aliuk
  • 1,249
  • 2
  • 17
  • 32

1 Answers1

1

You need to use some kind of URL Rewriter which converts your application URLs with parameters into something nicer. I can recommend either Pretty Faces or Rewrite, you can see comparison of those two here.

Petr Mensik
  • 26,874
  • 17
  • 90
  • 115