deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Andraschko <andraschko.tho...@gmail.com>
Subject Re: ViewAccessScope gets destroyed in combination with f:viewAction
Date Fri, 05 Dec 2014 14:17:47 GMT
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 <ortwin.escher@openknowledge.de>:

>  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
> ortwin.escher@openknowledge.de
> 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>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message