Skip to content

Commit

Permalink
Merge pull request #5178 from eclipse-ee4j/mojarra_issue_5140
Browse files Browse the repository at this point in the history
Fix Mojarra issue 5140 html code inside ui:decorate breaks ui:param evaluation
  • Loading branch information
arjantijms authored Nov 17, 2022
2 parents 87995e6 + 8edc4b5 commit 8dee9ce
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,10 @@ public void popTag() {
finishUnit();
} else {
t.endTag();
if (t.isClosed()) {
this.finishUnit();
}
return;
}
unit = this.currentUnit();

unit = currentUnit();
}

if (unit instanceof TagUnit) {
Expand Down Expand Up @@ -328,9 +326,14 @@ public void pushNamespace(String prefix, String uri) {
}

boolean alreadyPresent = namespaceManager.getNamespace(prefix) != null;

if (alreadyPresent) {
return;
}

namespaceManager.pushNamespace(prefix, uri);
NamespaceUnit unit;
if (currentUnit() instanceof NamespaceUnit && !alreadyPresent) {
if (currentUnit() instanceof NamespaceUnit) {
unit = (NamespaceUnit) currentUnit();
} else {
unit = new NamespaceUnit(tagLibrary);
Expand Down

0 comments on commit 8dee9ce

Please sign in to comment.