Re: javascript and tapestry - reloading a list

2012-06-04 Thread sommeralex
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

Re: javascript and tapestry - reloading a list

2012-06-04 Thread sommeralex
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 > >

Re: javascript and tapestry - reloading a list

2012-06-04 Thread Geoff Callender
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')

Re: javascript and tapestry - reloading a list

2012-06-03 Thread sommeralex
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

Re: javascript and tapestry - reloading a list

2012-06-03 Thread Arno Haase
-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

Re: javascript and tapestry - reloading a list

2012-06-03 Thread sommeralex
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

Re: javascript and tapestry - reloading a list

2012-06-03 Thread Arno Haase
-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

Re: javascript and tapestry - reloading a list

2012-05-30 Thread sommeralex
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

Re: javascript and tapestry - reloading a list

2012-05-30 Thread Arno Haase
-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