Parametrizing custom validator in JSF 2
Writing a custom validator in JSF 2 is not a complicated task. You implement Validator interface, add @FacesValidator annotation and insert validator declaration in faces-config.xml, that’s all. A...
View ArticleHibernate parameter binding examples
Without parameter binding, you have to concatenate the parameter String like this (bad code) :String hql ="from Stock s where s.stockCode = '"+ stockCode +"'";List result =...
View ArticleUsing the final keyword on method parameters - Java Code Geeks
After some own confusion which specific meaning final declared method parameters have this blog entry will try to clarify this. At least the final keyword on method parameters can be seen as an...
View ArticleBozho's tech blog » Customizing Parameter Names When Binding Spring MVC...
In spring MVC you can have public class Job { private String jobType; private String location; } @RequestMapping("/foo") public Strnig doSomethingWithJob(Job job) { ... }
View ArticleChanging URL parameters with jQuery » samaxes
You can find plenty of resources about this topic just by googling the web, most of which will point to jQuery plugins. But the fact is that it’s so easy to achieve this by simply using jQuery that you...
View ArticleWelcome to semika's blog: Passing more parameters with login request - Java
If you are using some container managed authentication mechanism like standard java form based authentication or spring security authentication mechanism, You are not really involving with user...
View Article