Skip to content

Commit

Permalink
Merge pull request #5169 from eclipse-ee4j/mojarra_issue_5164
Browse files Browse the repository at this point in the history
Mojarra issue 5164
  • Loading branch information
BalusC authored Nov 12, 2022
2 parents 6d40d92 + bc34dbf commit 95a274e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public class FaceletViewHandlingStrategy extends ViewHandlingStrategy {
private MethodRetargetHandlerManager retargetHandlerManager = new MethodRetargetHandlerManager();

private int responseBufferSize;
private boolean responseBufferSizeSet;

private Cache<Resource, BeanInfo> metadataCache;
private Map<String, List<String>> contractMappings;
Expand Down Expand Up @@ -812,7 +811,6 @@ protected void initialize() {
});

try {
responseBufferSizeSet = webConfig.isSet(FaceletsBufferSize);
responseBufferSize = Integer.parseInt(webConfig.getOptionValue(FaceletsBufferSize));
} catch (NumberFormatException nfe) {
responseBufferSize = Integer.parseInt(FaceletsBufferSize.getDefaultValue());
Expand Down Expand Up @@ -890,10 +888,8 @@ protected ResponseWriter createResponseWriter(FacesContext context) throws IOExc
throw new IllegalStateException("No render kit was available for id \"" + id + "\"");
}

if (responseBufferSizeSet) {
// set the buffer for content
extContext.setResponseBufferSize(responseBufferSize);
}
// set the buffer for content
extContext.setResponseBufferSize(responseBufferSize);

// get our content type
String contentType = (String) context.getAttributes().get("facelets.ContentType");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,6 @@ public enum WebContextInitParameter {
NumberOfFlashesBetweenFlashReapings("com.sun.faces.numberOfFlashesBetweenFlashReapings", "5000"),
InjectionProviderClass("com.sun.faces.injectionProvider", ""),
SerializationProviderClass("com.sun.faces.serializationProvider", ""),
ResponseBufferSize("com.sun.faces.responseBufferSize", "1024"),
FaceletsBufferSize(ViewHandler.FACELETS_BUFFER_SIZE_PARAM_NAME, "1024"),
ClientStateWriteBufferSize("com.sun.faces.clientStateWriteBufferSize", "8192"),
ResourceBufferSize("com.sun.faces.resourceBufferSize", "2048"),
Expand Down

0 comments on commit 95a274e

Please sign in to comment.