[jbosstools-issues] [JBoss JIRA] (JBIDE-18584) New beans.xml should let the user choose the CDI version

Viacheslav Kabanovich (JIRA) issues at jboss.org
Mon Oct 13 16:51:35 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011337#comment-13011337 ] 

Viacheslav Kabanovich commented on JBIDE-18584:
-----------------------------------------------

It might be better to put version selector above folder selector, but basic New file wizard which is extended does not allow for that. The only solution could be to make a copy of New file wizard and change it in a desirable way. However, it is not a very nice solution. Let us leave version selector at the bottom to reuse all other functionality.

> New beans.xml should let the user choose the CDI version 
> ---------------------------------------------------------
>
>                 Key: JBIDE-18584
>                 URL: https://issues.jboss.org/browse/JBIDE-18584
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: cdi
>    Affects Versions: 4.2.0.CR1
>            Reporter: Xavier Coulon
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.3.0.Alpha1
>
>         Attachments: NewBeansXMLWizard.png
>
>
> The "New beans.xml" wizard generates the following content:
> {code}
> <?xml version="1.0"?>
> <beans xmlns="http://java.sun.com/xml/ns/javaee"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd"/>
> {code}
> but Java EE 7 includes CDI 1.1 which is like 
> {code}
> <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
>        version="1.1" bean-discovery-mode="annotated">
> </beans>
> {code}
> It would be nice if the wizard supported multiple versions of CDI (with the default value based on the CDI project facet ?)



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list