[ https://issues.apache.org/jira/browse/NETBEANS-5090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17280329#comment-17280329 ]
Stephen Brooksbank commented on NETBEANS-5090: ---------------------------------------------- Also please note @SessionScoped and @ConversationScoped are also passivating scope types. ??Source: Specification: Jakarta Contexts and Dependency Injection Version: 2.0 Status: Final Release: Aug 10 2019?? {noformat} 6.7.2. Session context lifecycle The session context is provided by a built-in context object for the built-in passivating scope type@SessionScoped. {noformat} and {noformat} 6.7.4. Conversation context lifecycle The conversation context is provided by a built-in context object for the built-in passivating scopetype @ConversationScoped. {noformat} Thanks. > JSF CDI bean code created without "implements Serializable" > ----------------------------------------------------------- > > Key: NETBEANS-5090 > URL: https://issues.apache.org/jira/browse/NETBEANS-5090 > Project: NetBeans > Issue Type: Bug > Components: javaee - JSF > Affects Versions: 12.1 > Environment: Windows / NetBeans 12.1 > Reporter: Stephen Brooksbank > Assignee: Jakub Herkel > Priority: Minor > > When using the file -> new option to create "JSF CDI Bean" for View scope > (and others) the bean file gets created without the "implements Serializable" > option included on the class name. The deploy subsequently fails if this > doesn't get added manually. It would obviously be better if the code was > generated correctly. > The relevent template file does include: > {{ <#if passivationCapable??>}} > {{import java.io.Serializable;}} > {{ </#if>}} > and > {{public class ${name} <#if passivationCapable??>implements > Serializable</#if>{}} > So behind the hood the "passivationCapable" variable is not being correctly > set for the CDI scope(s). -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists