11 juillet 2008
Here is a simple way to use the GSP from Grails to build reusable templates from files coming from the outside of the application (for mails, files exports, etc. …)
The first step is to create a GSP which defines the template. It should be noted that no special tag will be interpreted this way. Here is a sample VCARD file to import a contact (_vcard.gsp) :
BEGIN:VCARD
VERSION:2.1
N:${people.lastname};${people.firstname};;${people.civility}
FN:${people.civility} ${people.firstname} ${people.lastname}
TITLE:${people.job}
TEL;WORK;VOICE:${people.professionnalPhone}
EMAIL;INTERNET:${people.email}
END:VCARD
Then we must add a small method that will link the template to the data through the Groovy’s template engine :
Lire la suite de cette entrée »
Aucun commentaire »
10 juillet 2008
Just a small article on a matter I encountered yesterday… Maybe some of you heard about the Agile project management tool XPlanner (directed toward eXtreme Programming depending on the website)
The latest release date of May 2006 and was tested only with the 1.4.2 JDK. However the JVM evolved since then… When trying to make XPlanner working on a server with a Tomcat 5.5 and especially a JDK 1.6, I got a very nice stacktrace when launching the application, which the interesting part is :
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.apache.commons.collections.map.LinkedMap] to required type [java.util.HashMap] for property 'repositories'
The solution is to modify the following spring’s confguration file : WEB-INF/classes/spring-beans.xml replacing : Lire la suite de cette entrée »
6 commentaires »
4 juillet 2008
Et c’était un très grand moment !
Ça a commencé très fort avec le discours de Michel Serres sur l’innovation ; ou comment l’informatique, après l’écriture et l’imprimerie, marque une 3ème révolution dans l’histoire de l’humanité. Malgré l’heure matinale, le philosophe a su captiver l’attention de son auditoire et provoquer l’enthousiasme des quelques 300 personnes présentes dans la salle !
Et de finir sur « Tout est là devant vous, sous vos mains. Il ne vous reste plus qu’à inventer ! », il n’en fallait pas plus pour marquer le coup d’envoi d’une journée qui s’annonçait riche d’enseignements.
Puis ce fut la course aux sessions. Ayant opté pour le parcours libre, j’ai du effectuer des choix souvent difficiles pour sélectionner le contenu de mes journées face à l’importante densité du programme.
Lire la suite de cette entrée »
1 commentaire »