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

Automatically register public Page controls

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core
    • None
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: