Bugs item #1266477, was opened at 2005-08-22 21:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1266477&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Ralf Ebert (dreivier)
Assigned to: Nobody/Anonymous (nobody)
Summary: PropertyModel validation / TypeValidator
Initial Comment:
LONG TERM ISSUE:
There should be a PropertyModelValidator, which validates form
input with the same rules which are later used for the conversion.
This should be used by default by every form item that is bound to
propertymodels.
When bound to a property model it has to go there at the end, so
there is no reason not to validate it by default.
RELATED SHORT TERM BUG:
TextField test = new TextField("test", Integer.class);
test.add(new TypeValidator(Integer.class));
add(test);
When entering single spaces " " in such a text field you get:
Caused by: wicket.util.convert.ConversionException: Cannot
parse ' ' using format [EMAIL PROTECTED]
at
wicket.util.convert.converters.AbstractConverter.newConversionE
xception(AbstractConverter.java:72)
at wicket.util.convert.converters.AbstractConverter.parse
(AbstractConverter.java:52)
at
wicket.util.convert.converters.AbstractNumberConverter.parse
(AbstractNumberConverter.java:55)
at wicket.util.convert.converters.IntegerConverter.convert
(IntegerConverter.java:42)
at wicket.util.convert.Converter.convert(Converter.java:191)
at wicket.markup.html.form.TextField.updateModel
(TextField.java:110)
at wicket.markup.html.form.Form$6.formComponent(Form.java:
504)
at wicket.markup.html.form.Form$4.component(Form.java:280)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:
518)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:
531)
at wicket.markup.html.form.Form.visitFormComponents
(Form.java:276)
at
wicket.markup.html.form.Form.updateFormComponentModels
(Form.java:496)
at wicket.markup.html.form.Form.process(Form.java:374)
at wicket.markup.html.form.Form.onFormSubmitted(Form.java:
212)
... 57 more
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1266477&group_id=119783
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop