[jbosstools-issues] [JBoss JIRA] (JBIDE-18592) EL code completion not working with @Named

Alexey Kazakov (JIRA) issues at jboss.org
Mon Oct 13 12:41:35 EDT 2014


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

Alexey Kazakov commented on JBIDE-18592:
----------------------------------------

{quote}Alexey Kazakov the suggestion is to enable it also for web projects with servlet facet of a high enough version.{quote}
Yes, I got it. We could enable CDI support when a Web facet 3.1 (JavaEE7) is being installed for the project. But still not sure this is a good idea.
CDI facet won't affect anything during project creation in this case. We will enable CDI despite of user's choice.

New Dynamic Web Project -> *Enable* CDI facet -> CDI support is *enabled*.
New Dynamic Web Project -> *Disable* CDI facet (disabled by default in New Dynamic Project wizard and always enabled in New CDI Web Project wizard) -> CDI support is *enabled* if web facet => 3.1.

What do you think?

> EL code completion not working with @Named
> ------------------------------------------
>
>                 Key: JBIDE-18592
>                 URL: https://issues.jboss.org/browse/JBIDE-18592
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: cdi
>            Reporter: Arun Gupta
>            Assignee: Alexey Kazakov
>             Fix For: 4.3.x
>
>
> - Create a Dynamic Web Project
> - Add the following interface:
> public interface Greeting {
> 	public String sayHello();
> }
> - And the implementation:
> @Dependent
> @Named
> public class SimpleGreeting implements Greeting {
> 	@Override
> 	public String sayHello() {
> 		// TODO Auto-generated method stub
> 		return "Hello";
> 	}
> }
> - Enable JSF facet
> - Create .xhtml page as:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"> 
> <h:head></h:head> 
> <body> 
> <h:outputText value="#{}" />
> </body> 
> </html>
> No code completion in #{}. Changing @Named to @ManagedBean works.



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


More information about the jbosstools-issues mailing list