-
1. Re: Content assist in xhtml files not work for two faces-config.xml
scabanovich Aug 21, 2012 1:28 PM (in response to igorrogi)1 of 1 people found this helpfulDoes your project include /WEB-INF/web.xml file with context parameter?
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/second-faces-config.xml</param-value>
</context-param>
File named faces-config.xml is not required to be registered in web.xml, but other named files should be. When you created second-faces-config.xml file by JBoss Tools faces config wizard, it must have added this context parameter so that it was used by content assist. Could it be that later it was removed from web.xml?
-
2. Re: Content assist in xhtml files not work for two faces-config.xml
igorrogi Aug 22, 2012 2:55 AM (in response to scabanovich)Yes I do have it (both files are included in web.xml)
Meanwhilie I found out that I have been usinng two web.xml in one project and probably the problem was in maven configuration. Maven configuration pointed to web.xml which doesn't include second-faces-config.xml.
I did small tidy up in maven configuration and now it seems it works perfect, even after restarting Eclipse.
Thanks.