Thank you all in advance your help is really appreciated!
i should add that are for testing only: Thanks for the answer, I have already read about the topics you posted, i can't use buttongroup since it shoudln't be mutual exclusive my issue is the fact that when i get the data from the checkbox and want to store it, i dont exactly know how to handle the array where it is supposed to be stored, since if one element is selected the placeholders for other elements will be empty coz the array has a fixed size. If you do need to populate some arrays, only do it when you are submitting your data in the end.
Notice that Binding Result must come right after the validated object else spring won’t be able to validate and an exception been thrown. I would love to hear your thoughts on these articles, it will help me improve further our learning process.
Also you should think about synchronization: you want one method that runs on the Swing EDT to fill your data structure, but some other method on another thread to send those to the DB.
And somehow you must make sure the data is synchronized between the two threads.
package com.websystique.springmvc.configuration; import Now to make the application complete, we will add service layer, dao layer, views, Domain object, sample database schema and run the application.
To override those default by your own custom [internationalized] messages from an external Message bundle [.properties file], we need to configure a Size.employee.name=Name must be between and characters long Not Null.employee.joining Date=Joining Date can not be blank Not Null.employee.salary=Salary can not be blank Digits.employee.salary=Only numeric data with max 8 digits and with max 2 precision is allowed Not Empty.employee.ssn=SSN can not be blank type Mismatch=Invalid format non.unique.ssn=SSN already exist. package com.websystique.springmvc.configuration; import javax.servlet. Abstract Annotation Config Dispatcher Servlet Initializer; public class App Initializer extends Abstract Annotation Config Dispatcher Servlet Initializer package com.websystique.springmvc.controller; import Method As for as Annotation based configuration goes,this is all we need to do.