Unable to save dynamic action with clientid #4395
Description
Hi,
I've an heavy dynamic application in JSF 2.2 running on Wildfly 12.0 (single page web app) it's currently migrated from Jboss AS 7.0 .
I encounter a lot of messages : unable to save dynamic action with clientid.
It seems after debugging that the problem is coming from the class : StateContext method handleAddRemoveWithAutoPrune.
In my case ; struct.action = 'REMOVE' and firstIndex = -1 so it will add the component to the actionList and the map instead of not adding it. So the next JSF Ajax Function called will log the error message "unable to save dynamic action with clientid".
I've added some logging to see if my component was dynamically added to the actionList but it was not the case ; maybe it's because of my typical application.
With the correction, error messages dissappears and application seems ok.
Sorry, i've no use case to provide for the moment.
What do you think ?
Thanks,
if (firstIndex == -1) {
if (ComponentStruct.ADD.equals(struct.action)) {
actionList.add(struct);
componentMap.put(struct.clientId, component);
}
}