Re: View object not expiring for h:link with f:param when PrettyFaces enabled

Splash Forums PrettyFaces Users View object not expiring for h:link with f:param when PrettyFaces enabled Re: View object not expiring for h:link with f:param when PrettyFaces enabled

#20479

My first suggestion is going to be to avoid c:if whenever possible – they are compile time checks, not runtime checks.

I recommend using:

<h:panelGroup rendered="#{empty bookSessionBean.book}"> ... </h:panelGroup>

c:if will give you lots of problems in JSF2, including with AJAX, tables, and loops.

I may embarrass myself later with this statement, but I’m surprised that prettyfaces would change any behavior here. In fact, I’d go so far as to say that it actually cannot unless something is very wrong that I don’t know about. So I think the problem is not related to prettyfaces (strange though that you said it only occurs with prettyfaces enabled)

Hope this helps!

–Lincoln