I have simple jsf converter, which works fine and throws ConverterException(facesMsg)
exception when conversion failes.
However, when exception is thrown Seam debug page comes up rather than faces message being
show on jsf page using h:messages tag ?
| MyConverter.java
| ...
| if (conversionFailed) {
| FacesMessage facesMsg = new FacesMessage("Conversion error.",
String.format("Invalid member status %s.", ((String) value)));
| facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR);
| FacesMessages.instance().add(facesMsg);
|
| throw new ConverterException(facesMsg);
| }
|
|
| JSF Page
| ...
| <h:messages id="globalMessages" globalOnly="true"
layout="table" errorClass="message-error"
infoClass="message-info"/>
| ...
| ...
| <s:span id="source">
| <h:outputText value="#{clientHome.instance.source}"
converter="#{onlineConverters.memberSource}"></h:outputText>
| </s:span>
| ...
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102042#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...