Bugs item #1461916, was opened at 2006-03-31 07:50
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=1461916&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.2
Status: Open
Resolution: None
Priority: 5
Submitted By: gcdha (gcdha)
Assigned to: Nobody/Anonymous (nobody)
Summary: FormComponent.checkRequired is incorrect with TextField

Initial Comment:
FormComponent.checkRequired has buggy behaviour.

I use a TextField in the following way:

TextField field=new TextField("name");
field.add(StringValidator.maximumLength(64));
field.setRequired(true);

If I enter no text in the formular, a feedback from 
the .properties-file should be received.

I debugged the method FormComponent.checkRequired, 
here the results:
input=null
TextField.isInputNullable() returns false

This means the first if-clause is fulfilled:

if (input==null && !isInputNullable()){
    return;
}

Generally the first if-clause should not be fullfilled,
but the second, so that I get an error.

For more details:
@see 
wicket.markup.html.form.FormComponent#checkRequired()

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1461916&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to