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

Max Rydahl Andersen (JIRA) issues at jboss.org
Sat Oct 11 21:09:35 EDT 2014


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

Max Rydahl Andersen commented on JBIDE-18592:
---------------------------------------------

in EE6 a beans.xml or service entry was required, we used that to automatically configure projects to be CDI aware.

with EE7 we lost that ability - a real shame IMO, but if we were to enable CDI on *all* .jar projects that would be overkill too. Note - we can't see on a project if CDI is used.

not sure how to handle this without breaking existing users. suggestions welcome.

I guess we could enable CDI for those with facets versions numbers that are part of EE7 spec to enable it...that would fix it for some projects.

Alexey - could that work ?

> 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
>            Reporter: Arun Gupta
>            Assignee: Alexey Kazakov
>
> - 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