I have a simple application in which I am trying to use JSF 2.0 with CDI and follow a PRG pattern. So on my main form, I have a simple command button that does nothing but start the current conversation:
When I do this, I get the following exception: org.jboss.weld.context.NonexistentConversationException: WELD-000321 No conversation found to restore for id 1 at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:112) at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:88) at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
If I remove the <redirect/> tag from faces-config, then everything works fine, but then I am not following the PRG pattern.
Is this a bug in Weld? For some reason the conversation that I began before the redirect is somehow lost.