[PATCH] Suggestion for widget population

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: 2.2
    • Component/s: Blocks: Forms
    • None
    • Environment:
      Operating System: other
      Platform: Other
    • 32169
    • Patch available

      This patch enables CForm to only populate the widgets that has been rendered.
      Currently it only works if you use the
      src/blocks/forms/java/org/apache/cocoon/forms/generation/jx-macros.xml macro to
      render your widgets.

      It should be fully back-compatible as it introduces an additional flag in the
      Form.showForm function that flags whether population should be done old-style
      (recursively through all widgets) or with the new method.

      To use it in flow do:

      form.showForm(uri, bizData, true);

      Where true indicates that selective population should be used. If you instead do:

      form.showForm(uri, bizData)

      The recursive behaviour will be used.

            Assignee:
            Unassigned
            Reporter:
            Jonas Ekstedt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: