I added this callback on both add and remove functions, but when I add row
I get this error appearing on top of the windows :
"Communication with the server failed: TypeError: undefined is not a
function".
And it doesn't do it when the callback is done by the remove call. If there
were a problem l
Hi,
Sorry I put some wrong code @_@. The java code should be as below:
ajaxResponseRenderer.addCallback(new JavaScriptCallback() {
@Override
public void run(JavaScriptSupport javascriptSupport) {
javascriptSupport.addScript('callUpdateZone()");
}
});
You have to import
org.apache.tapestry5.ser
thanks for your answer Chung, I tried it but when i add a row I got this
error :
No object of type
org.apache.tapestry5.services.javascript.JavaScriptSupport is available
from the Environment.
2014-08-07 10:08 GMT+02:00 Chung Khanh Duy :
> Hi,
>
> You could not call updating zone in onAddRow or
Hi,
You could not call updating zone in onAddRow or onRemove(). This is my way
to do that:
1. Declare one action link in tml file:
2. in Java code, we callback a javascript function
onRemoveRow() {
javascriptSupport.addScript("callUpdateZone()");
}
Object onActionFromUpdateZoneLink
Any help ? :(
2014-08-06 15:21 GMT+02:00 squallmat . :
> Hi,
>
> I try to do a zone-update when adding or removing a row from an
> ajaxformloop component. I have :
>
>
>
>
>
> ${message:fieldName}
> ${message:fieldContent}
>
>
>
>
>
>
> t:source="applicatifDto.ChampList" t:value="
Hi,
I try to do a zone-update when adding or removing a row from an
ajaxformloop component. I have :
${message:fieldName}
${message:fieldContent}
${message:deleteField}
${message:addField}
And in the actions for adding and removing rows I do :
// when adding a field row
Obj