Skip to content

Commit

Permalink
revert cfc7b01
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Mar 2, 2024
1 parent f4c8387 commit bae89d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 77 deletions.
Expand Up @@ -32,7 +32,6 @@ public class ClientWindowFactoryImpl extends ClientWindowFactory {

private boolean isClientWindowEnabled = false;
private WebConfiguration config = null;
private final TokenGenerator tokenGenerator = new TokenGenerator();

public ClientWindowFactoryImpl() {
super(null);
Expand All @@ -45,16 +44,6 @@ public ClientWindowFactoryImpl(boolean ignored) {
isClientWindowEnabled = false;
}


@Override
public ClientWindow getClientWindow(FacesContext context) {
if (!isClientWindowEnabled) {
return null;
}

return new ClientWindowImpl(tokenGenerator);
}

private class PostConstructApplicationListener implements SystemEventListener {

@Override
Expand All @@ -77,4 +66,13 @@ private void postConstructApplicationInitialization() {

isClientWindowEnabled = null != optionValue && "url".equals(optionValue);
}

@Override
public ClientWindow getClientWindow(FacesContext context) {
if (!isClientWindowEnabled) {
return null;
}

return new ClientWindowImpl();
}
}
66 changes: 0 additions & 66 deletions impl/src/main/java/com/sun/faces/lifecycle/TokenGenerator.java

This file was deleted.

0 comments on commit bae89d5

Please sign in to comment.