deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gerhard.petra...@gmail.com>
Subject Re: Problem with @ViewAccessScoped
Date Thu, 13 Mar 2014 14:44:46 GMT
#1 please don't use final methods
#2 you could also test it with owb 1.1.8 (which uses a different approach
for proxies)

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2014-03-13 15:31 GMT+01:00 l.penet@senat.fr <l.penet@senat.fr>:

> On 13/03/2014 15:12, Gerhard Petracek wrote:
>
>> please try if it is an issue with custom scopes.
>> e.g. by using @SessionScoped instead of @ViewAccessScoped
>> if it works with @SessionScoped, try a different custom scope e.g.
>> @WindowScoped
>>
> I tried with @ViewScoped and @SessionScoped. I partly have the same
> behaviour. The bean is correctly first instantiated, but the .getValues is
> still executed on the proxy and not on the bean.
>
> For now, I use :
>
>
>    public final List<Type> getValues() {
>         EditionContextWithoutParent<Type> unwrapInstance =
> NormalScopeProxyFactory.unwrapInstance(this);
>         if(unwrapInstance.values == null) {
>             unwrapInstance.values = unwrapInstance.internalGetValues();
>         }
>         return unwrapInstance.values;
>     }
>
>
> as a temporary workaround, but it seems to me that such a call is missing
> somewhere deeper. :-)
>
>
> Best regards,
>
> Ludovic
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>
>

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