留言板

birthday validation

sasmita swain,修改在11 年前。

birthday validation

Regular Member 帖子: 183 加入日期: 12-2-24 最近的帖子
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
Dragon Ball,修改在11 年前。

RE: birthday validation

New Member 发布: 1 加入日期: 12-3-13 最近的帖子
in action class you have to write

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,修改在11 年前。

RE: birthday validation

Regular Member 帖子: 183 加入日期: 12-2-24 最近的帖子
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