Hi guys, I need clarity on this...

This is what my detachable model
public CCTIDetachableModel extends Loadable DetachableModel {

private String id;
private Integer version;
private Dao dao;

public Object load() {
    MyObject myobj = dao.get(id);
    if (version == null) {
      version = myobj.getVersion();
    }
    else  if (!myobject.getVersion().equals(version)) {
      throw new MyVersionMismatchException(MyObject.class, id, version);
    }

    return myobj;
  }
}

I use an AjaxDefaultDataTable or DefaultDataTable on my page.

So the record appears appropriately with the approprirate checkboxes
corresponding to each model.
Each checkbox is mapped to a detachable model.

Everytime I click the delete button which is an IndicatingAjaxButton,
The exception is thrown how ever I'm not able to catch the exception it on
the onSubmit() method of my 
button.

The process never seems to enter the onSubmit() method of my indicating ajax
button instead it goes directly to the DetachableModel where the exception
is thrown giving me no chance to catch the exception.

How do I resolve this?
-- 
View this message in context: 
http://www.nabble.com/Versioning-Problems-With-DataTable%2C-Spring-Hibernate-tf4484198.html#a12787468
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to