You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Yuan Gao (JIRA)" <de...@myfaces.apache.org> on 2011/03/12 01:26:59 UTC
[jira] Created: (TRINIDAD-2061) add a utility method in
PartialPageUtils to complete the ppr response
add a utility method in PartialPageUtils to complete the ppr response
---------------------------------------------------------------------
Key: TRINIDAD-2061
URL: https://issues.apache.org/jira/browse/TRINIDAD-2061
Project: MyFaces Trinidad
Issue Type: Bug
Reporter: Yuan Gao
Just discussed with Blake. What we are trying to do is to add a new utility method (API) in PartialPageUtils.
/**
* This method completes the PPR request and writes a <noop/> to the response.
* it also handles script and redirect
*
* @param context the FacesContext
* @param script the script
* @param redirectUrl the URL to redirect to
* @throws IOException
*/
public static void completePPRResponse(FacesContext context, String script, String redirectUrl)
throws IOException
The reason is currently we have several places that we want to complete the response with this <noop/> or redirect, or a script, and we want to refactor the codes to use this utility.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (TRINIDAD-2061) add a utility method in
PartialPageUtils to send a ppr response
Posted by "Yuan Gao (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuan Gao updated TRINIDAD-2061:
-------------------------------
Status: Patch Available (was: Open)
> add a utility method in PartialPageUtils to send a <noop/> ppr response
> -----------------------------------------------------------------------
>
> Key: TRINIDAD-2061
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2061
> Project: MyFaces Trinidad
> Issue Type: Bug
> Reporter: Yuan Gao
>
> Just discussed with Blake. What we are trying to do is to add a new utility method (API) in PartialPageUtils.
> /**
> * This method writes a <noop/> to the response.
> *
> * @param context the FacesContext
> * @throws IOException
> */
> public static void renderNoopResponse(FacesContext context) throws IOException
> The reason is currently we have several places that we want to send a <noop/> to the response, and we want to refactor the codes to use this utility.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira