Skip to content

Commit

Permalink
feat(sheet): Invoke renderResponse when decode lazyUpdate to render R…
Browse files Browse the repository at this point in the history
…esponse immediate

issue: TOBAGO-2371
  • Loading branch information
bohmber committed Dec 4, 2024
1 parent ae65502 commit 48b5cad
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import jakarta.faces.component.UINamingContainer;
import jakarta.faces.component.visit.VisitCallback;
import jakarta.faces.component.visit.VisitContext;
import jakarta.faces.component.visit.VisitContextWrapper;
import jakarta.faces.component.visit.VisitHint;
import jakarta.faces.component.visit.VisitResult;
import jakarta.faces.context.FacesContext;
Expand Down Expand Up @@ -350,7 +349,8 @@ public void processValidators(FacesContext context) {

@Override
public void processUpdates(final FacesContext context) {
process(context, isReadonlyRows() || isLazyUpdate(context), (fc, uic) -> uic.processUpdates(fc));
process(context, isReadonlyRows() || isLazyUpdate(context),
(fc, uic) -> uic.processUpdates(fc));

final SheetState sheetState = getSheetState(context);
if (sheetState != null) {
Expand Down Expand Up @@ -695,7 +695,8 @@ private boolean isLazyUpdate(FacesContext facesContext) {
final String sourceId = facesContext.getExternalContext().getRequestParameterMap().get("jakarta.faces.source");
final String clientId = getClientId(facesContext);

final String sheetClientIdWithAction = clientId + UINamingContainer.getSeparatorChar(facesContext) + Pageable.SUFFIX_PAGE_ACTION + SheetAction.lazy;
final String sheetClientIdWithAction =
clientId + UINamingContainer.getSeparatorChar(facesContext) + Pageable.SUFFIX_PAGE_ACTION + SheetAction.lazy;

return sheetClientIdWithAction.equals(sourceId);
}
Expand Down

0 comments on commit 48b5cad

Please sign in to comment.