Search code examples
jsfjavabeansglassfish-3managedcode-completion

Eclipse JSF anotations managed beans code completion


My question was asked on this forum, but the answer didn't completely satisfy my situation. In JSF 2.0 one could declare in the beans annotations like @ManagedBean or @ManagedBean(name="blah") and the scope of the bean instead of declaring them in faces-config.xml and use the beans in *.xhtml, *.jsp etc.

BUT, here is my question, the code completion in Eclipse doesn't work if you declare using annotations. It only works if one declares the beans in faces-config.xml. Another post in the forum does give an answer: JBoss Tools, but I couldn't find if it works with GlassFish.

I use Eclipse Indigo Java EE and GlassFish. It should work if I install it ? or there is another more compatible way.

Thank you for your time and happy coding!


The details:

Cannot complete the install because of a conflicting dependency.
  Software being installed: JBoss Tools JSF 3.3.0.v20120302-0331-H69-Beta1 (org.jboss.tools.jsf.feature.feature.group 3.3.0.v20120302-0331-H69-Beta1)
  Software currently installed: Oracle GlassFish Server Tools 1.8.0.201110200920 (oracle.eclipse.tools.indigo.glassfish.feature.group 1.8.0.201110200920)
  Only one of the following can be installed at once: 
    Server UI 1.1.305.v20110511 (org.eclipse.wst.server.ui 1.1.305.v20110511)
    Server UI 1.1.207.v20110119 (org.eclipse.wst.server.ui 1.1.207.v20110119)
    Server UI 1.3.0.v20120210_1439 (org.eclipse.wst.server.ui 1.3.0.v20120210_1439)
    Server UI 1.1.306.v20110823_1704 (org.eclipse.wst.server.ui 1.1.306.v20110823_1704)
    Server UI 1.1.209.v20110914_1539 (org.eclipse.wst.server.ui 1.1.209.v20110914_1539)
  Cannot satisfy dependency:
    From: Oracle GlassFish Server Tools 4.1.0.201110200920 (oracle.eclipse.tools.glassfish 4.1.0.201110200920)
    To: bundle org.eclipse.wst.server.ui [1.1.305,1.2.0)
  Cannot satisfy dependency:
    From: Oracle GlassFish Server Tools 1.8.0.201110200920 (oracle.eclipse.tools.indigo.glassfish.feature.group 1.8.0.201110200920)
    To: oracle.eclipse.tools.glassfish [4.1.0.201110200920]
  Cannot satisfy dependency:
    From: WST Server UI 3.3.2.v20111026_1748-7B79FBdAtJcez0EONePJUSNPjBC42 (org.eclipse.wst.server_ui.feature.feature.group 3.3.2.v20111026_1748-7B79FBdAtJcez0EONePJUSNPjBC42)
    To: org.eclipse.wst.server.ui [1.3.0.v20120210_1439]
  Cannot satisfy dependency:
    From: Eclipse Web Developer Tools 3.3.2.v201111030500-7O7IFj6EMjB7yO1Xs_G1kMtQeOye6HTXFWve95_R (org.eclipse.wst.web_ui.feature.feature.group 3.3.2.v201111030500-7O7IFj6EMjB7yO1Xs_G1kMtQeOye6HTXFWve95_R)
    To: org.eclipse.wst.server_ui.feature.feature.group [3.3.2.v20111026_1748-7B79FBdAtJcez0EONePJUSNPjBC42]
  Cannot satisfy dependency:
    From: JBoss Tools JSF 3.3.0.v20120302-0331-H69-Beta1 (org.jboss.tools.jsf.feature.feature.group 3.3.0.v20120302-0331-H69-Beta1)
    To: org.eclipse.wst.web_ui.feature.feature.group 3.3.2

Solution

  • JBoss Tools (at least for the code completion part) are working with the Eclipse IDE (Integrated development environment)

    It has nothing to do with the Web Server you choose...

    So Yes, it should work with your Eclipse (GlassFish/Tomcat etc... has no affect on it...)