On Thu, 24 Jul 2008, marco m wrote: > I'm using a FileUploadField. I want to bind it to a field on my model > object. The field is a string type that corresponds to the filename of the > uploaded file once it has been saved on the server. > > I'm overloading convertInput and setting the filename as converted input but > this does not get set on my model object. So instead I'm manually doing it > in the convertInput method. Is this because the FileUploadField is > represented by a FileUpload object and not a string? Why doesn't > setConvertedInput update my model?
In processing the form, first the raw input is converted, and then the converted input is used to update the model. But these happen in sequential stages which only take place if the previous step succeeded. So you have to process the form (or at least the field) all the way before the model gets updated. I'm unsure of what's happening in your case, but which Wicket version are you using? Could this https://issues.apache.org/jira/browse/WICKET-1684 be relevant? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oy <URL: http://www.ri.fi/ > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
