Re: Passing a query-param by annotation

Splash Forums PrettyFaces Users Passing a query-param by annotation Re: Passing a query-param by annotation

#22339

Tony Herstell
Participant

Hi Christian,

The message is being stuffed, by the JSF Exception handler override class I had to provide, into the request map so the “error” page can access it through el…

In Exception Override bean:

Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
requestMap.put("exception", messageToReturn);

On error page:

<div class="error">
<h:outputText escape="false" value="#{exception}" />
</div>

I do pass “params” elsewhere

@SuppressWarnings("unused")
@URLQueryParameter("cid")
private String cid;

but this is an odd case…