Foren

Data binding utility for Liferay 7

Antonio Javier Ortega Pérez, geändert vor 6 Jahren.

Data binding utility for Liferay 7

New Member Beiträge: 22 Beitrittsdatum: 20.04.11 Neueste Beiträge
Data binding utility for Liferay 7

Hi community, I have a 'simply' question. Is there any data binding tool for Liferay 7? let me explain. Suppose we have an entity that I have to make a CRUD (create, retrieve, update and delete), made with service builder or not.

When showing the entity we have to:
  • Bind data from bean fields to html field
  • Do conversion if necessary (dates, numbers, etc..)


When saving data, we have to made the opposite track
  • Bind data from request http parameters to model object.
  • Do conversion if necessary (dates, numbers, etc..)
  • Do validations


I have seen in Liferay 7 the <aui:model-context> tag, but:
  • This covers only one way.
  • Is not documented.
  • It seems that doesn't work well if model is a class and not an interface.
  • ¿It does i18n conversions?


In the past I worked with Spring portlets and DataBinders but, using Spring portlets in Liferay 7 has drawbacks, you have to deploy as war and lose some OSGi capabilities.

With that in mind ¿Which data binding utility will you recommend for Liferay 7?

Thanks in advance.