Foren
birthday validation
sasmita swain, geändert vor 11 Jahren.
birthday validation
Regular Member Beiträge: 183 Beitrittsdatum: 24.02.12 Neueste Beiträge
hi
How To Validate Date Of birth Validation?
e.g-> if any one entet today date then error will show like age must be 18years or above
Thanks
Sasmita
How To Validate Date Of birth Validation?
e.g-> if any one entet today date then error will show like age must be 18years or above
Thanks
Sasmita
Dragon Ball, geändert vor 11 Jahren.
RE: birthday validation
New Member Beitrag: 1 Beitrittsdatum: 13.03.12 Neueste Beiträge
in action class you have to write
then in jsp
hope this might help you!!!!
if (your condition) {
SessionErrors.add(request, "ageError");
response.setRenderParameter("jspPage", "jsp path");
}
then in jsp
<liferay-ui:error key="ageError" message="age should be greater than 18"></liferay-ui:error>
hope this might help you!!!!
sasmita swain, geändert vor 11 Jahren.
RE: birthday validation
Regular Member Beiträge: 183 Beitrittsdatum: 24.02.12 Neueste Beiträge
Hi all
In create acoount.jsp birthday field is there..in that fileld by default it is comming like january 1 1970..but i want to display like dd-mm-yy in dropdown..if i am changing anything it is not affecting in birthday field..it is taking only default value
Thanks
Sasmita
In create acoount.jsp birthday field is there..in that fileld by default it is comming like january 1 1970..but i want to display like dd-mm-yy in dropdown..if i am changing anything it is not affecting in birthday field..it is taking only default value
Thanks
Sasmita