Page methods guidelines ...

2009-10-11 Thread Gunnar Eketrapp
Hi! I have been porting a web app to T5 for some weeks now and have some questions on how you folks do! I started fresh with using ... onActivate() as method for preparing data for the template code. Some times onActivate(ctx) + ctx onPassivate(). Actions where handled in onActionFromFoo() or

t5: sending json object to an actionlink

2009-10-11 Thread Angelo Chen
Hi, I use jQuery's post to send json objects to an actionlink, but how to convert it back to a json object in the T5 side? I read somewhere we can use json.js to convert first a json to string before sending, but including that json.js always encounter an javascript exception, any idea how?

Re: t5: sending json object to an actionlink

2009-10-11 Thread cuartz
org.apache.tapestry5.json, JSONArray, JSONLiteral, JSONObject, JSONString i guess you can recive the json object as a parameter onActivate(JSONObject json) and you also can send it back with ajax to de client -- View this message in context:

jumploader integration help

2009-10-11 Thread blueboy6
Hi all, I have some big questions for today, i found this java applet http://jumploader.com/index.html http://jumploader.com/index.html that is made for uploading multiple photos. Did anyone had any experience with it, and can you share how to integrate it in tapestry. PS it uses multipart

Re: jumploader integration help

2009-10-11 Thread Daniel Jones
I should add that if you search for 'swfupload' in the mailing list there are some threads that might be useful. Daniel blueboy6 wrote: Hi all, I have some big questions for today, i found this java applet http://jumploader.com/index.html http://jumploader.com/index.html that is made

t5: calling action link from a javascript

2009-10-11 Thread Angelo Chen
Hi, I'm trying to call an actionlink from a javascript, but i'm getting: Remote server closed the connection before sending response header and I never see the pop up dialog in the javascript, any idea how to avoid errors like this? Thanks. A.C. sample code: in java: public String

Re: calling action link from a javascript

2009-10-11 Thread DH
updateItem()? I think should be ${updateItem()}. DH http://www.gaonline.com.cn - Original Message - From: Angelo Chen angelochen...@yahoo.com.hk To: users@tapestry.apache.org Sent: Monday, October 12, 2009 9:40 AM Subject: t5: calling action link from a javascript Hi, I'm

Re: t5: calling action link from a javascript

2009-10-11 Thread Toby Hobson
Are you sure you're javascript is using the correct url? I don't know what your updateItem() JS function does, but generally you need to construct the actionlink url (as you have done) then pass this to the javascript using RenderSupport's addScript() method Toby 2009/10/12 Angelo Chen

Re: jumploader integration help

2009-10-11 Thread Toby Hobson
There's also an excellent commercial tool called Aurigma image uploader ( http://www.aurigma.com ) that I've used with Tapestry in the past. I've actually wrapped this as a T5 component so if you consider using it let me know and I'll send you the code Toby 2009/10/12 Daniel Jones

Re: t5: calling action link from a javascript

2009-10-11 Thread Angelo Chen
Hi Toby, It got called in the firefox but not in safari, here is what I do: in the .tml file: script type=text/javascript function updateItem() { return ${updateItem}; } /script in the .js file: jQuery.post(updateItem(), { item_no : ino }, function(data){

Using Checkboxe on t:grid or table

2009-10-11 Thread tapestryfan
Hi, I am new to tapestry so excuses if this question is already been posted. How can I add checkboxes to a form and how can i find out which checkboxes are check in java class ? -- View this message in context: