One Table, One Field Example
The easiest CRUD portlet that we can do will be a portlet project called "xmlpfexampleA" where we want to create a users table maintenance, where the only field in use is "userName", a Varchar field of 30.
This is how the portlet will look in the page with Liferays Classic theme.
This is how the portlet will look in Edit mode.
This is how the portlet will look after adding a record.
Here you have the full XMLPortletFactory xml file.
And here you have the portlet war generated. (for liferay 6.0.6)
xmlpfexampleA-portlet-6.0.6.1.war
If you want to use this example you can follow instructions here DOCUMENTATION