You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Alastair Maw (JIRA)" <ji...@apache.org> on 2007/06/15 00:34:28 UTC
[jira] Resolved: (WICKET-659) Null form fields are converted to
empty strings
[ https://issues.apache.org/jira/browse/WICKET-659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alastair Maw resolved WICKET-659.
---------------------------------
Resolution: Cannot Reproduce
With something like this:
String foo;
public HomePage() {
Form form = new Form("form") {
@Override
protected void onSubmit() {
System.err.println(foo);
}
};
add(form);
TextField foo = new TextField("foo", new PropertyModel(this, "foo"));
foo.add(EmailAddressValidator.getInstance());
form.add(foo);
}
It does as you'd expect. This was a bug until fairly recently. Your snapshot must be old.
> Null form fields are converted to empty strings
> -----------------------------------------------
>
> Key: WICKET-659
> URL: https://issues.apache.org/jira/browse/WICKET-659
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta1
> Environment: Wicket 1.3.0 snapshot.
> Reporter: Nick Heudecker
> Fix For: 1.3.0-beta2
>
>
> When form fields are submitted with no data the raw input is converted to a zero-length string. This causes odd behavior for the EmailAddressValidator.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.