Could you please provide us with a little bit of code to look at your case?
Thanks,
Eelco
On 8/25/06, landtuna [EMAIL PROTECTED] wrote:
I have a POJO that is the object for my WebPage's Model (let's call it
SystemState). Some components need to interact with this object in a
non-trivial
Eelco Hillenius wrote:
Could you please provide us with a little bit of code to look at your
case?
Here is the most trivial case I could come up with. Click the number 1.
Click your browser's back button. Click the number 2. I would expect the
page to say 1 200, but it says, 100 200.
I got past my original problem by changing my onClick methods to look like
this. Is this the right approach?
public void onClick() {
final int oldA = ((StatePojo)
getPage().getModelObject()).getA();
TestPage.this.addStateChange(new
i believe property model should be doing that for you. johan are you reading with us?-IgorOn 8/28/06, landtuna
[EMAIL PROTECTED] wrote:I got past my original problem by changing my onClick methods to look like
this.Is this the right approach?public void onClick() {final int oldA =
igor.vaynberg wrote:
i believe property model should be doing that for you. johan are you
reading
with us?
I think I can see why PropertyModel isn't doing it -
There's a block inside ModelChange that skips cloning the model if the model
of the component that's changing is the same as
Removing the if block below the comment If the component is using the same
model as the page in ModelChange.java fixes the problem. I suspect this
change breaks something else, though, so someone else should look into what
the correct fix is.
--
View this message in context:
Would you mind creating an issue for this, so we can track it/ won't
forget to address it? Thanks,
Eelco
On 8/28/06, landtuna [EMAIL PROTECTED] wrote:
Removing the if block below the comment If the component is using the same
model as the page in ModelChange.java fixes the problem. I
Eelco Hillenius wrote:
Would you mind creating an issue for this, so we can track it/ won't
forget to address it? Thanks,
Entered as issue 1548207.
--
View this message in context:
http://www.nabble.com/Versioning-a-PropertyModel-backed-by-another-Model-tf2166294.html#a6029382
Sent from
I have a POJO that is the object for my WebPage's Model (let's call it
SystemState). Some components need to interact with this object in a
non-trivial way in their onClick handlers. Other components use
PropertyModel models to get at a specific part of the SystemState.
My whole application