Integer Field Example


         Now we are developing a CRUD portlet where we mantain a table with a varchar and an integer field. In integer fields you also can use regexp validations in this example we are using it:



   <title>Integer Field</title>



         This is how the portlet will look in the page with Liferays Classic theme. 


In case you try to enter wrong data type in a numeric field, like the next image shows:


You will get an error mesaje like this:

          Here you have the full XMLPortletFactory xml file.


          And here you have the portlet war generated. (for liferay 6.0.6)


          If you want to use this example you can follow instructions here DOCUMENTATION