You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2005/07/22 13:38:52 UTC
[Myfaces Wiki] Update of "Jenia4Faces" by AlekseiValikov
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by AlekseiValikov:
http://wiki.apache.org/myfaces/Jenia4Faces
New page:
Jenia4Faces is a nice JSF library from [http://www.jenia.org]. It includes components to render html popups, DataTable extension tools, DHTML and templating components.
= Using jenia4faces popups with MyFaces =
Tag library definition from Jenia4Faces references JSF RI. Therefore, if you want to use Jenia4Faces with pure MyFaces, you have to remove the dependencies. Here is a small walkthrough on how to deploy Jenia4Faces with MyFaces:
1. Get the jenia4faces-popup.jar and jenia4faces-commons.jar from [http://www.jenia.org].
2. In jenia4faces-popup.jar/META-INF/jenia-popup.tld comment all references to com.sun.* classes. These are {{{<validator/>}}} and {{{<tei-class/>}}} elements. This will remove references to JSF RI.
3. Add patched libraries to the webapp path.
4. Declare taglib prefix (ex. {{{xmlns:jp="http://www.jenia.org/jsf/popup"}}}) in the JSP.
5. Add the following servlet/servlet mapping to the web.xml. This enables loading of the required JavaScript files from jenia4faces resources.
{{{<servlet>
<servlet-name>Jenia internal servlet</servlet-name>
<servlet-class>org.jenia.faces.util.Servlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jenia internal servlet</servlet-name>
<url-pattern>/jenia4faces/*</url-pattern>
</servlet-mapping>}}}
If you get something like "component not found", copy and paste jenia4faces-popup.jar/META-INF/jenia-popup-config.xml into your primary faces-config.xml.