webtier@glassfish.java.net

Allow for pulling view params from the path instead of the query string?

From: <webtier_at_javadesktop.org>
Date: Thu, 05 Aug 2010 16:28:03 PDT

I know that using f:metadata and f:viewParam I can get parameters from the request's query string and bind them to some bean property. What if I would like to pull it from the URL itself?

For instance, I could do it with a URL like this:

http://my.server.com/my/page.xhtml?action=delete&id=12345

Is there any way to do it like this instead?

http://my.server.com/12345/delete/results.xhtml

Where 12345 and 'delete' would be pulled? Basically matching a URL pattern like
http://my.server.com/{id}/{action}/results.xhtml

Would I have to implement a custom ResourceResolver to do that?

Thanks,
Joel
[Message sent by forum member 'jweight']

http://forums.java.net/jive/thread.jspa?messageID=479461