I'm building a StartAndEndDateTime form component based on Eelco's
DateTimeField. It is essentially the same as his with the time fields
repeated.
The goal is to get my new custom component to update two date fields in
the parent form's model. Here is what the end of my convertInput()
method look like:
<pre>
Object mdlObj = getForm().getModelObject();
new PropertyModel(mdlObj, "svcDate").setObject(new Date(date
.getMillis()));
new PropertyModel(mdlObj, "endSvcDate").setObject(new Date(endDate
.getMillis()));
setConvertedInput(<tried a number of things here>);
</pre>
I'm doing something wrong with setConvertedInput:
<pre>
ERROR org.apache.wicket.RequestCycle - Error calling method: public
void MyClass.setSvcDate(java.util.Date) on object: mycl...@e56328
</pre>
If I'm setting two fields in the Model, what should I pass to
setConvertedInput?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org