4

Where can i find a jsf-impl for my jsf 2 webapp ?

In maven's repo i got the 1.2 version.

In the http://download.java.net/maven/2/javax/faces/, i can see only the jsf-api, but no jsf-impl

Im currently using tomcat 7, and experimenting with primefaces.

Thank you !


UPDATE

I've been able to get both the api and the impl using this, but im still not sure which impl i should really use :

    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-api</artifactId>
        <version>2.0.3</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-impl</artifactId>
        <version>2.0.3</version>
        <scope>compile</scope>
    </dependency>

UPDATE

Sorry for not being clear, but it's not only about which version i should use.

I was doubtful because :

  1. I notice the existence of 2 groupIds of javax.faces and com.sun.faces
  2. I dont see the jsf-impl from the maven repository
  3. What repository i should use to get the newest version

Thank you :-) !

Bertie
  • 17,277
  • 45
  • 129
  • 182
  • We use the following in our project ` com.sun.faces jsf-impl 2.1.0-b09 ` And it works smoothly – camiloqp Mar 17 '11 at 22:22
  • 1
    Thank you, i will switch to your suggestion now. But then, im still confused since there are javax.faces maven groupId also. I still wonder about when to use them. – Bertie Mar 18 '11 at 03:10

1 Answers1

1

My suggestion is to use jsf-api and jsf-impl version 2.0.4. Because it has lot of bugfixes and improvements over 2.0.3.

You can download them from this page at this link. And have a look at the MigrationGuide also.

Selvin
  • 12,333
  • 17
  • 59
  • 80
  • Thank you for the suggestion on using 2.0.4. In my case, it's even more stable from the newer version, where my @FacesConverter doesnt work. – Bertie Mar 22 '11 at 04:18
  • What is the difference between jsf-api and jsf-impl? What are they for? Can you please explain? @Selvin – Koray Tugay Mar 17 '13 at 23:46
  • 1
    @KorayTugay The API: the public types to which consumers can write code to The implementation: private types consumers should not rely on implementation details including things like markup (e.g. HTML) and container (e.g. servlet) http://stackoverflow.com/a/13049315/569497 – Selvin Mar 18 '13 at 08:03
  • @Selvin Can I use the api from myfaces and implementation from Mojorra? Also, where can I find a concrete example on this? Thanks for your answer by the way. – Koray Tugay Mar 18 '13 at 12:32