You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2022/12/08 14:05:25 UTC
[myfaces] branch main updated: cosmetics
This is an automated email from the ASF dual-hosted git repository.
tandraschko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces.git
The following commit(s) were added to refs/heads/main by this push:
new cfe7b3439 cosmetics
cfe7b3439 is described below
commit cfe7b343945116c38bb9840a2bef4cd41d49306e
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Thu Dec 8 15:05:06 2022 +0100
cosmetics
---
.../main/java/org/apache/myfaces/context/flash/FlashImpl.java | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java b/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java
index 408fc9454..f4b2d7e1f 100644
--- a/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java
@@ -657,10 +657,8 @@ public class FlashImpl extends Flash implements ReleasableFlash
}
else
{
- // Note that on portlet world we can't create cookies,
- // so we are forced to use the session map. Anyway,
- // according to the Bridge implementation(for example see
- // org.apache.myfaces.portlet.faces.bridge.BridgeImpl)
+ // Note that on portlet world we can't create cookies, so we are forced to use the session map. Anyway,
+ // according to the Bridge implementation(for example see org.apache.myfaces.portlet.faces.bridge.BridgeImpl)
// session object is created at start faces request
Map<String, Object> sessionMap = externalContext.getSessionMap();
@@ -755,7 +753,6 @@ public class FlashImpl extends Flash implements ReleasableFlash
{
if (facesContext.getApplication().getStateManager().isSavingStateInClient(facesContext))
{
- //Use HttpSession or PortletSession object
Map<String, Object> sessionMap = externalContext.getSessionMap();
sessionMap.put(FLASH_RENDER_MAP_TOKEN+SEPARATOR_CHAR+clientWindow.getId(), tokenValue);
}
@@ -778,7 +775,6 @@ public class FlashImpl extends Flash implements ReleasableFlash
}
else
{
- //Use HttpSession or PortletSession object
Map<String, Object> sessionMap = externalContext.getSessionMap();
sessionMap.put(FLASH_RENDER_MAP_TOKEN, tokenValue);
}
@@ -829,7 +825,6 @@ public class FlashImpl extends Flash implements ReleasableFlash
}
else
{
- //Use HttpSession or PortletSession object
Map<String, Object> sessionMap = externalContext.getSessionMap();
tokenValue = (String) sessionMap.get(FLASH_RENDER_MAP_TOKEN);
}