This content has been marked as final.
Show 5 replies
-
1. Re: The method destroy is called twice
norman.richards Aug 13, 2007 7:12 PM (in response to deved)Are you saying that you think that the destroy callback shouldn't be called if you have already manually called it?
-
2. Re: The method destroy is called twice
deved Aug 13, 2007 7:41 PM (in response to deved)Yes. I am wrong? Why should be called more than once?
-
3. Re: The method destroy is called twice
norman.richards Aug 13, 2007 8:33 PM (in response to deved)The destroy callback is always called by Seam. It doesn't know (or care) if you have called this method yourself.
-
4. Re: The method destroy is called twice
monkeyden Aug 13, 2007 10:17 PM (in response to deved)If you want Seam to call it twice, just use this @BeatADeadHorse annotation.
Note: No actual horses, dead or alive, are harmed by this annotation -
5. Re: The method destroy is called twice
deved Aug 14, 2007 9:18 AM (in response to deved)Hi Richards. I try with "tableModel.clean()" and with this:
if(tableModel !=null) {
Component component = Seam.componentForName("tableModel");
component.destroy(tableModel);
//component.callDestroyMethod(tableModel);
}
And I have the same result.
When I call @Destroy method this way, Seam doesn't know?
What difference exist between "component.destroy" and "component.callDestroyMethod"?
I can't manually call @Destroy, when I know exactly when should be called?
Thanks Richards.