Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Sep 23, 2024
1 parent 8d3958e commit 50b251d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/main/java/org/usf/jquery/web/ContextManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ public static void register(ContextEnvironment config) {
}
throw resourceAlreadyExistsException(k);
});
config.bind(); // outer bind
setCurrentContext(config);
try {
config.bind(); // outer bind
} finally {
releaseContext();
}
}

public static ContextEnvironment currentContext() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/usf/jquery/web/ViewDecorator.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private TableView buildView() {
return idx == -1
? new TableView(null, requireLegalVariable(tn), identity())
: new TableView(requireLegalVariable(tn.substring(0, idx)),
requireLegalVariable(tn.substring(idx, tn.length())), identity());
requireLegalVariable(tn.substring(idx+1, tn.length())), identity());
}
throw undeclaredResouceException(identity(), currentContext().getDatabase().identity());
}
Expand Down

0 comments on commit 50b251d

Please sign in to comment.