Hello.

I'm using a CheckGroup in a Wizard.

Let's say the CheckGroup is in step 2 of my Wizard:

 [1] <-> [2] <-> [3]

Going through the Wizard, during step 2, I check all the checkboxes,
then I go to step 3.

If I back up to step 2, everything remains checked.

However, if I back up again to step 1, then click next to step 2, I lose
all my checkmarks.


In the code for Check, whether or not the checkbox is checked is
determined by this:

  if (group.hasRawInput())
  {
    final String[] input = group.getInputAsArray();

    if (input != null)
    {
      for (int i = 0; i < input.length; i++)
      {
        if (uuid.equals(input[i]))
        {
          tag.put("checked", "checked");
        }
      }
    }
  }
  else if (collection.contains(getModelObject()))
  {
    tag.put("checked", "checked");
  }


When group.hasRawInput() returns false, and we fall through to the else
clause, everything works as expected.

However, when group.hasRawInput() returns true, on the next line
group.getInputAsArray() returns null. This means that the for condition
never gets executed, so my checkboxes don't get checked.

What's the story with hasRawInput()?


Thanks!
David





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to