Triggering zone update in component

2010-12-10 Thread Richard Hill
Hi All, I have a simple page with a component in it. This component contains a zone. I would like to be able to update the zone from the parent page. At the moment I am using an actionlink handler in the parent to call the handler in the component - but this results in a full page re-render of

T5: Progress indicator and AJAX example?

2010-12-10 Thread Newham, Cameron
Hi, Can anyone point me to an example of a progress indicator or, more simply, how one would go about having a page with a % complete field? I have a process that ingests a file and takes quite a long time and I would like to indicate to the user how much of it has been done. I recall from

Re: Triggering zone update in component

2010-12-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Dec 2010 08:37:07 -0200, Richard Hill r...@su3analytics.com wrote: Hi All, Hi! I have a simple page with a component in it. This component contains a zone. I would like to be able to update the zone from the parent page. First of all, it's a bad practice for a parent page or

Re: T5: Progress indicator and AJAX example?

2010-12-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Dec 2010 09:04:49 -0200, Newham, Cameron cameron.new...@bl.uk wrote: Hi, Hi! I imagine that if I wanted just a simple field on a page that updated with a % then I would have Javascript make an AJAX get and obtain a value from the server. However, as I'm a complete newbie to

Re: Triggering zone update in component

2010-12-10 Thread Richard Hill
On Fri, 2010-12-10 at 09:09 -0200, Thiago H. de Paula Figueiredo wrote: On Fri, 10 Dec 2010 08:37:07 -0200, Richard Hill r...@su3analytics.com wrote: Hi All, Hi! I have a simple page with a component in it. This component contains a zone. I would like to be able to update the zone

Re: T5: Progress indicator and AJAX example?

2010-12-10 Thread Richard Hill
Hi Cameron, For an example of how to make an ajax call from your own js see the mail I sent yesterday. Richard. On Fri, 2010-12-10 at 09:14 -0200, Thiago H. de Paula Figueiredo wrote: On Fri, 10 Dec 2010 09:04:49 -0200, Newham, Cameron cameron.new...@bl.uk wrote: Hi, Hi! I

T5: When Flash persisted values are cleared?

2010-12-10 Thread Dmitriy Vsekhvalnov
Hi all, i'm slightly confused with @Persist(flash) and XHR requests. I have a Message component which used to show alert/warn/info messages on the page, it has a message property, which is flash persisted: @Persisted(flash) private String msg; //+ getter and setter On several pages it wrapped

Re: T5: When Flash persisted values are cleared?

2010-12-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Dec 2010 12:18:22 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Hi all, i'm slightly confused with @Persist(flash) and XHR requests. Hi! A flash persisted value is cleared when it's read from the session, something that happens once per request AFAIK. What you see

Re: Prevent double submission w/linkSubmit

2010-12-10 Thread David Rees
On Thu, Dec 9, 2010 at 2:57 PM, Benny Law benny.mk@gmail.com wrote: Keep in mind that a form could be submitted by pressing the Enter key inside a text field. A safer approach would be to prevent the form itself from being submitted more than once, regardless of how it is submitted. Right

Re: Prevent double submission w/linkSubmit

2010-12-10 Thread Benny Law
Instead of trying to disable every element that can trigger a form submission, I stop the form submission event itself. Here is the JavaScript I have been using, and it seems to be working for me: document.observe(dom:loaded, function() { $$(form).invoke(observe, submit, function(event) {

Re: Prevent double submission w/linkSubmit

2010-12-10 Thread Josh Canfield
I haven't spent a ton of time thinking about your specific problem, or why you can't disable the link, but it reminded me of an old thread about canceling link submits. http://tapestry.1045711.n5.nabble.com/quot-Confirm-quot-mixin-won-t-cancel-when-in-zone-td2436465.html If you can't disable the

Re: T5: When Flash persisted values are cleared?

2010-12-10 Thread Dmitriy Vsekhvalnov
Does @PageDetached works with components? On Fri, Dec 10, 2010 at 9:20 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Fri, 10 Dec 2010 12:18:22 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Hi all, i'm slightly confused with @Persist(flash) and XHR requests.

Re: T5: When Flash persisted values are cleared?

2010-12-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Dec 2010 18:55:06 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Does @PageDetached works with components? No, but you can use @CleanupRender or @AfterRender for that. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant,

ajaxExceptionHandler Method name typo in tapestry 5.2.4

2010-12-10 Thread Dimitris Zenios
There is a typo in tapestry.js regarding ajaxExceptionHandler function.The method name is ajaxExceptionHander instead of ajaxExceptionHandler and you are registering it in (new Ajax.request) as ajaxExceptionHandler ps. i already submitted a jira (TAP5-1367)

Ajax custom exception handled does not work in tapestry 5.2.4

2010-12-10 Thread Dimitris Zenios
Even if i create my own exceptionhandler function and register it through the Tapestry.ajaxRequest(url,{ onException: function}) the exception handled is not called when an exception is thrown.I think the problem is in the succes function that tapestry.js overwrites we have this snippet of

ajaxExceptionHandler Method name typo in tapestry 5.2.4

2010-12-10 Thread Dimitris Zenios
There is a typo in tapestry.js regarding ajaxExceptionHandler function.The method name is ajaxExceptionHander instead of ajaxExceptionHandler and you are registering it in (new Ajax.request) as ajaxExceptionHandler ps. i already submitted a jira (TAP5-1367)

Ajax custom exception handler does not work in tapestry 5.2.4

2010-12-10 Thread Dimitris Zenios
Even if i create my own exception handler function and register it through the Tapestry.ajaxRequest(url,{ onException: function}) the exception handled is not called when an exception is thrown.I think the problem is in the succes function that tapestry.js overwrites we have this snippet of

RE: Image file upload with Easy FCKEditor

2010-12-10 Thread Jim O'Callaghan
Hi, did you ever get a workaround for this? From looking around I can see there are various fixes involving .htacess files / mods to php config but was hoping there was something obvious within Easy FCKEditor itself ... Regards, Jim. -Original Message- From: Alex W. Croton

Re: Ajax custom exception handled does not work in tapestry 5.2.4

2010-12-10 Thread Josh Canfield
Can you provide an example of an exception that is not being handled? Are you talking about javascript exception or java exception? On Fri, Dec 10, 2010 at 1:40 PM, Dimitris Zenios dimitris.zen...@gmail.com wrote: Even if i create my own exceptionhandler function and register it through the

Re: T5: Progress indicator and AJAX example?

2010-12-10 Thread Taha Hafeez
Hi, Here is a simple example Java Code :- import org.apache.tapestry5.BindingConstants; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.Link; import org.apache.tapestry5.MarkupWriter; import org.apache.tapestry5.annotations.AfterRender; import

Tapestry 5.2 offline documentation

2010-12-10 Thread Yohan Yudanara
Hi. I've just download tapestry-src-5.2.4. How can I generate documentation for offline reading? Should I run mvn site on every subfolder of tapestry-src-5.2.4 ? I've got the following error when running mvn site inside tapestry-src-5.2.4/tapestry-project: [INFO] Trace

T5: t:errors not displaying when form has a zone

2010-12-10 Thread Angelo C.
Hi, I got a form like this, t:errors got displayed, but if I put a zone in the form, errors are not shown, why? t:form t:id=myform zone=myzone input t:type=textarea t:id=msg t:value=msg input t:type=submit name=Post t:id=Post / input

T5: t:errors not displaying when form has a zone

2010-12-10 Thread Angelo C.
Hi, I got a form like this, t:errors got displayed, but if I put a zone in the form, errors are not shown, why? t:form t:id=myform zone=myzone input t:type=textarea t:id=msg t:value=msg input t:type=submit name=Post t:id=Post / input