I have a page welcome.xhtml with
<h:link outcome="home" value="Welcome demo - Manager">
<f:param name="entryType" value="manager"/>
</h:link>
<h:link outcome="home" value="Welcome demo - Customer">
<f:param name="entryType" value="customer"/>
</h:link>
and then in home.xhtml
<f:view>
<f:metadata>
<f:viewParam id="entryType" name="entryType"
value="#{welcome.entryType}" required="true"
requiredMessage="The 'entryType' parameter is missing. Invalid access for this page ...">
</f:viewParam>
</f:metadata>
</f:view>
I use the links from welcome.jsf and access home.jsf page as I expected with the entryType param in the URL.
http://<host:port>/jsf2lab1/home.jsf?entryType=manager
I enter the data in one of the fields in home.jsf page . This field has the f:ajax behaviour .
The page does one normal run through the lifecycle .
The second run through the lifecycle shows the [b]requiredMessage [/b]from the f:viewParam although the param in the URL is still there .
[ My welcome bean is @RequestScoped. Tried with @SessionScope and still same issue.]
[Message sent by forum member 'movemountfuji' (movemountfuji_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=383363