Support for beans in faces-config.xml outside WebContent [message #658605] |
Wed, 09 March 2011 03:56  |
Eclipse User |
|
|
|
Hi,
I have managed to add the JSF Facet to a maven war project, and in my JSPs I can even see the managed beans from the faces-config.xml in the standard location src/main/webapp/WEB-INF. Unfortunately, the jsp editor does not see the beans from a generated faces-config.xml which lives in a folder separate from src/main/webapp, it is in a WEB-INF folder below the target/generated-sources folder.
How do the Faces Tools look for the faces-config files? In the web.xml, I have three of them:
<param-name>
javax.faces.CONFIG_FILES
</param-name>
<param-value>
/WEB-INF/faces-config-generated.xml,/WEB-INF/faces-config-ge neral.xml,/WEB-INF/faces-config-navigation.xml
</param-value>
The first one contains the generated managed beans, and it is not found. The managed beans from the second one are found and shown by code completion.
I tried to add my path to the generated webapp sources in .jsdtscope and in org.eclipse.swt.commons.component, but that did not help. What seems to help is to drag the generated file to webapp/WEB-INF and create a link. But I'd rather help WTP to find the file in the original place.
|
|
|
Re: Support for beans in faces-config.xml outside WebContent [message #663885 is a reply to message #658605] |
Wed, 06 April 2011 13:33  |
Eclipse User |
|
|
|
As you have discovered, JSF Tools are designed to work with artifacts under WTP's "web content" folder. Recent improvements have been made to allow that "web content" folder to be the project root, but further enhancements would be required to make all features work with multiple "web content" folders. Fell free to file bugs/enhancements (and even provide patches, if you have found solutions).
|
|
|
Powered by
FUDForum. Page generated in 0.07307 seconds