You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Max Starets (Created) (JIRA)" <de...@myfaces.apache.org> on 2012/03/23 15:13:29 UTC

[jira] [Created] (TRINIDAD-2249) Enable PageFlowScopePriver to apply specific encoding to the dialog URLs

Enable PageFlowScopePriver to apply specific encoding to the dialog URLs
------------------------------------------------------------------------

                 Key: TRINIDAD-2249
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2249
             Project: MyFaces Trinidad
          Issue Type: Improvement
          Components: Archetype
    Affects Versions: 2.0.2-core
            Reporter: Max Starets
            Assignee: Max Starets


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;
  }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TRINIDAD-2249) Enable PageFlowScopePriver to apply specific encoding to the dialog URLs

Posted by "Max Starets (Updated) (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Starets updated TRINIDAD-2249:
----------------------------------

    Status: Patch Available  (was: Open)
    
> Enable PageFlowScopePriver to apply specific encoding to the dialog URLs
> ------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2249
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2249
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Archetype
>    Affects Versions: 2.0.2-core
>            Reporter: Max Starets
>            Assignee: Max Starets
>         Attachments: trinidad-2249.patch
>
>
> 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;
>   }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira