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.
|