Reply To: PrettyFaces: outbound rewriting broken on Rewrite

Splash Forums PrettyFaces Users PrettyFaces: outbound rewriting broken on Rewrite Reply To: PrettyFaces: outbound rewriting broken on Rewrite

#24848

I’ll try to summarize what I understood is the problem. So you say with a mapping like this:


<url-mapping id="someId">
  <pattern value="/foobar" />
  <view-id value="/faces/foobar.xhtml" />
</url-mapping>

and a view parameter like this:


<f:metadata>
  <o:viewParam name="id" value="#{someBean.someId}" />
</f:metadata>

It works if you access:

/faces/foobar.xhtml?id=123

But it does not work for:

/foobar?id=123

Is this correct?

Could you try a standard f:viewParam instead of o:viewParam?

Could you also check what this statements returns for both URLs?

FacesContext.getCurrentInstance().getExternalContext().getRequestParameterValuesMap().get("id");