You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Map<String, Object> model;
if (attributes.isEmpty()) {
model = modelAndView.getModel();
} else {
model = newHashMap<>();
model.putAll(attributes);
model.putAll(model);
}
You can see, if there are attributes it just adds the model map to itself. The last code line should have been model.putAll(modelAndView.getModel());. Because of this bug, no pages can be rendered at all as you cannot pass the model.
The text was updated successfully, but these errors were encountered:
It was actually this issue which caused me to open #3113. That is still a bug, but just passing a Map with the page model attribute name (defined in template) and page model would have worked for me but this bug makes it impossible to pass anything at all.
The code in JteTemplateEngine.java is like this:
You can see, if there are attributes it just adds the model map to itself. The last code line should have been
model.putAll(modelAndView.getModel());
. Because of this bug, no pages can be rendered at all as you cannot pass the model.The text was updated successfully, but these errors were encountered: