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

Wrong html form generation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core, extras
    • None
    • Click 1.1

    Description

      I found a problem in the Form.toString() when you set the number of columns in
      the form.

      The following code generates an invalid html, it does not close the second <tr
      class="fields">..

      public class TesteForm extends Page {

      public Form form = new Form();

      public void onInit()

      { form.setColumns(2); form.add(new TextField("field 1")); form.add(new TextField("field 2"));//close </tr> here form.add(new TextField("field 3"));//don't close this one... }

      }

      not sure if this is easy to solve...

      regards,
      Ricardo

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            ricardolecheta Ricardo Lecheta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: