Bugs item #1453022, was opened at 2006-03-18 08:07
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=1453022&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.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Eelco Hillenius (eelco12)
Assigned to: Nobody/Anonymous (nobody)
Summary: simplify converters

Initial Comment:
We get a lot of questions about Wicket's conversion. It
is too hard to use currently, due to it's generic
structure. This genericity is not needed for our
purpose - it will always be conversions from string -
some object and back again, and it is a serious
limitation that there is no way to tell whether a
conversion is for an input value (setModelObject) or an
output value (getModelAsString). For instance, you
can't implement a converter that converts from one
string to another, e.g. shifting a mask. It can be
argued that that is not an actual type conversion, but
the net result is that if you want to do things like
that you have to provide a custom converter anyway for
the output values, and override FormInput.getInput()
for the input values.

I think we should consider to change to an interface
with two methods, e.g. stringToValue and valueToString.
Using that interface might be less elegant in some
ways, but otoh it is more focussed on our purpose, and
it will be more straightforward to use.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1453022&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