Re: SEVERE: JSF1005: Cannot instantiate validator of type shortConverter

Splash Forums PrettyFaces Users SEVERE: JSF1005: Cannot instantiate validator of type shortConverter Re: SEVERE: JSF1005: Cannot instantiate validator of type shortConverter

#23308

jllado
Participant

Thank you for responses!

I have tried to put my validator-method even into request scoped bean but it does not make any difference.

I still have this

WARNING: StandardWrapperValve[default]: PWC1406: Servlet.service() for servlet default threw exception
javax.enterprise.context.ContextNotActiveException: Conversation Context not active when method called on conversation Transient conversation
at org.jboss.weld.context.conversation.ConversationImpl.verifyConversationContextActive(ConversationImpl.java:197)
at org.jboss.weld.context.conversation.ConversationImpl.isTransient(ConversationImpl.java:149)
at org.jboss.weld.jsf.ConversationAwareViewHandler.getActionURL(ConversationAwareViewHandler.java:102)
at com.sun.faces.application.view.MultiViewHandler.getRedirectURL(MultiViewHandler.java:381)

I don’t use conversation scoped but @ViewScoped or @SessionScoped beans. I want to call method-validator from session scoped bean.

How to call this action after RESTORE_VIEW phase:

<action>#{forumBacking.checkForumIdUrlParameter}</action>

AND How to call this validator after RESTORE_VIEW phase:

<validate index="0" validator="#{requestScopedBean.validateUrlParameters}" onError="pretty:forums" />