Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2217

Provide a method returning form field names as ordered in the form doc and respect the order in the returned FormMap

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.24.06, 2.25.04-alpha
    • None
    • None

    Description

      org.hippoecm.hst.component.support.forms.FormMap should provide all the field names as ordered by the form document editor and also it should return a form map respecting the order.

      Recently we added a cms perspective showing all the form input in the list, which reads all the related form nodes (hst:formdata) and its child nodes (hst:formfieldvalue).
      However, the stored child nodes (hst:formfieldvalue) do not respect the order added by the form document editor user. So, the perspective couldn't show the list data in the specified order to the user.

      We might try to improve the EasyFormComponent only with some hacks through direct access on FormBean somehow, but I think it must be much better if base classes of HST-2 on which EasyForm depends is improved in this way.

      In summary:
      i) I'd like to have 'public String [] FormMap#getFieldNames();' returning immutable field names array, which returns all the field names defined in the form document.
      ii) I hope FormMap#getFormMap() also returns a map which respects this designed field order.

      Attachments

        Issue Links

          Activity

            People

              svoortman Simon Voortman (Inactive)
              wko Woonsan Ko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: