Hi!

I have a dropdown choice which submits the form as
IFormSubmittingComponent because I need to have the effect of
IFormSubmittingComponent.getDefaultFormProcessing=false.

However, Wicket ajax does the following:

wicket-ajax:

if (submitButton != null) {
  s += Wicket.Form.encode(submitButton) + "=1";
}

So the dropdown values get garbled with 1...

My workaround is the following:
  @Override
  public String[] getInputAsArray() {
    List<String> strings = new LinkedList<String>();
    if (stringArray != null) {
      strings.addAll(Arrays.asList(stringArray));
    }

    strings.remove("1");
    return strings.toArray(new String[strings.size()]);
  }

However, the workaround is quite a hack and I cannot allow value 1
into the component.

Would there be a better way to fix this in wicket ajax?

**
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to