Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MYFACES-3696 Button rendering itself after ajax request loses type an…

…d other attributes

git-svn-id: https://svn.apache.org/repos/asf/myfaces/core/trunk@1461893 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 74e0209c9d09773e948534a1e9aba2bf3e050de6 1 parent f08ed9b
Leonardo Uribe authored
10 shared/src/main/java/org/apache/myfaces/shared/renderkit/html/util/ResourceUtils.java
View
@@ -189,7 +189,10 @@ public static void renderDefaultJsfJsInlineIfNecessary(FacesContext facesContext
// Check if this is an ajax request. If so, we don't need to include it, because that was
// already done and in the worst case, jsf script was already loaded on the page.
- if (facesContext.getPartialViewContext() != null && facesContext.getPartialViewContext().isAjaxRequest())
+ if (facesContext.getPartialViewContext() != null &&
+ (facesContext.getPartialViewContext().isPartialRequest() ||
+ facesContext.getPartialViewContext().isAjaxRequest() )
+ )
{
return;
}
@@ -246,7 +249,10 @@ public static void renderMyfacesJSInlineIfNecessary(FacesContext facesContext, R
//we only are allowed to do this on partial requests
//because on normal requests a static viewroot still could mean that a full page refresh is performed
//only in a ppr case this means we have the script already loaded and parsed
- if (facesContext.getPartialViewContext() != null && facesContext.getPartialViewContext().isPartialRequest())
+ if (facesContext.getPartialViewContext() != null &&
+ (facesContext.getPartialViewContext().isPartialRequest() ||
+ facesContext.getPartialViewContext().isAjaxRequest() )
+ )
{
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.