View = ViewID by default (parameters are not part of the viewID). So
if you do the forwarding, you will have the same view. The only
difference will be your request parameters (name parameter) which you
can access from the view or backing beans.

On 11/9/06, Randahl Fink Isaksen <[EMAIL PROTECTED]> wrote:
I have a system which relies heavily on URL rewriting. The same JSF page
is used to serve different pages, for instance

request "/Products/Product 1" is forwarded to
"/productView.jsf?name=Product 1" and
request "/Products/Product 2" is forwarded to
"/productView.jsf?name=Product 2"

I have been wondering what consequences this has for MyFaces. I know
that according to JSF MyFaces is allowed to cache the views in session
scope and reuse them, but since I forward all requests to the same view,
I would like to know if MyFaces is able to tell the difference. Are both
of the above requests seen by MyFaces as the same view, or two different
views after the forwarding?

Randahl



Reply via email to