dev@javaserverfaces.java.net

Does JSF need request forward?

From: Edward Burns <edward.burns_at_oracle.com>
Date: Fri, 25 Oct 2013 09:05:02 -0700

>>>>> On Thu, 24 Oct 2013 08:34:41 +0000 (UTC), Yuval said:

Y> Does JSF need request forward?
Y> When i access a page directly in JSF, the beans on the page are not
Y> tightly coupled to the client/session, and i get inconsistent values on
Y> the setXXX property methods. Only when i pass through a dummy page that
Y> forwards to my real page, the JSF beans work correctly.

Hello Yuval,

I'm answering this on dev_at_javaserverfaces.java.net. You'll get more
help there.

In the absence of more information than just your above text, if you are
accessing a page directly, without coming from another JSF page, then
you will be using an HTTP GET. In this case, any request parameters
must be on the URL as query parameters. In order for any setters to be
called in such a request, there must be an <f:metadata> section that
contains <f:viewParam> elements for each such parameter.

Please reply here and lets discuss more.

Ed
--