Fórum
birthday validation
sasmita swain, modificado 11 Anos atrás.
birthday validation
Regular Member Postagens: 183 Data de Entrada: 24/02/12 Postagens Recentes
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, modificado 11 Anos atrás.
RE: birthday validation
New Member Mensagem: 1 Data de Entrada: 13/03/12 Postagens Recentes
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, modificado 11 Anos atrás.
RE: birthday validation
Regular Member Postagens: 183 Data de Entrada: 24/02/12 Postagens Recentes
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