Re: Re2: file upload in nested form with CPM needs dummy model

2013-08-05 Thread Martin Grigorov
Hi, On Mon, Aug 5, 2013 at 2:03 PM, Tom Eicher wrote: > Hello Martin & List, > > Would it not be much more straightforward to just instantiate one of the >>> existing models, like >>> new FileUploadField("UploadFileField", new >>> Model>())); >>> >>> or some Model.of() variant ? >>> >>> >>

Re2: file upload in nested form with CPM needs dummy model

2013-08-05 Thread Tom Eicher
Hello Martin & List, Would it not be much more straightforward to just instantiate one of the existing models, like new FileUploadField("**UploadFileField", new Model>())); or some Model.of() variant ? You mean Wicket automatically to do this for you ? In current Wicket if a component has no

Re: file upload in nested form with CPM needs dummy model

2013-08-02 Thread Martin Grigorov
Hi, On Thu, Aug 1, 2013 at 6:09 PM, Tom Eicher wrote: > Hello Martin & List, > > Yes, okay, but is it really necessary for me to define an own model class? > Would it not be much more straightforward to just instantiate one of the > existing models, like > new FileUploadField("**UploadFileField"

Re: file upload in nested form with CPM needs dummy model

2013-08-01 Thread Tom Eicher
Hello Martin & List, Yes, okay, but is it really necessary for me to define an own model class? Would it not be much more straightforward to just instantiate one of the existing models, like new FileUploadField("UploadFileField", new Model>())); or some Model.of() variant ? However, new Model(

Re: file upload in nested form with CPM needs dummy model

2013-08-01 Thread Martin Grigorov
Hi Tom, Did you see my response from last Wednesday ? It looks like you missed it. On Thu, Aug 1, 2013 at 9:40 AM, Tom Eicher - von Unterwegs wrote: > Any idea where I'm thinking wrong ? > Thanks, Tom. > > > Tom Eicher schrieb: > > >Hello, > > > >I have an outer form, with a CPM for a busines

AW: file upload in nested form with CPM needs dummy model

2013-08-01 Thread Tom Eicher - von Unterwegs
Any idea where I'm thinking wrong ? Thanks, Tom. Tom Eicher schrieb: >Hello, > >I have an outer form, with a CPM for a business entity. > >An inner form >Form uploadImageForm = new Form<>("UploadImageForm"); > >has a >FileUploadField uploadImageField = > new FileUploadField("UploadImageField"

Re: file upload in nested form with CPM needs dummy model

2013-07-26 Thread Martin Grigorov
Hi, On Wed, Jul 24, 2013 at 3:55 PM, Tom Eicher wrote: > Hello, > > I have an outer form, with a CPM for a business entity. > > An inner form > Form uploadImageForm = new Form<>("UploadImageForm"); > > has a > FileUploadField uploadImageField = > new FileUploadField("**UploadImageField"); > >

file upload in nested form with CPM needs dummy model

2013-07-24 Thread Tom Eicher
Hello, I have an outer form, with a CPM for a business entity. An inner form Form uploadImageForm = new Form<>("UploadImageForm"); has a FileUploadField uploadImageField = new FileUploadField("UploadImageField"); and when I submit the inner form, wicket tries to find getters/setters for Uplo