Re: JSONLiteral breks zone refresh

2012-10-23 Thread bhorvat
btw the order is lost when the component is re-renderd in the zone. Could this affect something? Could the before/after specification get lost in ajax update? -- View this message in context: http://tapestry.1045711.n5.nabble.com/JSONLiteral-breaks-zone-refresh-tapesty-jquery-tp5717101p5717192.

Re: JSONLiteral breks zone refresh

2012-10-23 Thread bhorvat
I need to initialize my custom mixin after autocomlete mixin, as my mixin is adding stuff to autocomplete. So i guess that @MixinAfter has no interest to me. The InitializationPriority.LATE does help as it adds the calling at the end I guess so it is initialized after the autocomplete. However I a

Re: JSONLiteral breks zone refresh

2012-10-23 Thread Thiago H de Paula Figueiredo
On Tue, 23 Oct 2012 19:25:52 -0200, bhorvat wrote: Yes I have, actually it is part of my code, and I have just removed it since it works the same whether or not it is there Actually, it works in a different way, I just don't know it would make a difference when adding an initializer cal

Re: JSONLiteral breks zone refresh

2012-10-23 Thread bhorvat
Yes I have, actually it is part of my code, and I have just removed it since it works the same whether or not it is there -- View this message in context: http://tapestry.1045711.n5.nabble.com/JSONLiteral-breaks-zone-refresh-tapesty-jquery-tp5717101p5717189.html Sent from the Tapestry - User m

Re: JSONLiteral breks zone refresh

2012-10-23 Thread Thiago H de Paula Figueiredo
On Tue, 23 Oct 2012 19:21:21 -0200, bhorvat wrote: However I am having one problem, I need to call my mixing after Autocomplete and I have tried that with the after prefix but for some reason that didnt work out. So have tried to add InitializationPriority.LATE as shown above and that

Re: JSONLiteral breks zone refresh

2012-10-23 Thread bhorvat
I see your point about it and yea it does make sense so I have give up on the JSONLiteral. François I like your solution. I have implemented my Mixin like this @Import(library = {"submitautocomplete.js"}) public class SubmitAutocomplete { @Environmental private JavaScriptSupport javaSc

Re: JSONLiteral breks zone refresh

2012-10-23 Thread Howard Lewis Ship
You are confusing JavaScript objects, instantiated in the browser, with JSON, a protocol for transferring data between client and server. By design, JSON is a subset of JavaScript, specifically for security (and performance) reasons. You are floundering on the idea that you can push something comp

Re: JSONLiteral breks zone refresh

2012-10-23 Thread François Facon
This morning Emmanuel told me that we already have a documentation that explain how to do this kind of job? He will push this doc in the kiwi soon. Short Story : create a jQuery plugin (function( $ ) { $.extend(Tapestry.Initializer, { customAutocomplete: function(specs) { $("#"+s

Re: JSONLiteral breks zone refresh

2012-10-23 Thread bhorvat
François Facon-3 wrote > I guess your parser error is due to jQuery which reject function even > received from ajax call. I've encountered the problem with the plugin > Jeditable. > see the following commit > > https://github.com/got5/tapestry5-jquery/commit/818ae2a5594397ea7368237d081e40b2fa3edbb

Re: JSONLiteral breks zone refresh

2012-10-23 Thread François Facon
Boris, I guess your parser error is due to jQuery which reject function even received from ajax call. I've encountered the problem with the plugin Jeditable. see the following commit https://github.com/got5/tapestry5-jquery/commit/818ae2a5594397ea7368237d081e40b2fa3edbbe As Thiago mentioned, thi

Re: JSONLiteral breks zone refresh

2012-10-22 Thread bhorvat
Yea I have submitted an issue and will see what they say about it. If however anyone has any idea how to implement this so that it is not related to the passing the function from the server code I would appreciate. cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com

Re: JSONLiteral breks zone refresh

2012-10-22 Thread Chris Poulsen
Hi, You could take this up with the tapestry5-jquery people in their google group, i guess it is not impossible to provide a patch and get it accepted by them. -- Chris On Mon, Oct 22, 2012 at 7:18 PM, bhorvat wrote: > I agree, but still it is better then the alternative. > > Tapestry5-jquery

Re: JSONLiteral breks zone refresh

2012-10-22 Thread bhorvat
I agree, but still it is better then the alternative. Tapestry5-jquery team is providing the js file and if I override it then I will have to make sure that next release from them is not broken in my project as I have override one of their files. What I want to do is just pass the function in th

Re: JSONLiteral breks zone refresh

2012-10-22 Thread Thiago H de Paula Figueiredo
On Mon, 22 Oct 2012 14:48:13 -0200, bhorvat wrote: Howard Lewis Ship wrote Well, change that. Have you Ajax response load a library containing the function. yea that is what I have done at the moment, I have added the code that needs to be executed when a user selects something form the

Re: JSONLiteral breks zone refresh

2012-10-22 Thread bhorvat
Howard Lewis Ship wrote > Well, change that. Have you Ajax response load a library containing > the function. yea that is what I have done at the moment, I have added the code that needs to be executed when a user selects something form the list. But this is hack as I have overridden the original

Re: JSONLiteral breks zone refresh

2012-10-22 Thread Howard Lewis Ship
ck jquery-1.7.2.js:8324 > Ajax failure: Status 200 for #{request.url}: null > Ajax failure: Status 200 for #{request.url}: null t5-console-jquery.js:56 > > The cash is definitely not the problem I have checked that > > tnx for help > > > > -- > View this message in cont

Re: JSONLiteral breks zone refresh

2012-10-22 Thread bhorvat
t the problem I have checked that tnx for help -- View this message in context: http://tapestry.1045711.n5.nabble.com/JSONLiteral-breks-zone-refresh-tp5717101p5717128.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: JSONLiteral breks zone refresh

2012-10-21 Thread Howard Lewis Ship
so I am guessing that the > problem is in the unquted literal that is passed when the zone is refreshed > (which I have to do), but I am not sure why it is broken. > > Also I dont get any errors about this. Not in Chrome not in output. > > Any ideas would be appreciated > > >

JSONLiteral breks zone refresh

2012-10-21 Thread bhorvat
-- View this message in context: http://tapestry.1045711.n5.nabble.com/JSONLiteral-breks-zone-refresh-tp5717101.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tap