...
Code Block |
---|
| java |
---|
| java |
---|
title | Deactivation of the InvalidValueAwareMessageInterpolator |
---|
|
@ApplicationScoped
@Alternative
public class CustomJsfModuleConfig extends JsfModuleConfig
{
@Override
public boolean isInvalidValueAwareMessageInterpolatorEnabled()
{
return false;
}
}
|
Due to https://issues.jboss.org/browse/WELD-802
Image Removed it's required to use @Alternative (+ xml config) instead of @Specializes.
...
Use @Alternative + XML config instead of @Specializes. With some versions of Glassfish v3 @Alternative doesn't work any more, so you have to use @AlternativeImplementation provided by the alternative implementation module of CODI. Or use a version of Weld which contains the fix for WELD-912.