Skip to content

Commit

Permalink
Improved impl for #5375
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Feb 18, 2024
1 parent 99c4944 commit 7fe0ddf
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -19,6 +19,7 @@
import static com.sun.faces.renderkit.RenderKitUtils.PredefinedPostbackParameter.CLIENT_WINDOW_PARAM;

import java.util.Map;
import java.util.UUID;

import jakarta.faces.component.UINamingContainer;
import jakarta.faces.context.ExternalContext;
Expand Down Expand Up @@ -64,7 +65,7 @@ private String calculateClientWindow(FacesContext context) {
counter = Integer.valueOf(0);
}
char sep = UINamingContainer.getSeparatorChar(context);
id = extContext.getSessionId(true) + sep + +counter;
id = UUID.randomUUID().toString() + sep + +counter;

sessionAttrs.put(clientWindowCounterKey, ++counter);
}
Expand Down

0 comments on commit 7fe0ddf

Please sign in to comment.