Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-6966

Logic in html tag doesn't allow external scripts or CSS to be included

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-m1, 2.2
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      I needed to make a change to the krad html.tag where it loads javascript files. Here is what I changed it to:

      <c:forEach items="$

      {view.theme.jsFiles}

      " var="javascriptFile">
      <c:if test="$

      {fn:length(fn:trim(javascriptFile)) > 0}

      ">
      <c:choose>
      <c:when test="$

      {fn:startsWith(javascriptFile,'http')}

      ">
      <script language="JavaScript" type="text/javascript" src="$

      {javascriptFile}"></script>
      </c:when>
      <c:otherwise>
      <script language="JavaScript" type="text/javascript" src="${pageContext.request.contextPath}/${javascriptFile}

      "></script>
      </c:otherwise>
      </c:choose>
      </c:if>
      </c:forEach>

      Before the change it always put the contextPath at the beginning of the file name. I had one I wanted to include that was on a different server so that didn't work.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              jkneal Jerry Neal (Inactive)
              Reporter:
              jsissom Jay Sissom
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: