Re: Tapestry 5.4 Dojo as the Infrastructure Provider

2014-02-15 Thread Chris Mylonas
Impressive! I am currently a simple and irregular t5 app maker, sadly with more php foo than js. However, t5.4 and addons like this will turn me into a js and json loving fiend. Thanks for hacking at it :) On 15/02/2014 11:55 pm, "Azudio Developer" wrote: > I'm making some more progress on a D

Re: How to pass a javascript function in tapestry mixin

2014-02-15 Thread Christian Riedel
Hi Boris, passing the whole function code as JSONLiteral could work, I guess: params.put("onSubmit", new JSONLiteral("function () { showUploadProgress(); }")); But Thiago has a point. Passing more complex code around like this is not a good idea. Instead you can alter the fileuploader’

Re: How to pass a javascript function in tapestry mixin

2014-02-15 Thread Boris Horvat
Sadly that doesnt really help. Same error, same issue. I have changed the JSONLiberal call to params.put("onSubmit", new JSONLiteral("showUploadProgress")); My javascript that is generated at the end looks like this "uploadable" : [ { "elementId" : "imageUpload", "onSu

Re: How to pass a javascript function in tapestry mixin

2014-02-15 Thread Thiago H de Paula Figueiredo
On Sat, 15 Feb 2014 16:25:27 -0200, Boris Horvat wrote: Hi everyone, Hi! I have a tapestr5-jquery component that to which I need to pass a function in the configuration. That's something to avoid as much as possible. The component is http://tapestry5-jquery.com/components/docsajaxupl

How to pass a javascript function in tapestry mixin

2014-02-15 Thread Boris Horvat
Hi everyone, I have a tapestr5-jquery component that to which I need to pass a function in the configuration. The component is http://tapestry5-jquery.com/components/docsajaxupload;jsessionid=2CD857F51B90113A175C5B10EE09B138.57B580630AEA My code looks like this java public JSONObject getUpload

Re: Tapestry 5.4 Dojo as the Infrastructure Provider

2014-02-15 Thread Azudio Developer
I’m making some more progress on a Dojo implementation and have DOM manipulation, Events & Zones working. I’ve had to replace events.js with an implementation with event names without colons. https://github.com/adamhenderson/tapestry-dojo On 8 Feb 2014, at 16:55, Thiago H de Paula Figueired