Picking Dates in Struts 2 and JQGrid
Join the DZone community and get the full member experience.Join For Free
i have spent sometime analysing the power of struts 2 and jqgrid. in a time when so many frameworks are out there, so many projects, some of which perform code generation, the question is can struts 2 still have a place in the new world, the new era that has seen the rise of web technologies with mouth watering graphics and tantalizing visual effects?
i am happy to say that yes it can. within the jqgrid struts 2 is a framework that has the capability to make it through and past 2010 into the second decade of this new century that has dawned upon us.
today i write about dates and date picking in the struts 2 jqgrid plugin. the reason being there seems to be, to my knowledge, no clear explanation on this. in my next post i will give a full tutorial on the use of jqgrid and more comprehensive coverage on this wonderful plugin.
we want to be able to have a date picker in the add record screen. in the picture below confirmby is a date field and when we click on it:
also when we edit a record, on the edit record screen, we click on the date field we have:
the settings for this are as follows. first in the sjg:gridcolumn we have:
where the datepick function will be:
there we are. we have added date picking functionality in the add record screen and the edit record screen.
Opinions expressed by DZone contributors are their own.