One other thing, if you set the app in trace mode Click will print out the events as they are processed.

For example you should see something like:

  [Click] [trace]    invoked: 'table' FormTable.onInit()
  [Click] [trace]    invoked: 'table' FormTable.onProcess() : true

meaning the FormTable.onInit was called and then its onProcess event was called.

kind regards

bob


Bob Schellink wrote:
Hi WarnerJan,


WarnerJan Veldhuis wrote:

I am having a fight with the FormTable and theSubmit that is on it. This
is the code I am using in my class that extends FormTable:

public ObjectFormTable () {
<snip>
   setupColumns();//adding FieldColumns here
   getForm().add( new Submit("save", getMessage("button_submit"), this,
"onSave"));
<snip>
}

I also have the method onSave:
public boolean onSave() {
<snip>
}


Is the onSave method declared on the ObjectFormTable or the Page? According to your ObjectFormTable declaration the onSave method should be declared on the ObjectFormTable itself. If you declare the onSave on the Page that would be one reason why your breakpoint isn't hit.

I also assume you use the FormTable internal Form and don't associate it with an external Form?

Let us know.

kind regards

bob


Reply via email to