StackOverflowError when using ValueExpressionAnalayzer with nested CC on postback

From: Thomas Andraschko <>
Date: Wed, 21 Jan 2015 22:47:32 +0100


as requested on ticket,
i'm here to discuss it.

As i already said, our ValueExpressionAnalayzer in PrimeFaces, which is
simliar to yours, works fine in all cases - out of one single case:
A StackOverflow occurs on postback in a PostAddToViewEvent-listener with
nested CCs.

It works fine in ALL other cases i ever used it.
PrimeFaces needs to get the original ValueExpression to get e.g. the
BeanValidation constraints.

I'm sure i must not explain the logic of the ValueExpressionAnalyzer as
it's almost the same like yours.

I assume, when the PostAddToView-event is called for the inputtext
component, the parent composite components are already ready, so it should
be possible to execute the ValueExpressionAnalyzer without leading in a
StackOverflow on postback.

Feel free to ask me any questions about it.