thmeleaf calls getExtraHiddenFields() after th:action attribute processing and cause the hdiv to endRequest and further th:value and th:filed processing does not find a state since it has been poped out from stack.
I change the pop action in end request to peek, and pop the stack before next action. End page method in also clears the last state from state stack
Consequences are, nested forms will work correctly.