IceFaces 1.8.2 + Spring 3.0.4.RELEASE + Hibernate 3.3.4.GA

This maven2 archetype contains a little sample web application with this Frameworks:

  • Spring 3.0.4.RELEASE Framework
  • Servlet-API 2.5
  • MyFaces-Core 1.2.8
  • IceFaces 1.8.2
  • Facelets 1.11
  • ploinFaces 1.4.6
  • ploinMailFactory 1.3.1
  • Hibernate 3.3.4.GA
  • TestNG 5.8
  • Log4J 1.2.15
  • HSQLDB 1.8.0.7

The configuration is xml-driven. It is deployed on the PLOIN Repository-Server

http://www.ploin-m2.de/nexus/content/groups/public/

you can create a project from the archetype with the following command:

mvn  archetype:generate -DarchetypeGroupId=org.ploin.archetype  -DarchetypeArtifactId=tempSpringIceHibernate -DarchetypeVersion=1.1.1  -DarchetypeRepository=http://www.ploin-m2.de/nexus/content/groups/public/  -DgroupId=org.ploin -DartifactId=demoSpringIceHibernate

The created project is a very simple web-application with a login mask and three xhtml-sites. I have tested the app on a tomcat 6.0.20 and Java 1.6 on Mac OS X Snow Leopard.

You can login with the username “admin” and the password “admin”.

After the creation the app is running with the HypersoniceSQL DBMS. But it is very easy to switch to MySQL or Oracle. I put the drivers for MySQL and Oracle as a comment in the pom.xml. So you just need to comment int the right lines in the pom.xml.

IceFaces 2.0 ALPHA + Spring 3.0.0.RELEASE + Hibernate 3.3.2.GA

This maven2 archetype contains a little sample web application with this Frameworks:

  • Spring 3.0.0.RELEASE Framework
  • Servlet-API 2.5
  • JSF 2.0 (mojarra 2.0.2)
  • IceFaces 2.0
  • ploinFaces 1.6
  • ploinMailFactory 1.3.1
  • Hibernate 3.3.2.GA
  • TestNG 5.8
  • Log4J 1.2.15
  • HSQLDB 1.8.0.7

The configuration is xml-driven. It is deployed on the PLOIN Repository-Serve

http://www.ploin-m2.de/nexus/content/groups/public/

you can create a project from the archetype with the following command:

mvn archetype:generate  -DarchetypeGroupId=org.ploin.archetype  -DarchetypeArtifactId=tempSpringIceHibernate -DarchetypeVersion=1.4  -DarchetypeRepository=http://www.ploin-m2.de/nexus/content/groups/public/  -DgroupId=org.ploin -DartifactId=demoSpringIceHibernate

The created project is a very simple web-application with a login mask and three xhtml-sites. I have tested the app on a tomcat 6.0.20 and Java 1.6 on Mac OS X Snow Leopard.

You can login with the username “admin” and the password “admin”.

After the creation the app is running with the HypersoniceSQL DBMS. But it is very easy to switch to MySQL or Oracle. I put the drivers for MySQL and Oracle as a comment in the pom.xml. So you just need to comment int the right lines in the pom.xml.

JavaScript Aufruf aus einer ManagedBean heraus mit IceFaces

Mit der Klasse “com.icesoft.faces.context.effects.JavascriptContext” aus der IceFaces 1.6.2 Bibliothek ist es moeglich aus einer ManagedBean heraus JavaScript Aufrufe zu taetigen. Hier folgt ein Beispielaufruf.

JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(), "test()");

Der statischen Methode “addJavascriptCall” muss als erster Parameter der aktuelle FacesContext uebergeben werden und als zweiter Parameter die Javascript Methode die aufgerufen werden soll.
Die Methode “test()” befindet sich in einer *.js Datei die im Header des Facelets-Templates eingebunden wird.