Re: Dynaview View Bean method not called

Splash Forums PrettyFaces Users Dynaview View Bean method not called Re: Dynaview View Bean method not called

#22438

I’m guessing DynaView is never called because you are specifying an invalid pattern:

<url-mapping id="form-map">
<pattern value="/*" />
<view-id value="#{forms.computeViewPath}" />
</url-mapping>

PrettyFaces uses regular expression patterns, so right now your pattern matches anything like, “/”, or “/////////////////////////////////”.

You should use this instead:

<pattern value="/.*" />

Note the extra ‘.’ character. This is the regular expression token for “match anything,” followed by ‘*’, which means, “zero or more times.”

Hope this helps.