Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5 M1
    • Component/s: extras
    • Labels:
      None

      Description

      I have a strange PropertySelect problem. I have a CayenneForm with
      some TextFields and some PropertySelects. The page also have a table
      where users can list entries to edit. It is very much like
      http://www.avoka.com/click-examples/cayenne/cayenne-form-page.htm

      Pressing the edit-link in the table works fine. It does a
      form.setDataObject(theDataObject).

      I want kind of the same functionality for the cancel-button in the
      CayenneForm. If user does some editing and press cancel, the changes
      are lost, but the entry is still up for editing. This how our users
      want the cancel-button to work.. As this is kind of the same as the
      edit-link, I have implemented this the following way:

      public boolean onCancelClick()

      { form.clearErrors(); form.getDataContext().rollbackChanges(); form.setDataObject(dataObject); return true; }

      Should be almost the same thing as for the edit-button in the table
      row. It is working for all fields except the PropertySelects. Those
      are not reset to their original value, but set to blank.

      I raised this issue on the list and it was confirmed. See
      http://sourceforge.net/mailarchive/forum.php?thread_name=4A54D954-4067-4B74-ABCF-3419D6D06060%40pvv.ntnu.no&forum_name=click-user

        Activity

          People

          • Assignee:
            Malcolm Edgar
            Reporter:
            Tore Halset
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development