NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

JSF Maven and autocompletion in NB 6.9 editor

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
karolbe



Joined: 22 Oct 2009
Posts: 2

PostPosted: Thu Jul 15, 2010 6:33 pm    Post subject: JSF Maven and autocompletion in NB 6.9 editor Reply with quote

Hello

Is there something special I have to do to enable autocompletion in editor for web projects built using Maven?

I have added dependencies on JSF:

Code:
  <dependency>
            <groupId>javax.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <version>1.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <version>1.2</version>
            <scope>provided</scope>
        </dependency>


but in JSP file autocompletion and suggestions aren't working. JSP file contains taglibs for JSF:

Code:
<%@ page pageEncoding="UTF-8" contentType="text/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>


Any ideas?
Thanks
Karol
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 612
Location: Simpsonville, SC

PostPosted: Mon Jul 19, 2010 2:17 pm    Post subject: Re: JSF Maven and autocompletion in NB 6.9 editor Reply with quote

Hello Karol,

I had to add a dependency to the pom as noted below for this to work.

Back to top
karolbe



Joined: 22 Oct 2009
Posts: 2

PostPosted: Tue Jul 20, 2010 9:47 am    Post subject: Re: JSF Maven and autocompletion in NB 6.9 editor Reply with quote

jyeary wrote:
Hello Karol,

I had to add a dependency to the pom as noted below for this to work.



Hi

What dependency? I don't see it Sad

Karol
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 612
Location: Simpsonville, SC

PostPosted: Sat Jul 24, 2010 2:52 am    Post subject: Java EE 5 pom.xml dependencies Reply with quote

Here are the dependencies for a Java EE 5 application using JSF 1.2 RI.
Code:
     
       <dependency>
            <groupId>javax.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <version>1.2-b19</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>javax.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <version>1.2-b19</version>
            <scope>provided</scope>
        </dependency>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo