Bugs item #1546620, was opened at 2006-08-25 14:48
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=1546620&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: Ralf Ebert (dreivier)
Assigned to: Nobody/Anonymous (nobody)
Summary: FormComponent - working with values not pushed to the model
Initial Comment:
The different operations for accessing the current
"value" of a FormComponents (hasRawInput, getRawInput,
getModelObject, getModelValue, getValue, getInput) are
confusing all the time I have slightly more complex
form value logic. In my opinion, everything that you
should be able to get outside from a form component are
two cases:
- getModelObject (the current model object, which only
gets updated on successful form validation)
- A second method which is defined like this:
- if the form component has raw input which
can be converted according to the form
component's converter -> this converted object
(even if not valid)
- otherwise: the original model object
Such a second operation is (to my knowledge) not
available currently, so you have to express this
currently with statements like "(fc.hasRawInput() ?
fc.getConvertedInput() : fc.getModelObject())" if you
want to use converted values which are not pushed to
the model yet in a consistent way.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1546620&group_id=119783
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop