Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-101876

Create display context for edit result rankings

    Details

      Description

      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"
      		/>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                kevin.tan Kevin Tan
                Engineering Assignee:
                Kevin Tan
                Recent user:
                Annie Wu
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.2.X
                  Master