I have a weird problem with PrettyFaces:
When combining a transient view (<f:view transient="true" />
), named parameters in my pretty-config.xml
(<pattern value="/document/#{id}" />
), I get the following warning in my <h:messages />
:
@ViewScoped beans are not supported on stateless views
The warning disappears as soon as I remove the #{id}
from my pattern. I think that, somehow, PrettyFaces stores some state in the viewscope when using named parameters and JSF does not like it inside a transient view.
Is it a bug?
The problem seems to come from a bug in the JSF implementation.
See those 2 links: