Archive for juillet, 2008

Creating a link with javascript confirmation

Here is a simple example on how to add a javascript confirmation on a Wicket link

[code java] package net.demay.fr.wicket; /**  * A link asking a javascript confirmation before acting  *  * @author Vincent Demay  *  */ public abstract class ConfirmLink extends Link {     public ConfirmLink(String id) {         super(id);         add(new JsConfirm("onclick", "are you sure?"));     }     @Override     public abstract void onClick();     /**      * an attribute modifier adding confirmation on an event.      *      * @author Vincent Demay      *      */     public class JsConfirm extends AttributeModifier {         public JsConfirm(String event, String msg) {             super(event, true, new Model(msg));         }         protected String newValue(final String currentValue, final String replacementValue) {             String result = "if (confirm('" + replacementValue + "'))";             if (currentValue != null) {                 result = result + "{" + currentValue + "}; return false;";             }             return result;         }     } } 

Having fun at work : Goojet is lipdub’ing

Having a little bit fun at work is a really good think, and it is so corporate.

Here is a lipdub we did this afternoon, I hope you will like it )


Goojet LipDub

Goojet has 2 offices. One in Toulouse (where we did this lipdub) and an other in Paris. We hope Paris team will soon reply… let’s go guys!!!

Give me your feelings about our libdub