Re: Seam security and pretty faces

Splash Forums PrettyFaces Users Seam security and pretty faces Re: Seam security and pretty faces

#21845

zee
Participant

Hey Christian,

I got security to work. It was an issue with an entity bean being in the wrong life cycle.

But the issue I don’t understand with Pretty faces is URL mapping. If I have this in Seam faces:

@ViewPattern("/homes/eventHome.xhtml")
@UrlMapping(pattern = "/event/#{eventId}")
EVENT_HOME,

When I go to localhost:8080/homes/eventHome.xhtml?eventId=99 the query param in backend bean gets set correctly. But when I use localhost:8080/event/99 the query param is not set in the backend.

Does Prettyfaces URL mapping work both ways; from xhtml view to rewritten URL and vice versa? Or do I have to create another mapping rule?

Users will be seeing /event/99 URL, so this the mapping I want to work with query param.

Thanks!