Re: Changing a Form's Model

2009-08-12 Thread Troy Cauble
Yes, a different EM for each DDC option. Replacing the form's model is working. Replacing the form's modelObject worked before that. I'm just trying to understand what the best current practice is. What would the advantage of fragments be? Creating the fragment on selection or maintaining N

Re: Changing a Form's Model

2009-08-12 Thread bferr
Fragments would allow you to have different markup and markup hierarchy for each DDC option in case the entity attributes were different. LazyBoy wrote: Yes, a different EM for each DDC option. Replacing the form's model is working. Replacing the form's modelObject worked before that.

Re: Changing a Form's Model

2009-08-11 Thread bferr
It sounds like you have different entitiy models for each DDC option right? That's why you are replacing the model of the form each time? I think you could try creating a fragment for each DDC option and each fragment would have it's own model. Then replace the fragment inside the form when

Re: Changing a Form's Model

2009-08-10 Thread Erik van Oosten
I am glad you got that right :) If the model has changed, call modelChanged() on the form (and/or the form components, not sure). There is no need to again set the model. Regards, Erik. Troy Cauble wrote: in a form that gets reused (repetitively in the same page). Don't you

Re: Changing a Form's Model

2009-08-09 Thread Troy Cauble
in a form that gets reused (repetitively in the same page). Don't you ever re-use a component! Sharing models/behaviors is fine, sharing components is not. Thanks, Erik, but I'm pretty sure we're talking about different things. I'm just using components on a page and changing the data.

Changing a Form's Model

2009-08-08 Thread Troy Cauble
I have the following password confirmation pattern borrowed from WIA PasswordTextField p1 = new PasswordTextField(password).setResetPassword(false); docForm.add(p1); PasswordTextField p2 = new