Thanks for the reply. I'll do the checking/issue creating on monday. The "real life code" where we detected this uses a more complete template and the JSF builtin window ID, so a ticket will be highly probable. I trimmed it down to a minimalistic example to reproduce this behavior.
Regards, Ortwin Escher ________________________________________ Von: Thomas Andraschko [[email protected]] Gesendet: Freitag, 5. Dezember 2014 15:17 An: [email protected] Betreff: Re: ViewAccessScope gets destroyed in combination with f:viewAction Hey, could you please try to add h:head and ds:windowId to all views? If it doesn't work after this, please create an issue. Regards, Thomas 2014-12-05 13:55 GMT+01:00 Ortwin Escher <[email protected]>: > Hello, > > We're using DeltaSpikes ViewAccessScope and ran into a problem in > combination with f:viewAction. > > The setup: > Two ViewAccessScoped beans, two pages and both beans are accessed on both > pages. > > Expected behavior: > When navigating between the two pages both ViewAccessScope should stay > alive regardless of f:viewActions. > > Actual behavior: > The f:viewAction seems to count as an additional request for DeltaSpike > and thus destroys all ViewAccessScoped beans that are not touched by it. > Accessing one of the ViewAccessScoped beans in a f:viewAction destroys the > bean that is not accessed. Accessing none of the ViewAccessScoped beans > will destroy all ViewAccessScoped beans. > > I've added a small demo application to demonstrate the behavior. Is this a > feature or a bug? > > Regards > Ortwin Escher > > > -- > Ortwin Escher - Enterprise Developer > open knowledge GmbH, Oldenburg > Tel: +49 (0) 441 - 1082-0 > Fax: +49 (0) 441 - 4082-111 > [email protected] > http://www.openknowledge.de > > Registergericht: Amtsgericht Oldenburg, HRB 4670 > Geschäftsführer: Lars Röwekamp, Jens Schumann > > > *WIR ZIEHEN UM!* > *Ab dem 1. Januar 2015 sind wir in der Kaiserlichen Post, Poststraße 1, > 26122 Oldenburg zu Hause.* > > > *Nächste Konferenz(en):* > Java EE Summit | Berlin | 8. bis 10. Dezember 2014 > www.openknowledge.de/news/article/java-ee-summit-2014-in-berlin.html > <http://www.openknowledge.de/news/article/java-ee-summit-2014-in-berlin.html?utm_source=Java-EE-Summit-Berlin-2014&utm_medium=General&utm_campaign=Shortener> > >
