Uploaded image for project: 'MyFaces Portlet Bridge'
  1. MyFaces Portlet Bridge
  2. PORTLETBRIDGE-18

ExternalContext.getViewIdFromPath missing an else statement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0-alpha-2
    • 1.0.0-alpha
    • Impl
    • None

    Description

      Code in EC.getViewIdFromPath is missing an else clause causing us to drop the suffix translation. I.e. code should have an else before the if (isPrefixedMapped) --inserted code (else) is in all caps:
      // Okay now figure out whether this is prefix or suffixed mapped
      if (isSuffixedMapped(url, mFacesMappings))

      { viewId = viewIdFromSuffixMapping( url, mFacesMappings, mPortletContext .getInitParameter(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME)); }

      ELSE if (isPrefixedMapped(url, mFacesMappings))

      { viewId = viewIdFromPrefixMapping(url, mFacesMappings); }

      else

      { // Set to what follows the URL viewId = url; }

      return viewId;

      Attachments

        1. externalcontext_path.patch
          0.8 kB
          Michael Freedman

        Activity

          People

            Unassigned Unassigned
            mike_freedman Michael Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: