name and ordering of faces-config.xml

UI Components for JSF
Post Reply
pejovica
Posts: 4
Joined: 03 Apr 2010, 03:11

30 Jun 2010, 15:15

Hi,

I've encountered some ordering problems between primefaces and seam-faces phaselisteners and I've noticed that primefaces config doesn't have a name. This makes nearly impossible to control the order of the primefaces faces-config.xml file.

So, is it possible to officially name it and maybe give it some default relative order?

At the moment I've named it "primefaces" :) and I've put it on the last place with absolute ordering. I was guessing that because of PrimeFacesPhaseListener (rendering ajax requests) it should be last, but on the other hand I'm not sure for the other two of the primefaces phaselisteners. I would appreciate if someone could confirm that this ordering is ok and that it won't break anything else.
primefaces-2.0.2 / mojarra-2.0.2 / glassfish v3.0.1

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

30 Jun 2010, 15:52

Hi,

Please, vote this issue which I reported a couple of month ago http://code.google.com/p/primefaces/iss ... ail?id=532

I needed this issue in my projects because there were compatibility issue with other libraries (inkl. own libs). At the moment I don't use other libs, but ordering is a very useful feature for JSF 2.

Best regards.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

30 Jun 2010, 16:04

Actually, I explained in this post http://primefaces.prime.com.tr/forum/vi ... f=3&t=1417 why we need the ordering. It's easy to fix and will allow us a smart overwriting / extending of PrimeFaces components.

Cagatay, can you put a name in the faces-config.xml for the upcoming release please? This is a question related to core technology and should be anwered with high precedence :-)

Thanks.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

pejovica
Posts: 4
Joined: 03 Apr 2010, 03:11

30 Jun 2010, 16:17

Well, I did search the forum for faces-config but I haven't found it, probably because of dash. Anyway, I've just voted. :)

Do you know is it safe to order primefaces on the last place?
primefaces-2.0.2 / mojarra-2.0.2 / glassfish v3.0.1

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

30 Jun 2010, 17:47

JAR files are loaded in alphabetically order pre default. Normally :-)
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

pejovica
Posts: 4
Joined: 03 Apr 2010, 03:11

30 Jun 2010, 20:51

:)
But, if I force loading of primefaces config to happen last (via absolute ordering of faces-config for example), will it affect correct functioning of primefaces?
Are there any known ordering requirements for primefaces phaselisteners, etc?
primefaces-2.0.2 / mojarra-2.0.2 / glassfish v3.0.1

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

30 Jun 2010, 21:52

I would say you should force loading of PrimeFaces artifacts as first and not as last.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: KeithJeomE and 33 guests