Hi !
If I have an array of EOs as a component instance variable containing EOs I fetch in its constructor. If the user on that component stays there for 2 mins. If in the meantime a background thread deleted the EO. If now the user does an action in the component that returns null (we stay in the same component) Then I get an IllegalStateException in the appendToResponse of the page.
I understand that this is quite normal, no doubt about it. But now I would like to recover from that "error". I can catch the exception. Sure ! But what do I do then? If in the catch I try to refetch some data, what do I call then? self.appendToResponse again? No : if the exception was raised because of object I did not refresh, I will loop. super.appendToResponse ? No : that could mean calling it twice and could lead to having the html twice in the page generated response.setStatus(302) ? No : I could loop too...
I am sure this is quite a usual problem but I can't find a logical solution. Did I miss something?
Regards
Fabrice Pipart
www.easyshadow.com
International Corporate Consulting Palais de la Scala 1 avenue Henri Dunant Suite 1155 MC - 98000 Monaco
Skype: fabrice.pipart Tel. +377 97 98 21 04 (direct) Fax. +377 97 70 88 07 |