Just wanted to update, I have checked out the Palette too and looks cool.
However wanted to share this bit. Adding the following
componentInstance.modelChanged();
componentInstance.setModelObject(selectedChoice);
ie, I get the choices selected and add it to the Model. By invoking
modelChanged()
Hi!
componentInstance.modelChanged();
componentInstance.setModelObject(selectedChoice);
Note: componentInstance.setModelObject will call modelChanged from
within if the model is actually changed
1. On the Form the user types in some information and then hits Save.
2. The form comes back
Hi
Yeah I did have only the setModelObject() but it did not clear it that is
why I added this. Maybe I have not used it correctly.Since you mentioned
'Note: componentInstance.setModelObject will call modelChanged from within
if the model is actually changed'
If the model is actually changed.
Hi!
'Note: componentInstance.setModelObject will call modelChanged from within
if the model is actually changed'
If the model is actually changed. That is what I am not sure, when does it
get notified that a change has happened.?Setting of an entirely new instance
in the model should do
Hi
Yep, I got it now. Thanks. I now create a new instance of the Model itself.
This satisfies the comparison.
if (!getModelComparator().compare(this, object)){
...
}
Earlier I was only resetting the contained object within the Model.
Thank You !
Niv
On Tue, Jul 27, 2010 at 3:27 PM, Martin
Hi!
Did you notice wicket has a built-in component called palette that can
do this for you?
http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage
**
Martin
2010/7/23 Nivedan Nadaraj shravann...@gmail.com:
Hi All,
I use the
Hey Mate!!,
That is classic. Will check it out, great. Again if you do know how I can
address the issue I had will be good to know even if I dont use it since the
Pallete offers it.
Thanks !!
Niv
On Fri, Jul 23, 2010 at 5:31 PM, Martin Makundi
martin.maku...@koodaripalvelut.com wrote:
Hi!
Hi!
Yeah, if you look at the Palette you can se it is not trivial so it
will save you a lot of time ;)
**
Martin
2010/7/23 Nivedan Nadaraj shravann...@gmail.com:
Hey Mate!!,
That is classic. Will check it out, great. Again if you do know how I can
address the issue I had will be good to
Cheers mate thanks for that. Only I thought it was one step closer to
building my own component and know the details of it. But yeah point taken.
Cheers
Nive
On Fri, Jul 23, 2010 at 5:43 PM, Martin Makundi
martin.maku...@koodaripalvelut.com wrote:
Hi!
Yeah, if you look at the Palette you