Deploying backing bean with composite component in separate jar
Posted
by
Checkoff
on Stack Overflow
See other posts from Stack Overflow
or by Checkoff
Published on 2012-09-13T21:43:44Z
Indexed on
2012/09/21
15:38 UTC
Read the original article
Hit count: 246
I have some difficulties deploying my web app on JBoss AS 6.1. My current Project is separated into the main web app (controller/managed beans & web frontend using JSF 2 facelets) and one jar with the composite components + backing beans. But when I try to access the page I got an error that the specified component type could not be instantiated.
Copying the backing bean into the main web app solves the problem, but this isn't what I want. So is there anything to pay attention to?
The backing bean looks like
@FacesComponent(value = "elementBase")
public class ElementBase extends UINamingContainer {
...
}
and the composite components interface
<composite:interface componentType="elementBase">
... some attributes
</composite:interface>
The structure of the jar is the following
-- META-INF
|-- resources
| |-- components
| |-- elementBase.xhtml
-- com
|-- example
| |-- ElementBase.class
I've also tried to add faces-config.xml
within META-INF
folder, with the component type, but the component type was still not found.
© Stack Overflow or respective owner