I would like to have URLs that look like static links although they are dynamic 
links.

I.e: something like 'www.example.com/products/12345.html' where 12345 is the 
product id. That is all requests for '/products/xyz.html' get mapped to 
'/products/showProduct.seam?productId=xyz'.

Normally i would do that with a servlet filter but i was wondering if there's 
some seam built-in magic to do that automagically?!

I.e. by configuring something in pages.xml like:
<page view-id="/products/#{productId}.html" target="/products/showProduct.seam" 
/>
Which sets a request scoped variable 'productId' so i can reference it in the 
JSF page.

Is something like this possible? If yes: how? If not what do you think about it 
and whats the current best practice for it?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988017#3988017

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988017
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to