Hi Geoff, Hi Arno!
Thank you again for your help. The problem was that my list (which was
loaded through Javascript into Java) was not persisted (@persist List list)
this caused a ajax error, because the list was null. Now, i am only
initiating the list if the list is null (if list == null) then l
thank you very much, i will try that example and give feedback asap.
thank you all!
2012/6/4 Geoff Callender-2 [via Tapestry] <
ml-node+s1045711n5713603...@n5.nabble.com>
> See if this running example helps.
>
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/periodicupdate
>
>
See if this running example helps.
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/periodicupdate
Cheers,
Geoff
On 04/06/2012, at 3:30 PM, sommeralex wrote:
> Hi Arno,
>
> Thx for your help again!
>
> The javascript function is drawGroups is called and my alert('ok')
Hi Arno,
Thx for your help again!
The javascript function is drawGroups is called and my alert('ok') appears,
but
If i am returning zone.getBody(), then i am still getting this response:
Ajax failure: Status 500 for /group/listlocalgroups:getgroupsonlocation:
org.apache.tapestry5.ioc.internal.O
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> 1. What is the difference between a zone and a block?! The docs are
> (in my opinion not clear)
A Zone is basically an HTML with support for replacing its
children via AJAX. It is a Tapestry component, and it is actually
rendered in the browser.
A
Hi Arno!
Thank you for your help. The main questions I have is:
1.
What is the difference between a zone and a block?! The docs are (in my
opinion not clear)
2.
What do I need to update a specific element as shown in my example? My
Javascript is updating the java-method, and within the java meth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Been offline the last couple of days.
Your event handler returns a JSONArray which is probably not what you
want.
You wrote initially that you would like Tapestry to re-render your
zone. The straight-forward way to do that is to put your rendering
co
Hi Arno,
Thx for your your answer. If i am trying what you say, i get this error
message:
Ajax failure: Status 500 for /group/listlocalgroups:getgroupsonlocation:
org.apache.tapestry5.ioc.internal.OperationException
Communication with the server failed:
org.apache.tapestry5.ioc.internal.Operatio
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
If you use a zone, you can call
var zoneObject=Tapestry.findZoneManagerForZone('');
zoneObject.updateFromURL('', {});
in JS.
When generating the JS code in your TML, you can generate the correct
URL by having something like the following in your pag