We are using JavaServer Faces 2.2 (Mojarra 2.2.1) in our project. I noticed something odd. On a page called reporting.xhtml
where I use f:metadata
with the new f:viewAction
my browser, Safari in this case, shows the following query string:
reporting.jsf?jftfdi=&jffi=reporting%3Ffaces-redirect%3Dtrue
What wizardry is this? What are the parameters jftfdi and jiffi doing? What is their purpose?
It's part of the new JSF 2.2 feature as described by spec issue 949. Basically, it enables JSF to identify the client window. It's basically the same as
cid
in CDI's@ConversationScoped
andwindowId
in CODI's@ViewScoped
/@ViewAccessScoped
. This client window ID is in turn used by among others the new JSF 2.2@FlowScoped
scope as described by spec issue 730.The "What's new in JSF 2.2?" article of my fellow Arjan Tijms explains the need pretty clearly:
Apparently you've configured your application as such.
See also: