« 10 Commandments for the OTN Forums Member | Main | All the Way from JPA to JSF »

Using ICEFaces with JPA Tutorial

Juan Camilo Ruiz (with a little help from me) wrote a nice how-to that shows you how to integrate the Ajax enabled JSF components offered by the open source ICEFaces project into JDeveloper and how you can work with them and connect them to a JPA/EJB 3.0 back-end.

Check the tutorial out here.

And if you like it and you are at the Oracle Open World Latin America in Brazil - stop by the JDeveloper booth and have a look at all the other things we offer for JSF development (and you might meet Juan there too).

Comments (3)

Yogesh:

I am new to JPA. Is following entry is required in web.xml?

model =
(DepPublicFacade)context.lookup("DepPublicFacade");

<ejb-ref-name>ejb/local/DepPublicFacade</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>model.DepPublicFacadeLocal</local>
<ejb-link>DepPublicFacade</ejb-link>
</ejb-local-ref>

Gana:

I tried the tutorial, its working great.

Couple of things I am not able to sort out.

1. How to get the appropriate styleClass, in the demo none is loading. I tried some samples from the http://component-showcase.icefaces.org/component-showcase/index.jsp, I am having a tough time to get the styles applied.

2. When used with ADF Faces components the page crashes, there needs to be */faces/*(this can be customized) in the url, but when used with icefaces the url doesnt have the indicator to get the FacesServlet executed.

Thanks
- Gana

Gana,

Answering your questions, to set the style you need to add the xp.css style that comes with the iceFaces installation resources (not the iceFaces-JDeveloper integration), then you will find it at ${icefaces-install-home}\icefaces\resources\css\xp

Second question:
This is a know problem that happens because the servlets from both components are different. For now there is not a workaround to get both components work in the same page without any problem.

Juan

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on March 26, 2007 7:06 PM.

The previous post in this blog was 10 Commandments for the OTN Forums Member.

The next post in this blog is All the Way from JPA to JSF.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle