Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2439

Handling Remember-Me Checkboxes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Incomplete
    • Future
    • None
    • Core
    • None
    • Operating System: Windows XP
      Platform: PC
    • 34612

    Description

      I have this scenario:

      in my form in the reset() I set the checkbox to "on".

      If the user turns it off, I'd expect that despite my reset's actions, a
      setCheckbox(null) would be called by struts. But that method is never called.

      On the surface, everything seems to perform fine. The user unchecks the
      checkbox and clicks submit(), which gives him an error (on purpose), which
      returs him back to the form, and the checkbox is empty. However, in the actual
      Form bean, the checkbox is still set to "on" (because nobody ever unchecked it)
      (btw, I keep it as a String - I believe that is the way).

      As a result, everything appears normal, but in fact nothing is working. Took me
      2 hours to figure that out.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ivan@ablogic.net Ivan Jouikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: