Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2249

Enable PageFlowScopePriver to apply specific encoding to the dialog URLs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2-core
    • 2.1.0-core
    • Archetype
    • None

    Description

      PageFlowScopeProvider currently only exposes encodeCurrentPageFlowScopeURL(), which gets called from ViewHandlerImpl.getActionURL(). It would be highly desirable to provide a way for the PageFlowScopeProvider implementors to perform encoding specific to the dialog URLs:

      /**

      • Encode the page flow scope into the dialog URL
      • Note that the Dialog Framework may first call ViewHandler.getActionURL(), which in turn will
      • call encodeCurrentPageFlowScopeURL(). Then this method will be given a chance to encode any dialog-specific
      • information. The dafault implementation does not modify the URL.
      • @param context the current FacesContext
      • @param url an URL (which may already contain query parameters)
      • @return encoded URL
        */
        public String encodeDialogPageFlowScopeURL(
        FacesContext context,
        String url) { return url; }

      Attachments

        1. trinidad-2249.patch
          3 kB
          Max Starets

        Activity

          People

            mstarets Max Starets
            mstarets Max Starets
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: