Archive for May 2011
Handling alien Java types in XML messages
Most of times we find ourself in situations where the XML instance doesn't fully comply with the available Java types.
Let's define a near real world problem to understand this.
Problem: Need to process XML message coming from some XYZ source we don't.
Converting JSF <h:dataTable/> to <annaRascla:RajniKant/> table ...

By RajniKant table I mean a readonly table that has all the features (sorting, pagination, searching etc). Most developers who are struck with JSF RI implementation know already how difficult it is to provide all these mentioned features. Suddenly.
Posted by Unknown
Building RESTful WS with JAX-RS (Jersey) and Tomcat
This post is dedicated to my friend jagdish salgotra who wanted me to write something on RESTful web services and to all starters in this area.
In the REST(REpresentational State Transfer) world, information on the server side is considered a resource,.
Saving ENUM values as String in database using JPA
First of all nothing very fancy or technical about this post :)
Let's say you have an enum declaration as shown below and you want to store these values as String (not the evil ordinals) in the database:
public enum UserSex {
MALE, FEMALE, UNKNOWN
}
To.