Skip to content

Commit

Permalink
add notes on new JSF/JSP integration
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Sep 15, 2009
1 parent 0e1c6dd commit 6d997a5
Showing 1 changed file with 75 additions and 3 deletions.
78 changes: 75 additions & 3 deletions reference/en-US/ri-spi.xml
Expand Up @@ -579,7 +579,7 @@
<listitem>

<para>
If you are integrating the Web Beans into a JSF
If you are integrating the Web Beans into a JSF
environment you must register
<literal>org.jboss.webbeans.jsf.WebBeansPhaseListener</literal>
as a phase listener.
Expand All @@ -588,10 +588,39 @@
<para>
If you are integrating the Web Beans into a JSF
environment you must register
<literal>org.jboss.webbeans.jsf.WebBeansApplicationFactory</literal>
as an (wrapping) factory for the <literal>Application</literal>.
<literal>org.jboss.webbeans.el.WebBeansELContextListener</literal>
as as an EL Context listener.
</para>

<para>
If you are integrating the Web Beans into a JSF environment
you must obtain the bean manager for the module and then call
<literal>BeanManager.wrapExpressionFactory()</literal>,
passing <literal>Application.getExpressionFactory()</literal>
as the argument. The wrapped expression factory must be used
in all EL expression evaluations performed by JSF in this web
application.
</para>

<para>
If you are integrating the Web Beans into a JSF environment
you must obtain the bean manager for the module and then call
<literal>BeanManager.getELResolver()</literal>,
The returned EL resolver should be registered with JSF for
this web application.
</para>

<tip>
<para>
There are a number of ways you can obtain the bean manager
for the module. You could call
<literal>Bootstrap.getManager()</literal>, passing in the
BDA for this module. Alternatively, you could use the
injection into Java EE component classes, or look up the
bean manager in JNDI.
</para>
</tip>

<para>
If you are integrating the Web Beans into a JSF environment
you must register
Expand All @@ -609,6 +638,49 @@
</note>
</listitem>
</varlistentry>
<varlistentry>
<term>
JSP
</term>
<listitem>

<para>
If you are integrating the Web Beans into a JSP
environment you must register
<literal>org.jboss.webbeans.el.WebBeansELContextListener</literal>
as as an EL Context listener.
</para>

<para>
If you are integrating the Web Beans into a JSP environment
you must obtain the bean manager for the module and then call
<literal>BeanManager.wrapExpressionFactory()</literal>,
passing <literal>Application.getExpressionFactory()</literal>
as the argument. The wrapped expression factory must be used
in all EL expression evaluations performed by JSP.
</para>

<para>
If you are integrating the Web Beans into a JSP environment
you must obtain the bean manager for the module and then call
<literal>BeanManager.getELResolver()</literal>,
The returned EL resolver should be registered with JSP for
this web application.
</para>

<tip>
<para>
There are a number of ways you can obtain the bean manager
for the module. You could call
<literal>Bootstrap.getManager()</literal>, passing in the
BDA for this module. Alternatively, you could use the
injection into Java EE component classes, or look up the
bean manager in JNDI.
</para>
</tip>

</listitem>
</varlistentry>
<varlistentry>
<term>
Session Bean Interceptor
Expand Down

0 comments on commit 6d997a5

Please sign in to comment.