Liferay Provides its own AUI Validators to validate the AUI Form Elements, There are numerous validators are available for the validations of Text, Numbers, Email, Password and etc...
Liferay's AUI Library have extensive elements for handling form elements, AUI form elements are responsive and we can use the Liferay's AUI validators without having to use any javascript code or external libraray.
Lets see how to create a service builder module in liferay 7. Before creating the service builder module let me give the some introduction about service builder and its features,Service builder is used in liferay to create database tables and generate the api to read and write into the database.
To create a service builder module click on "New Liferay Module Project"
Lets give the Service Builder Module's name as "products-data" and select the Project template name as "service-builer".
Click on next button.
Click on Finish, This will create a new Liferay Service Builder module for us.
You can find this newely created service builder module inside the Liferay Wokspace's module folder.
The folder structure of a service builder module will be as shown below.
service.xml is the file where we will be creating and configuring new tables, in liferay relational database table is referred as entity or model, when you create a new service builder module it will come with some sample entity, lets remove that and use the entity defined below in service.xml
When you have many rows of products in the table and you want to fetch all the product belongs to a single manufacturer at that time you can go with finder which allows you fetch the rows based on the finder-column name specified.
Once you are done with defining the fields, the next step is to build the service, to build the service
just right click on the module go to Liferay>> then click on build service.
after building the service, deploy the module, you will be able to see the new table in your database.