Java

You have no excuse NOT to encrypt the passwords of your users

If you're using hibernate, and you have a website with passwords, there's a fantastic library called Jasypt to help you seamlessly encrypt the password of your users. First add the following to your pom.xml: <dependency> <groupId>org.jasypt</groupId> <artifactId>jasypt</artifactId> <version>1.7.1</version> <scope>compile</scope> </dependency> Then take your entity, and add the following definitions import ... ... @TypeDef( name =… Continue reading You have no excuse NOT to encrypt the passwords of your users

Java, Wicket

Add your own javascript on a Wicket Ajax component

Wicket is great to turn a component into an Ajax-enabled component. But what happens if you want to add your own javascript on that Ajax component? Because Wicket will decorate the javascript to add Ajax support, whatever you'll put in your html will be ignored. The solution is easy when using an IBehavior to your… Continue reading Add your own javascript on a Wicket Ajax component