Re: T5 IoC Tests and Mock objects

2009-11-02 Thread Adriaan Joubert
Thanks, Howard. I've put it in as https://issues.apache.org/jira/browse/TAP5-918. Let me know if there is something I can do to help. Thanks, Adriaan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional

Re: Problem with ActionLinks inside Zone

2009-11-02 Thread DH
Never got this issue. Since the action link is linked to the zone, in the ajax response, the action link will be linked to the zone again (script in the response will be executed), so the next time it is still an ajax request. Maybe post some code that we can help you. DH http://www.gaonline.c

Re: T5 Random Issue

2009-11-02 Thread DH
I got this issue with gzip enabled and tomcat6, tomcat5 has no problem. So I had to disable gzip in tapestry. DH http://www.gaonline.com.cn - Original Message - From: "Norman Franke" To: "Tapestry users" Sent: Tuesday, November 03, 2009 12:31 AM Subject: T5 Random Issue Periodically

Re: T5 Random Issue

2009-11-02 Thread Norman Franke
I'll see how that goes, thanks to all. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Nov 2, 2009, at 11:59 AM, Inge Solvoll wrote: Try disabling gzip in tapestry. On Mon, Nov 2, 2009 at 5:34 PM, Carl Crowder wrote: I have no idea. My vague guess is that the brows

Re: Component only invokes javascript correctly from BeginRender

2009-11-02 Thread Thiago H. de Paula Figueiredo
Em Mon, 02 Nov 2009 13:02:31 -0200, Jonathan O'Connor escreveu: Hi, Hi! I wanted to change the BeginRender code into MyTabs.tml instead. Naturally, everything looks fine, and the generated html looks the same as that explicitly written by the BeginRender method, but the java script do

Re: T5 IoC Tests and Mock objects

2009-11-02 Thread Howard Lewis Ship
That's a bit more major surgery, but possible. Document all this in an issue and we'll see about getting it implemented! On Mon, Nov 2, 2009 at 12:26 PM, Adriaan Joubert wrote: > That would be great! And we would need some way of invalidating a > service so that a clean mock would be picked up fo

Re: T5 IoC Tests and Mock objects

2009-11-02 Thread Adriaan Joubert
That would be great! And we would need some way of invalidating a service so that a clean mock would be picked up for a successive test, i.e something like the per-test scope in testify? I assume a life cycle service would do the job, but I think then a way of changing the scope on an existing bind

Re: T5 IoC Tests and Mock objects

2009-11-02 Thread Howard Lewis Ship
That's actually a very interesting idea ... I can see implementing additional methods on RegistryBuilder that would allow you to supply pre-built (i.e., mock) implementations of various services, for the express purpose of testing. On Mon, Nov 2, 2009 at 10:45 AM, Adriaan Joubert wrote: > Hi, > >

T5 IoC Tests and Mock objects

2009-11-02 Thread Adriaan Joubert
Hi, We are using T5 IOC in a standalone application and it is great. Most tests we can implement with a few mock classes and instantiating an instance of the implementation of a service. There are however cases where it is easier to use the IOC registry to stitch things together, but only replace

Send multizone update from embedded component

2009-11-02 Thread lmhill
I have a component with a zone in it. Inside the zone is an embedded component which also contains a zone. The main zone is a customer detail page, while the inner component shows a list of contacts and has a link to mark one as the primary contact. The customer details include the primary contact

onAction method called twice ...

2009-11-02 Thread Gunnar Eketrapp
Hi! I have an actionlink method ... Object onActionFromFoo(long userid) ... that returns the class of another page (E.g. Home.class) For some reason after returning the class the same action method get's called again. First after this second call to the action method the Home page gets called.

Re: T5 Random Issue

2009-11-02 Thread Jan Jirout
Hi, I had same problem. I generate images manually by dispatcher. This happen when I sometimes didn't close output stream. regards Jan On Nov 2, 2009, at 5:34 PM, Carl Crowder wrote: I have no idea. My vague guess is that the browser isn't unzipping the GZipped content for some reason - p

Re: T5 Random Issue

2009-11-02 Thread Inge Solvoll
Try disabling gzip in tapestry. On Mon, Nov 2, 2009 at 5:34 PM, Carl Crowder wrote: > I have no idea. My vague guess is that the browser isn't unzipping the > GZipped content for some reason - perhaps the content type is wrong? That > wouldn't explain why it was intermittent though. Perhaps pipe

Re: T5 Random Issue

2009-11-02 Thread Carl Crowder
I have no idea. My vague guess is that the browser isn't unzipping the GZipped content for some reason - perhaps the content type is wrong? That wouldn't explain why it was intermittent though. Perhaps pipe the output through gunzip to see if it decompresses? Norman Franke wrote: Periodically,

T5 Random Issue

2009-11-02 Thread Norman Franke
Periodically, users get pages full of unicode or something like this the attached. It displays as boxed question marks in safari. This happens in both Safari and Firefox. Refreshing generally displays the page properly. What causes this? It's using Tapestry 5.1.0.5 and Tomcat. ���v7�&��)

Component only invokes javascript correctly from BeginRender

2009-11-02 Thread Jonathan O'Connor
Hi, I have a strange problem. One of my colleagues found a javascript library ajaxtabs from DynamicDrive.com, and he created a small component wrapping its usage. His code makes use of @BeginRender to generate the html. The last part of this generated html is a little script that invokes the a

Re: [t5] upgrade to java 6 and javassist

2009-11-02 Thread Inge Solvoll
Done some pretty extensive research on this the last few days. Our application doesn't work at all on our test and production servers, because of the dreaded "invalid constant length" error. We have the following setup: - jre-6u16 for linux - Suse Linux - JBoss 5.0.1 with embedded tomcat - Compile

Re: How to display Blob byte array image?

2009-11-02 Thread Albert Tumanov
Great example. Can anybody add this to Tapestry5HowToStreamAnExistingBinaryFile please ? On Mon, Sep 21, 2009 at 3:20 AM, Thiago H. de Paula Figueiredo wrote: > Em Sun, 20 Sep 2009 21:49:49 -0300, Jun Tsai escreveu: > >> Thank your quick reply.I had seen it.But How to code image element in .t

Re: T5:how to support AJAX submit

2009-11-02 Thread Inge Solvoll
Forget about triggerLink, it does excactly what it says, it triggers a link. You call submitZoneForm from PeriodicalUpdater, and you're done. As I said, use zone updated event for callback if you need it. On Mon, Nov 2, 2009 at 2:35 AM, cleverpig wrote: > hi! Thanks for your share!it's really he