I'm working on a large project which consists of 10 sub-projects.
We're using Eclipse for development, JBOSS 7 as the app. server. Our projects use JSF 2.1, Spring 3.2, Hibernate 4.2 and Primefaces 3.3 for JSF implementation.
There are 2 "core" projects which other projects references, and these projects are referenced from the other 8 projects, and one project -let's say Project A- (of 8) references another one -let's say Project B-.
Now, the problem is; Project A uses entities of the "core" projects and Project B includes the JSF Converters.
When i try to use an entity in a selectOneMenu, i get "Converter" not found error. (NOTE: Converters are working!)
I added the converter definition to Project B's faces-config.xml, but still get the same error.
How i can use the converters from other Project?
Thanks.
Here is the "getAsObject" Method :
@Override
public Object getAsObject(FacesContext facesContext,
UIComponent uIComponent, String value) {
if (value == null || value.trim().equalsIgnoreCase("")) {
return null;
}
return ManagedBeanLocator.locateSessionController().findByRID("Akademikbirim", value);
}