By the way, it is a common pattern to call in a custom component e.g.
super.processDecodes() in processDecodes() or super.processValidators()
in processValidators(). This was always working before.
Am 30.03.2014 23:23, schrieb Oleg Varaksin:
Hello MyFaces team,
We get a StackOverflowError since MyFaces 2.x. The stack trace is
shown here http://forum.primefaces.org/viewtopic.php?f=14&t=36999
The problem: Wenn we call super.processEvent(event) in the
processEvent() of a custom component, we get a recursion which ends in
StackOverflowError.
@Override
public void processEvent(ComponentSystemEvent event) throws
AbortProcessingException {
super.processEvent(event);
...
}
The call super.processEvent(event) is necessary because e.g. Mojarra
executes there some important code. But if we look at processEvent()
in the MyFaces' UIComponent, it iterates over all listeners for
processEvent() and invokes them. That means, processEvent() of the
custom component is invoked again. Does it work as designed or a is it
a bug?
It was working before MyFaces 2.x and it works for all Mojarra versions.
Thanks in advance.
Oleg.