Permalink
Browse files

MYFACES-4068 Ajax-Listener (PrimeFaces) is not called for some select…

…ion-components (fix @this keyword to be handled server side)

git-svn-id: https://svn.apache.org/repos/asf/myfaces/core/trunk@1771245 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 3c0beea commit ae85427822ca96497ec175aa481d496bffbc4edb lu4242 committed Nov 25, 2016
@@ -469,7 +469,17 @@ public void build(ClientBehaviorContext context,
}
else
{
- retVal.append(strVal);
+ // @this should be resolved server side, because there are cases like in h:selectOneRadio where
+ // the id of the tag is not a clientId. @this could be valid to be resolve in the client if
+ // jsf.ajax.request(...) is called manually (without f:ajax intervention)
+ if (strVal.equalsIgnoreCase("@this"))
+ {
+ retVal.append(context.getComponent().getClientId(context.getFacesContext()));
+ }
+ else
+ {
+ retVal.append(strVal);
+ }
}
if (cnt < size)
{

0 comments on commit ae85427

Please sign in to comment.