Re: InterruptDispatchException and ObjectRepository

Stefan Armbruster <[email protected]> Thu, 2 Jun 2005 14:31:57 +0200
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1117715567-10967-88
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

quoting from ObjectRepository's javadoc:
"The Local object repository is a statemap object that lasts for the duration 
of a req-resp cycle."
Since the InterruptDispatchException only intercepts event handling inside a 
single req-resp-cycle, the local repository should survice.

Regarding the RepopFormMap questions: The EventContext itself is a StateMap 
(just like a local repository), so I'd recommend using context.putState() for 
storing a RepopulationFormMap in the control handler. When entering the 
"View" handler, using context.getState() gets back the FormMap serving as a 
model. After rendering, the formmap is being discarded.

The re-request builds up a new FormMap and the cycle starts over again.

Regards,
Stefan

Am Donnerstag, 2. Juni 2005 10:29 schrieb [email protected]:
> Hi,
>
> I have a question regarding ObjectRepository, and especially
> LocalRepository.
>
> Does its content survive to a InterruptDispatchException ?
>
> Another question (regarding Diez' contrib package) : what would be the
> best place to save a RepopulationFormMap between request / response /
> re-request events and to ensure form is really repopulated ?
>
> By the way, why didn't we include Repopulation stuff into main ?
>
>
> Franck


------------=_1117715567-10967-88
Content-Type: text/plain; name="message.footer"
Content-Disposition: inline; filename="message.footer"
Content-Transfer-Encoding: 8bit



--

Barracuda mailing list

[email protected]

http://www.objectweb.org/wws/lists/projects/barracuda


------------=_1117715567-10967-88--