is anyone running Seam Mail (Seam 2.3) with JSF 2 using the MyFaces 2.1.x implementation of JSF?
I can not get Seam Mail to work because Seam's org.jboss.seam.faces.renderer
component can not be created. It has a class dependency to com.sun.faces.facelets.Facelet
and this class does not exist in MyFaces.
@Scope(ScopeType.STATELESS)
@BypassInterceptors
@Name("org.jboss.seam.faces.renderer")
@AutoCreate
@Install(value = true, precedence = Install.BUILT_IN,
classDependencies = "com.sun.faces.facelets.Facelet")
public class FaceletsRenderer extends Renderer {
...
}
So the following statement fails with an "@In attributes requires non-null value" exception.
@In(create = true)
private Renderer renderer;
What can I do? Should I also add jsf-api from the Mojarra implementation?!
Cheers Frank
Ok I fixed it!
I just replaced the buggy Seam FaceletsRenderer by my own component:
The original
RendererRequest
class from Seam-Ui is coupled to Sun JSF was well, so you also have to replace it. It is only necessary to fix the methodfaceletForViewId(String)
. Here you go:I hope this helps someone else facing my problem.