Re: Problem on Unit Testing Page containing SpringBean

2007-05-12 Thread Kent Tong
Eko S.W. gmail.com> writes: > I've got problem on unit testing Tapestry Page using PageTester on T5. > If the page contain SpringBean, it cause Error : > getAttribute() is not supported Please see http://thread.gmane.org/gmane.comp.java.tapestry.user/46692 ---

Re: T5: PageTester and Spring Integration

2007-03-22 Thread Kent Tong
skipoles.co.uk> writes: > So, my question... is there a way that I can get spring integration working > within PageTester? If not, then some thoughts... You may want to create a feature request at https://issues.apache.org/jira/browse/TAPESTRY and upload a test case. There is no guarantee tha

Re: Starting with Tapestry

2007-02-05 Thread Kent Tong
the bulk of repetitive work in some limited scopes. 2) Create a platform that allows T4 pages and T5 pages running in the same app and create a bridge to allow them to communicate or to share ASO. -- Kent Tong Author of a book for learning Tapestry (ht

Re: T5: which way do you prefer?

2007-01-27 Thread Kent Tong
Howard Lewis Ship gmail.com> writes: > Thing is, that would have to be > _textField.setValidator("required,minlength=10"). > > The way the validate binding factory works, it needs to know a lot > about the component being bound as well as the container component. > That's how it obtains the fiel

Re: T5: which way do you prefer?

2007-01-27 Thread Kent Tong
Howard Lewis Ship gmail.com> writes: > For me, the issue is that this puts an onus on the developers (us!) to > write much more code for components, while limiting their > functionality in the process (locking down some parameters as simple > read-only properties). Are you concerned that someone

Re: T5: which way do you prefer?

2007-01-27 Thread Kent Tong
Howard Lewis Ship gmail.com> writes: > T5 components have a very definite construction-phase (where they are > hooked up, parameters are bound, etc.) followed by a production-phase. > > The new methods you are talking about are contruction-phase only. But > what happens if they are invoked in p

T5: which way do you prefer?

2007-01-27 Thread Kent Tong
Hi, In T5, how would like to configure a component? For example, let's imagine a component type ColorText that outputs a string in a certain color. You're now using this component in a page. First, an all-binding style (same concept as in T4): @ComponentClass public class MyPage { @Component

Re: Enjoying Web Development with Tapestry updated for T4.1 (with AJAX)

2007-01-03 Thread Kent Tong
I did send the link to those valid subscribers a few days ago (supposedly including Daniel; I'll check). -- Kent Tong Useful & FREE software at http://www2.cpttm.org.mo/cyberlab/freeware - To unsubscribe, e-mail: [E

ANN: Enjoying Web Development with Tapestry updated for T4.1 (with AJAX)

2006-12-30 Thread Kent Tong
Hi, I've updated my book for T4.1 with a new chapter on AJAX. The first four chapters are freely available. More info at http://www.agileskills2.org/EWDT Thanks! -- Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT) --

Re: new logo for Tapestry

2006-05-17 Thread Kent Tong
Kent Tong cpttm.org.mo> writes: > I agree that a logo competition should be held. > > At the mean time, my artist friend has created one at > http://www.agileskills2.org/EWDT/Tapestry.jpg > > Please comment. My friend has made another one. Please go over http://www.

new logo for Tapestry

2006-05-17 Thread Kent Tong
Hi, I agree that a logo competition should be held. At the mean time, my artist friend has created one at http://www.agileskills2.org/EWDT/Tapestry.jpg Please comment. -- Kent Tong Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT

Re: Testing pages

2006-05-12 Thread Kent Tong
Rob Dennett tmit1.org> writes: > Property bugService > should be read-only; remove method public abstract void > view.Browse.setBugService(model.services.BugService). > > How do you get around this? Sorry that I've using this approach to unit test T3 pages only. I don't know why @InjectObject

Re: Testing pages

2006-05-10 Thread Kent Tong
Rob Dennett wrote: My page uses an injected service to authenticate the user. The page only provides a getter. Do you add service setters to all your pages to provide hooks just for these setup pages? Yes. -- Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified Manager of IT Dept, CPTTM

Re: tapestryforums.com

2006-05-09 Thread Kent Tong
users list goes) +1 -- Kent Tong Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Testing pages

2006-05-09 Thread Kent Tong
ew UserAuthenticator() { void authenticate(String userName, String passwd) { //your fake implementation } }); cycle.activate(login); } -- Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified Manager of IT Dept, CPTTM Authorized training for Borland, Cisco, Microsoft, Orac

Re: Best way to record an error in a listener

2006-05-08 Thread Kent Tong
Form().getDelegate().record(field, msg); } } -- Kent Tong Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problem with including external file as parameter

2006-05-08 Thread Kent Tong
arun garg persistent.co.in> writes: > But the trouble is that if I make an asset and insert it, there are parsing > problems because one tag can not be > put inside another: > insert value="ognl.asset1">> Have you tried: -- Kent Tong Author of a b

Re: messages-encoding problem for japanese in utf-8?

2006-05-08 Thread Kent Tong
display a page in japanese i get cabalistic characters on my > web page like: Open your .html file in a browser and check what character set it is in. For example, in FireFox, choose View | Character Encoding to see which one is selected. I suspect your file is not in UTF-8. -- Kent Tong Author of

Re: Testing pages

2006-05-08 Thread Kent Tong
XXTestCaller external page to setup the fixture, call the page being tested and check the results. -- Kent Tong Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT) - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo