Re: Updating Form Elements by Ajax with new POJO-Model

2009-12-16 Thread MattyDE
In a nutshell: I want to use this: http://cwiki.apache.org/WICKET/how-to-use-the-same-form-for-editing-and-new.html but ajax-driven... =/ -- View this message in context: http://old.nabble.com/Updating-Form-Elements-by-Ajax-with-new-POJO-Model-tp26810357p26810518.html Sent from the Wicket -

Re: Updating Form Elements by Ajax with new POJO-Model

2009-12-16 Thread Eugene Malan
Try replacing the Model's object instead of the actual Model. private EditFormModel editFormModel = new CompoundPropertyModelFunctionsbereich(el); replace //f.setModel(new CompoundPropertyModelFunctionsbereich(el)); editFormModel.setObject(el); On 16 Dec 2009, at

Re: Updating Form Elements by Ajax with new POJO-Model

2009-12-16 Thread Eugene Malan
I think you might have to use setVisibilityAllowed(true), otherwise the html does not make it onto the page. Maybe this is better... f = new EditFormFunctionsbereich(form,new CompoundPropertyModelFunctionsbereich(el)); f.setVisible(false); f.setVisibilityAllowed(true); and

Re: Updating Form Elements by Ajax with new POJO-Model

2009-12-16 Thread MattyDE
This works!!! Thanks SO much. But is it the right and easiest way? Any other suggestions? Thaanks! :) Eugene Malan wrote: Try replacing the Model's object instead of the actual Model. private EditFormModel editFormModel = new CompoundPropertyModelFunctionsbereich(el);

Re: Updating Form Elements by Ajax with new POJO-Model

2009-12-16 Thread MattyDE
Yeah Eugene, f.setModelObject(e) works too and its even better i thinks :) Thanks! Eugene Malan wrote: I think you might have to use setVisibilityAllowed(true), otherwise the html does not make it onto the page. Maybe this is better... f = new EditFormFunctionsbereich(form,new