Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ezequiel Chavez
Proposal for WebForm Portlet improvements
March 25, 2008 5:16 PM
Answer

Ezequiel Chavez

Rank: Regular Member

Posts: 135

Join Date: January 19, 2006

Recent Posts

  • Ability to format content of the web form so scalable and user selectable (CSV, XML, more ...)
    Interface WebFormFormat

    Default Impls
    CsvWebFormFormat
    1"value1", "value2", "value3"

    XmlWebFormFormat
    1<web-form>
    2    <field label="field1">value1</field>
    3    <field label="field2">value2</field>
    4    <field label="field3">value3</field>
    5</web-form>

    Other Impls can be:
    JSON, Customs XML, HTML, etc.
  • Ability to manage the formatted content so scalable and user selectable (send email, save file, more ...)
    Interface WebFormHandler

    Default Impls MailWebFormHandler (send email), FileWebFormHandler (save one file or save "n" files for each submit)

    Other Impls can be:
    JMS Putting message in a Queue, JDBC saving record in a DB, etc.
  • portal.properties:
    1web.form.portlet.formats=csv,xml
    2web.form.portlet.format.csv=com.liferay.portlet.webform.util.CsvWebFormFormat
    3web.form.portlet.format.xml=com.liferay.portlet.webform.util.XmlWebFormFormat
    4
    5web.form.portlet.handlers=mail,file
    6web.form.portlet.handler.mail=com.liferay.portlet.webform.util.MailWebFormHandler
    7web.form.portlet.handler.file=com.liferay.portlet.webform.util.FileWebFormHandler


What do you think?

Regards.
Björn Ryding
RE: Proposal for WebForm Portlet improvements
March 26, 2008 4:09 AM
Answer

Björn Ryding

Rank: Liferay Master

Posts: 582

Join Date: May 16, 2007

Recent Posts

Looks nice!

BTW, Liferay 5 uses ActiveMQ 5, which comes bundled with Apache Camel. Maybe you can get some extra leverage on your improvement if you create a CamelFormHandlerImpl.

http://activemq.apache.org/camel/components.html
Ezequiel Chavez
RE: Proposal for WebForm Portlet improvements
March 31, 2008 5:30 PM
Answer

Ezequiel Chavez

Rank: Regular Member

Posts: 135

Join Date: January 19, 2006

Recent Posts

I have been working on improvements, I already have some changes (java, jsp, properties).

Preview improvements...
Attachment

Attachment

Attachments: CSVFormat_FileHandler_Preview.jpg (32.7k), XMLFormat_MailHandler_Preview.jpg (34.8k)
Artur Linhart
RE: Proposal for WebForm Portlet improvements
April 1, 2008 2:32 AM
Answer

Artur Linhart

Rank: Expert

Posts: 458

Join Date: September 13, 2007

Recent Posts

Hello,

I would also vote for the specifiecation of the custom styles for the portlet, we had to add this, because the default formatting leads to not nice outfit of the resulting form and the styles could not be specified for this (at least in the version 4.3.x)

Archie
Jorge Ferrer
RE: Proposal for WebForm Portlet improvements
May 6, 2008 9:50 AM
Answer

Jorge Ferrer

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2757

Join Date: August 31, 2006

Recent Posts

Hi Ezequiel,

Alberto is working as we speak on a database backend for the webforms. That's a much more scalable solution than writing to a file. That feature could still benefit from your suggestion if we want to create plugable exporters to different formats.

Regarding your UI changes. We have plans for a completely redesigned form builder. It's been already mocked up and it will be used in several places in Liferay besides the Web Form (for example for building journal structures). It might take a while until this is finished so any incremental improvements that you have over the current UI will still be helpful if you decide to contribute them.