Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rewrite the URL

I have a small application built using Seam 2.2, Richfaces 3.3, JBoss 5.1.

Most of the page navigation adds the request parameters to the target URL. I would like to hide parameters to be hidden to the customer who is using the application (e.g. I would expect the URL to be something like "http://localhost:8080/books/Book.seam". The parameters (userId, orderId and cmId) are currently mapped to the backend bean via Book.page.xml.

How do I prevent the request parameters from showing up in the browser URL, as it also allows the customer to manipulate the URL.

We did look at seam URL re-writing feature, it talked about manipulating say the primary key id in a REST format, not sure how to accomplish something more complex like the above use case in a elegant fashion.

like image 941
Achaius Avatar asked Oct 15 '22 04:10

Achaius


1 Answers

PrettyFaces offers url-rewriting for JSF.

You can't, however, 'hide' the GET parameters. Unless you make them POST parameters. But all submissions are POST in JSF by default.

like image 186
Bozho Avatar answered Oct 27 '22 01:10

Bozho