Hi George,

I' move 
@SessionState
private ObjectState objectState; 
away from Component.class and make it a field of both of your page classes.
You're using a SSO anyway so there's no point in fumbeling around with
acrivation contexts.

And this looks a bit awfull
void setupRender() {
 if((objectState.getObject() == null) || (object  != null && !object
.getId().equals(objectState.getObjectt().getId()))) {
   objectState.setObject(object);
}

I'd rewrite that to (Hope I got it correct):
void setupRender() {
  if this.object == null {
    return;
  }
  
  final YourObjetType stateValue = this.objectState.getObject();
  if (stateValue == null {
    this.objectState.setObject(this.object);
    return;
  }

  if (! stateValue.getId().equals(tihs.object.getId()) {
    this.objectState.setObject(this.object);
  }
}



-----
http://www.winfonet.eu
--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Saving-using-form-zone-tp4639355p4640181.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to