Permalink
Browse files

Revert use of putAll for JSF spec compliance

Issues: SWF-1532
  • Loading branch information...
1 parent 9391200 commit bcb5a8d2a70727a0c0388fbab19bdcc6c9ec9ee5 @philwebb philwebb committed Apr 13, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 spring-faces/src/main/java/org/springframework/faces/mvc/JsfView.java
@@ -88,7 +88,11 @@ protected void renderMergedOutputModel(Map<String, Object> model, HttpServletReq
}
private void populateRequestMap(FacesContext facesContext, Map<String, Object> model) {
- facesContext.getExternalContext().getRequestMap().putAll(model);
+ Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
+ for (Map.Entry<String, Object> entry : model.entrySet()) {
+ // JSF does not insist that putAll is implemented, hence we use individual put calls
+ requestMap.put(entry.getKey(), entry.getValue());
+ }
}
private Lifecycle createFacesLifecycle() {

0 comments on commit bcb5a8d

Please sign in to comment.