Fórumok

Can do validation on custom field in UI ?

Roll Gan, módosítva 11 év-val korábban

Can do validation on custom field in UI ?

New Member Bejegyzések: 8 Csatlakozás dátuma: 2012.05.08. Legújabb bejegyzések
Hi All,

I am using Liferay Portal CE 6.1 GA1, can I do validation (such as mandatory) on custom field in UI ?
If can, how to ?

Thanks a lot.
rollgan
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Can do validation on custom field in UI ?

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
Yes, you can do validation, just write your validation code.
Roll Gan, módosítva 11 év-val korábban

RE: Can do validation on custom field in UI ?

New Member Bejegyzések: 8 Csatlakozás dátuma: 2012.05.08. Legújabb bejegyzések
Hi Hitoshi san,

Thanks for your answer, but I am new to Liferay, can you explain more in detail ?

I am try do validation in Organization's custom field in UI,
but in /html/portlet/users_admin/organization/custom_fields.jsp can see,
custom field generate by custom-attribute-list, is a common tag util generate custom field by loop.

So, how should I do for validation ?


Thanks a lot,
rollgan
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Can do validation on custom field in UI ?

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
Check the following blog page's section onf "Extend rather than override. 1. Do you need to override any Action.java classes?"

http://www.liferay.com/web/amos.fong/blog
thumbnail
Manish Kumar, módosítva 11 év-val korábban

RE: Can do validation on custom field in UI ?

Junior Member Bejegyzések: 93 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Roll Gan,
you can do the validation for any custom field in UI normally.
Here is the a code example relevance to validation.
http://gspeak.in/home/liferay-portal-6.0.6/tomcat-6.0.29/webapps/web-form-portlet/edit_field.jsp
Hope this will help you emoticon