Re: SCB1381 - Scarab summary page
Johannes Hoechstaedter <[email protected]>
| Newsgroups | gmane.comp.java.scarab.devel |
|---|---|
| Message-ID | <[email protected]> |
ok thanks, I will give it a try tomorrow. Völker Ronny schrieb: > Hello, > > @Youngho Cho: > The problem is, that, when removeAll is called the ReportTableModel-Object (the this in the put call) is not accessible. > > @Johannes: > Maybe the this.getClass() and ReportTableModel.class do not return the same Class-Object in every call, or the two "getValueAt" are treated as different objects and thus as different methods. > You could try something like: > > Public final String REPORT_TABLE_MODEL ="ReportTableModel"; > Public final String GET_VALUE_AT ="getValueAt"; > ReportManager.getMethodResult().put(contents, REPORT_TABLE_MODEL, GET_VALUE_AT,new Integer(row),new Integer(column)); > ReportManager.getMethodResult().removeAll(ReportTableModel.REPORT_TABLE_MODEL, ReportTableModel.GET_VALUE_AT); > > Ronny > -----Original Message----- > From: Youngho Cho [mailto:[email protected]] > Sent: Tuesday, March 04, 2008 12:51 AM > To: [email protected] > Subject: Re: SCB1381 - Scarab summary page > > Hello Johannes, > > I don't know what exact situation here but > > How about try like > > Put > ReportManager.getMethodResult().put(contents, this, "getValueAt", new > Integer(row),new Integer(column)); > > Remove > ReportManager.getMethodResult().removeAll(object, "getValueAt"); > > > Thanks, > > Youngho > > ----- Original Message ----- > From: "Johannes Hoechstaedter" <[email protected]> > To: "Dev List Scarab" <[email protected]> > Sent: Monday, March 03, 2008 10:58 PM > Subject: SCB1381 - Scarab summary page > > > >> Hi everybody, >> >> I am working for a new revision of the patch for issue 1381. But I have >> a problem now. I want to clear the method cache for the ReportManager, >> where the values for the table are stored, when an entry in the activity >> table is created, and the method cache for ModuleManager, with the >> ReportBridge instances when a module is changed. >> >> The following line in ActivityManager works fine: >> >> ReportManager.getMethodResult().clear(); >> >> this line in ActivityManager not: >> ReportManager.getMethodResult().removeAll(ReportTableModel.class,"getValueAt"); >> >> why? >> >> the put method int ReportTableModel is: >> ReportManager.getMethodResult().put(contents,this.getClass(),"getValueAt",new >> Integer(row),new Integer(column)); >> >> thankx in advance >> Johannes >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > >