werpu commented on PR #502:
URL: https://github.com/apache/myfaces/pull/502#issuecomment-1413958083
could work, yes...
problem is, you still have some write patterns somewhere you will need to
prefix, the HTMLResponseStateManager was one of the classes where I had to
introduce the prefixing for the names and also the containsKey must be prefixed
otherwise the postback check will fail:
private static boolean isPostBack(FacesContext context)
{
Map<String, String> requestParameterMap =
context.getExternalContext().getRequestParameterMap();
boolean ret = requestParameterMap.
containsKey(ResponseStateManager.VIEW_STATE_PARAM) ||
//we might have a prefixed VIEWSTATE
requestParameterMap.keySet().stream()
.filter(key ->
key.contains(ResponseStateManager.VIEW_STATE_PARAM))
.findFirst().isPresent();
return ret;
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]