Uploaded image for project: 'Click'
  1. Click
  2. CLK-109

Automatically register public Page controls

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      Target Click 0.21

      Description

      Form Click Hacks email:
      ---------------------------------

      1. Controls that are public fields on Pages are auto-page.addControl'd.

      We hacked ClickServlet.createPage to walk a Page's public fields, find ones
      that are controls, and page.addControl them. Also note that, while doing
      this, if the control's getName() returns null, we go ahead and call
      control.setName(fieldName). So, our employerForm field has its name set to
      "employerForm", and in the template we can do "$employerForm" to render it.

        Activity

        Hide
        medgar Malcolm Edgar added a comment -

        Checked into SVN. Will be available in release 0.21

        Show
        medgar Malcolm Edgar added a comment - Checked into SVN. Will be available in release 0.21

          People

          • Assignee:
            medgar Malcolm Edgar
            Reporter:
            click_stephen Stephen Haberman
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development