Hi,
Apologies up front that this is such a broad or basic question but I'm hoping I can get some feedback on a general approach to take to this task, perhaps from someone who has tackled something similar. I'm using Liferay 5.2.3 (with no possibility of upgrading short-term because of an application dependency).
I need to create a multi-part form portlet in Liferay that can be used to collect information about potential use cases for a service portal. The portal is currently in prototype.
Intent is that the user will complete the form in sections, hitting 'next' at the end of each section and that some form selections may result in the creation of other form fields. For example, if the user selects for 4 types of ice cream, the form will dynamically generate a set of form fields that ask them to input the 4 flavors that they would like. If they want 2 types of ice cream, they get 2 input form fields that accept flavor information, etc. I guess you could think of this as a wizard-type interface.
The form field inputs will be saved to a custom table in the Liferay portal database (generated using Servicebuilder) and will also be emailed to an administrator. These actions will only occur when the user hits "submit" once they've completed the entire form.
My questions are:
- In Liferay 5.2.3 what native technologies or application frameworks would make this task easiest? Should I just use native JSP/Javascript/Struts or JQuery/AJAX/Spring? I guess this is really a question about whether any challenges in integrating a framework like Spring will pay off in terms of accelerating development of this portlet. I have a relatively short time frame to develop it in prototype (couple of weeks).
- Besides the web portlet, are there any other sample portlets I can draw on for an example of a multi-part form portlet? I'm looking now through the repositories and doc references but if anyone knows of a good example (even for a later version of Liferay), I'd really appreciate any information.
You can't really answer this question, I guess, without knowing my skill set. I've some experience using JSP/Javascript/Struts to build forms, but I don't have a lot of experience building multi-part dynamic forms of this type.
Many thanks,
Susan
Firmi prego dentro per inbandierare questo come inadeguato.