-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Component/s: Web Search > Search Admin
-
Labels:
-
Branch Version/s:7.2.x
-
Backported to Branch:Committed
-
Story Points:2
-
Epic Link:
-
Sprint:Search | S03 Sprint 6
-
Git Pull Request:
After moving to the new react:component taglib, there is more java logic that we can extract out of the JSP and into a DisplayContext.
For example instead of:
<% Map<String, Object> data = new HashMap<>(); data.put("formName", renderResponse.getNamespace() + "synonymSetsForm"); data.put("inputName", renderResponse.getNamespace() + "newSynonymSet"); data.put("originalInputName", renderResponse.getNamespace() + "originalSynonymSet"); data.put("synonymSets", synonymSets); %> <react:component data="<%= data %>" module="js/SynonymSetsApp.es" />
We can have:
<react:component data="<%= editSynonymSetDisplayContext.getData() %>" module="js/SynonymSetsApp.es" />
- relates
-
LPS-101876 Create display context for edit result rankings
-
- Closed
-