You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Thomas Andraschko (JIRA)" <ji...@apache.org> on 2014/09/13 10:51:34 UTC

[jira] [Comment Edited] (DELTASPIKE-710) Error using clientWindow and (p|f):ajax

    [ https://issues.apache.org/jira/browse/DELTASPIKE-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14132365#comment-14132365 ] 

Thomas Andraschko edited comment on DELTASPIKE-710 at 9/13/14 8:51 AM:
-----------------------------------------------------------------------

In your example with mojarra, p:ajax is rendered like: 

PrimeFaces.ab({s:this,e:'action',p:'form:j_idt44'} 

but with TomEE/Myfaces, it's rendered like:
PrimeFaces.ab({s:'form:j_id33',e:'action',p:'form:j_id44'} 

I just can't replicate it but i don't see anything disadvangates with the patch.


was (Author: tandraschko):
In your example with mojarra, p:ajax is rendered like: 

PrimeFaces.ab({s:this,e:'action',p:'form:j_idt44'} 

but with TomEE/Myfaces, it's rendered like:
PrimeFaces.ab({s:'form:j_id33',e:'action',p:'form:j_id44'} 

I just can't replicate it but i don't see anything disadvangates from it.

> Error using clientWindow and (p|f):ajax
> ---------------------------------------
>
>                 Key: DELTASPIKE-710
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-710
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: JSF-Module
>    Affects Versions: 1.0.2
>            Reporter: Janario
>            Assignee: Thomas Andraschko
>             Fix For: 1.0.3
>
>         Attachments: console.log, fix.patch, pftest.patch, test.patch
>
>
> Trying to use CLIENTWINDOW with some h:commandLink and f:ajax or p:ajax doesn't work.
> I've tried, in a simple action method (public void actionTest() {} ):
> <h:commandLink action="#{view1Controller.actionTest}">test f:ajax
> 	<f:ajax />
> </h:commandLink>
> <h:commandLink action="#{view1Controller.actionTest}">test f:ajax
> 	<p:ajax />
> </h:commandLink>
> For f:ajax it doesn't log any error but doesn't call my action method.
> For p:ajax it logs some error on browser console:
> Uncaught TypeError: Cannot read property 'replace' of undefined 	primefaces.js?ln=primefaces&v=5.0:1
>  b.escapeClientId 							primefaces.js?ln=primefaces&v=5.0:1
>  PrimeFaces.ajax.Request.send 						primefaces.js?ln=primefaces&v=5.0:2
>  PrimeFaces.ajax.Queue.offer 						primefaces.js?ln=primefaces&v=5.0:2
>  PrimeFaces.ajax.Request.handle 					primefaces.js?ln=primefaces&v=5.0:2
>  PrimeFaces.ab 								primefaces.js?ln=primefaces&v=5.0:2
>  onclick 								?dsrid=949&dswid=8555:1
>  d.(anonymous function).onclick.match.d.(anonymous function).onclick	windowhandler.js?ln=deltaspike&v=1.0.2:2
>  d.(anonymous function).onclick.match.d.(anonymous function).onclick 	windowhandler.js?ln=deltaspike&v=1.0.2:2
> I've tried the same with p:commandLink and it works
> <p:commandLink action="#{view1Controller.actionTest}">test f:ajax
> 	<f:ajax />
> </p:commandLink>
> <p:commandLink action="#{view1Controller.actionTest}">test f:ajax
> 	<p:ajax />
> </p:commandLink>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)