You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Bädorf (JIRA)" <de...@myfaces.apache.org> on 2013/08/28 10:36:51 UTC

[jira] [Created] (TOBAGO-1308) Post-Redirect-Get Problem with ajax submits

Michael Bädorf created TOBAGO-1308:
--------------------------------------

             Summary: Post-Redirect-Get Problem with ajax submits
                 Key: TOBAGO-1308
                 URL: https://issues.apache.org/jira/browse/TOBAGO-1308
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0-alpha-2
         Environment: JSF 2.x
            Reporter: Michael Bädorf


For implementing 
http://balusc.blogspot.com/2007/03/post-redirect-get-pattern.html
I need to find out whether the request was an ajax request, but
facesContext.getCurrentInstance().getPartialViewContext()
always returns
isAjaxRequest() ==false and 
isPartialRequest()==false

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Re: [jira] [Created] (TOBAGO-1308) Post-Redirect-Get Problem with ajax submits

Posted by Volker Weber <v....@inexso.de>.
Hi Michael,

in tobago you need

AjaxUtils.isAjaxRequest(facesContext).


tobago did not use the jsf2 ajax implementation.

Regards,

 Volker


2013/8/28 Michael Bädorf (JIRA) <de...@myfaces.apache.org>

> Michael Bädorf created TOBAGO-1308:
> --------------------------------------
>
>              Summary: Post-Redirect-Get Problem with ajax submits
>                  Key: TOBAGO-1308
>                  URL: https://issues.apache.org/jira/browse/TOBAGO-1308
>              Project: MyFaces Tobago
>           Issue Type: Bug
>           Components: Core
>     Affects Versions: 2.0.0-alpha-2
>          Environment: JSF 2.x
>             Reporter: Michael Bädorf
>
>
> For implementing
> http://balusc.blogspot.com/2007/03/post-redirect-get-pattern.html
> I need to find out whether the request was an ajax request, but
> facesContext.getCurrentInstance().getPartialViewContext()
> always returns
> isAjaxRequest() ==false and
> isPartialRequest()==false
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>



-- 
inexso - information exchange solutions GmbH
Ofener Str. 30      | 26121 Oldenburg
Tel.: +49 441 219 730 0 |
FAX:  +49 441 219 730 66 | eMail: v.weber@inexso.de

Firmensitz: Oldenburg | Amtsgericht Oldenburg HRB 205251
Geschäftsführer: Stefan Schulte, Michael Terschüren