Its a pitty that we cant do this in FormComponentPanel:
/**
* @see
org.apache.wicket.markup.html.form.FormComponent#getConvertedInput()
*/
public abstract Object getConvertedInput();
then we force everybody to think about it..
But you can't do then super.getConvertedInput() :( (because the compiler
thinks it is abstract which is not really the case..)
updateModel is more for modifying again the convertedinput to the model.
(like merging list)
Do we have more components that we should check? Like MultiFileUploadField?
johan
On 6/5/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Hi,
When fixing issues 500[1] and 522[2] I found that the best way of
fixing this is to override getConvertedInput (which was declared as
final). For anyone using FormComponentPanel, please take note that if
you want this component to work properly with validators and form
validators you should override getConvertedInput rather then
updateModel. Please see the implementations of DateField and
DateTimeField and the updated JavaDoc of FormComponentPanel.
Cheers,
Eelco
[1] http://issues.apache.org/jira/browse/WICKET-522
[2] http://issues.apache.org/jira/browse/WICKET-500
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user