Get rid of org.jboss.weld.context.NonexistentConversationException, when a query-string parameter named cid is appended to the URL

后端 未结 3 1324
一向
一向 2020-12-21 06:37

Take a simple CDI (it could also be a JSF managed bean) bean as follows.

import java.io.Serializable;    
import javax.inject.Named;
import javax.faces.view.         


        
3条回答
  •  悲哀的现实
    2020-12-21 07:22

    In the case of a servlet or other context supporting the web.xml context-param, you could set WELD_CONTEXT_ID_KEY as currently noted in the latest Weld documentation on supported environments:

    
       WELD_CONTEXT_ID_KEY
       customValue
    
    

提交回复
热议问题