Glassfish V3 and Icefaces (2)

Following Ted’s advice I de-installed Glassfish V3 (I already had installed JSF 2.0 update) and re-installed to get back the earlier version of JSF (1.2)

fdgh

Glassfish V3 with updated JSF 2.0

fghfgh

Initial installation of V3 prelude with JSF 1.2

This time I can place a couple of IceFaces components (without binding or any configuration) and run the project under V3 prelude.

fghfgh

Icefaces components

Now, I am going back to my CRUD sample project I initially wanted to explore. Placing a datatable on the JSF page. The datatable is shown.

dfg

Icefaces datatable

The problem start after I bind to a datasource (by dropping the table onto the datatable)

fghgfh

Drag and Drop table on datatable

Running the project gets me couple of errors, I need to sort out now.

ertet

Server Error


SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /Page1.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent
WARNING: JSF1053: (Listener: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.afterPhase(), Phase ID: RENDER_RESPONSE 6,  View ID: /Page1.jsp) Exception thrown during phase-listener execution: com.sun.rave.web.ui.appbase.ApplicationException: The cachedRowSet property is null
WARNING: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:537)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.afterPhase(ViewHandlerImpl.java:424)
com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)

Glassfish V3 and Icefaces

I started using Glassfish V3 prelude for development. By the time my development cycles nears production release, V3 should be officially released. I downloaded/activated the ICEFaces plugin for NB 6.5 and created and run the simple CRUD sample which fails, despite successful deployment.

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Undeploying ...
undeploy?name=CollaborativeCRUD running on GlassFish V3
undeploy?name=CollaborativeCRUD completed on GlassFish V3
In-place deployment at X:\svn_NOTYET_JAVA_VAR\CollaborativeCRUD\build\web
Initializing...
deploy?path=X:\svn_NOTYET_JAVA_VAR\CollaborativeCRUD\build\web&name=CollaborativeCRUD&force=true&properties=keepSessions=true running on GlassFish V3
deploy?path=X:\svn_NOTYET_JAVA_VAR\CollaborativeCRUD\build\web&name=CollaborativeCRUD&force=true&properties=keepSessions=true completed on GlassFish V3
run-deploy:
BUILD SUCCESSFUL (total time: 7 seconds)

INFO:
ICEsoft Technologies, Inc.
ICEfaces 1.7.2 SP1b
Build number: 1
Revision: 18093

Creating this error when running the project

SEVERE: StandardWrapperValve[Persistent Faces Servlet]: PWC1406: Servlet.service() for servlet Persistent Faces Servlet threw exception
java.lang.UnsupportedOperationException
        at javax.faces.context.FacesContext.setCurrentPhaseId(FacesContext.java:644)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:87)
        at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)

I dont have a solution yet, but to continue with V2 and wait for the production release 1.8 of ICEFaces which will support V3 fully (planned for this February).

Application Framework

Looking around for a nice browser based application framework I stumbled upon 3 opensource products that are somehow integrated into the Netbeans and Glassfish world.

  • Icefaces (Woodstock migrated here) | link
  • ZK direct RIA | link
  • JMaki / Dojo | link | link

I will evaluate these 3 and report about the results here. While Icefaces and ZK are clearly enterprise enabled frameworks, JMaki is a rather consumer application orientated framework. I might be wrong with this statement, but this is my first tast bitting on it. ZK seems closer to Spring and Tomcat than Netbeans and Glassfish.