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:43:19 UTC

[Myfaces Wiki] Update of "jenia4faces" by WernerPunz

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 WernerPunz:
http://wiki.apache.org/myfaces/jenia4faces

New page:
= Jenia4Faces =

== Description ==

[http://www.jenia.org/jsp/index.jsp Jenia4Faces] is a new interesting component pack, for Javascript enabled web browsers.
It adds several components which are not covered fully by other component packs.

=== Component subsystems ===

*Popup an interesting control enabling popus within pages

*Datatools one of the most sophisticated data tables currently available for free

*Dynamic, an open ended DHTML component set which serve specialized needs

*Template, another page templating mechanism (See also x:saveState, struts clay, tiles and facelets). This one aims for ease of use and small code footprint

== Jenia4Faces and !MyFaces ==

The component pack is net yet tested with MyFaces, from the MyFaces side, but early tests by users of the mailing list indicate that it works, or at least parts of it work, properly with myfaces.

== Usage in combination with !MyFaces ==

According to a post from Aleksei Valikov in the MyFaces User Mailing list, to get things up and running following steps have to be performed:

{{{
I've just tried it and it seems to work (at least the popupBox).
I run pure MyFaces without any JSF RI libraries. Therefore I had to correct a couple of things before jenia4faces popup worked.

Here's my walkthrough:

1. Get jenia4faces-popup.jar and jenia4faces-commons.jar.
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 servlet/servlet mapping

<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>

to the web.xml. This enables loading of javascript files from jenia4faces resources. (Actually, MyFaces follows the same approach in a different way.)

If you get something like "component not found", copy and paste jenia4faces-popup.jar/META-INF/jenia-popup-config.xml into the primary faces-config.xml.

And yes, once again
/me too: Thanks to the authors.

Bye.
/lexi
}}}