Re: T5: Form cancellation query

2008-08-27 Thread Baofeng Yu
The following should work: onclick="location.href='Page1';"/> Hope this helps! [EMAIL PROTECTED] wrote: I have a form on a page and I have two buttons: Submit and Cancel. I have handlers for both. However, because I need two of the fields to be required, the client side checking never all

Re: T5 Paypal IPN handler

2008-03-13 Thread Baofeng Yu
validate order // send confirmation back to paypal return true; } So now you have a Dispatcher that gets executed when someone access the url http://myserver/mycontext/notifyorder. So just give that URL to paypal and your set. Baofeng Yu wrote: Hi, I would like to integrate P

T5 Paypal IPN handler

2008-03-13 Thread Baofeng Yu
Hi, I would like to integrate Paypal with a T5 application. Previously with JSP, I had a paypal IPN handler jsp page. After user makes a payment, Paypal posts the payment data to my jsp page and my script checks the data and process it. The jsp script runs in the background and is separate f

Re: NPE problem

2008-02-29 Thread Baofeng Yu
There's a workaround for the JDK bug in Tapestry 5.0.10. On Fri, Feb 29, 2008 at 8:40 AM, Baofeng Yu <[EMAIL PROTECTED]> wrote: Looks like the NPE problem is due to a JDK 5 bug. After I upgrade JDK to 1.6, the problem is fixed. Baofeng Baofeng Yu wrote: > Yes, it happens co

Re: NPE problem

2008-02-29 Thread Baofeng Yu
Looks like the NPE problem is due to a JDK 5 bug. After I upgrade JDK to 1.6, the problem is fixed. Baofeng Baofeng Yu wrote: Yes, it happens consistently when I restart jboss and access the page the first time after the restart. Afterwards, it's all OK. I am using 5.0.9. Baofeng R

Re: NPE problem

2008-02-28 Thread Baofeng Yu
ut no jboss, and I can't reliably reproduce this issue. It just pops up on occasion. So I'd be interested in knowing if you can consistently reproduce this problem. Btw, what version of T5 is this? Robert On Feb 28, 2008, at 2/2810:02 AM , Baofeng Yu wrote: Hi All, I deployed a tapes

NPE problem

2008-02-28 Thread Baofeng Yu
Hi All, I deployed a tapestry application into Jboss and am having the following problem: If I call a page directly with the url: http://localhost:8080/test/start, all works OK. But when I access the page with the url: http://localhost/test/start , it first returns a NullPointerException. I

Re: T5 getElementById from Layout component

2008-02-08 Thread Baofeng Yu
Thanks for all your replies ... Finally fixed the problem by looking at the generated html source file. The problem was actually not with calling the div from the head of layout.tml. Because after the page is rendered, all the elements are available, so there is really no problem there. But fo

Re: T5 getElementById from Layout component

2008-02-08 Thread Baofeng Yu
ElementById("1") and add script to the the header.jsp file.) Thanks. Baofeng Chris Lewis wrote: What exactly do you want to do? What you're explaining doesn't really make sense - that is, hard-coding a DOM id in a component that doesn't contain such an id. What is yo

T5 getElementById from Layout component

2008-02-07 Thread Baofeng Yu
Hi all, I have a layout component that wraps around a page, say Start.tml. Suppose there is a element on Start.tml. In the Layout.tml header section, I want to have some JavaScript code to change that element. What is the correct way to get that element? It seems document.getElementById('1')