Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mojarra issue 5164 #5169

Merged
merged 2 commits into from
Nov 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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