More often than not people come to the spring forums asking about PropertyEditor’s. PropertyEditors are needed when you want to convert a string value to an object. Say for example, your command object contains a reference to a User object and the list of user’s is shown in the jsp with the value of the option box serving as the id of the user. Once the form is submitted, unless you have a custom property editor for your user class, you will receive validation errors. (more…)
Posts Tagged ‘jsp’
Registering PropertyEditors’s with spring for custom objects
Saturday, February 14th, 2009Pagination & sorting in jsp’s with the displaytag taglib & spring
Friday, February 13th, 2009I hate writing pagination code. Infact I hate it so much, I try not to paginate my lists at all. ( I know, i know, very bad on my part)
. Writing pagination code totally destroys the code reuse in an application, developers generally just copy paste the very same pagination code all over the place over and over again. Not to mention decorating such pagination displays is a pain in the ass as well. So while searching for a more concrete solution to my problem I stumbled upon displaytag.
Display tag is by far the most comprehensive pagination solution that I have ever come across. Not only is the library extremely stable, (more…)
Clearing formBackingObject data after spring form submit
Friday, February 13th, 2009It’s all to common for beginners of spring to stumble upon what may look like odd spring problems. Most users think that these are bugs while more often than not they are expected spring behaviour. I myself have stumbled upon my fair share of such problems.
One such problem is clearing the data contained within the formBackingObject (or command object) after a successful (more…)