Re: [Fwd: Re: [Htmlunit-user] Testing Tapestry]

2006-11-10 Thread D&J Gredler
I've been using HtmlUnit for the BeanForm integration tests. The one bug I encountered in HtmlUnit was patched within days. Of course, I'm not using any of the async stuff :-) Also FYI, I'm currently pushing to get the unit tests for some of the more popular JavaScript libraries integrated into t

Re: Tap 4 Validator questions

2006-11-10 Thread Dennis Sinelnikov
I think your problem is in using validators: prefix in "validators=validators:" That tells tapestry, that your listing validators. However, $myMaxValidator is actually a bean (your custom validator). Thus, you need to use bean: prefix. "validators=bean:.." If you want to use more than

Stale Link Issue

2006-11-10 Thread david joffrin
Hi, I have defined something like: value="ognl:accountFieldDefinition" index="ognl:index" element="tr"> src="images/spacer.gif" width="1" height="3"/> width="1" height="3"/>

Re: OGNL Notation for accessing List Element

2006-11-10 Thread Bill Holloway
Use parentheses rather than square brackets: ognl:getName('titi') OR (if that doesn't do it), ognl:page.getName('titi') Cheers, Bill On 11/8/06, Micha Roon <[EMAIL PROTECTED]> wrote: I have one page (Home.html) with its Class (Home.java) and in the class I have the two methods public Stri

Tap 4 Validator questions

2006-11-10 Thread Julian Sinai
Hi I'm a bit confused about validators in Tapestry 4.0.2. The doc says the following ought to work: import org.apache.tapestry.annotations.*; import org.apache.tapestry.form.validator.Max; import org.apache.tapestry.form.validator.Validator; @ComponentClass(allowInformalParameters = false, allo

Re: ForBean issues

2006-11-10 Thread Srinivas Yermal
BTW We currently use version 4.0.2. and run it on tomcat. I would also appreciate if somebody can point me to the "rewind" document if any. I have heard so many stories about common newbie rewind mistakes but couldnt find what they really are. Thanks again. Srini. On 11/10/06, Srinivas Yermal <[E

Re: tapestry-acegi questions

2006-11-10 Thread James Carman
You could use a callback somehow to do that, I would think. But, you would probably have to implement the auto-redirect-to-login-page logic yourself, so that you could save the callback into the session or set it on the login page as a property or something. On 11/10/06, Robin Ericsson <[EMAIL

[Fwd: Re: [Htmlunit-user] Testing Tapestry]

2006-11-10 Thread Dan Adams
FYI, for people using HtmlUnit with 4.1 and Tacos. Marc is the author of HtmlUnit. Forwarded Message From: Marc Guillemot <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [Htmlunit-user] Testing Tapestry Date: Fri, 10 Nov 2006 10:01:10 +0100 I c

ForBean issues

2006-11-10 Thread Srinivas Yermal
Hi, I am a newbie trying to learn Tapestry. I did try to search through the archives for a solution, but couldnt find anything relavant. It would be great if someone could point me in the right direction. I have a page with a listing of a collection. I am using "For" component (ForBean) in the f

Re: tapestry-acegi questions

2006-11-10 Thread Robin Ericsson
On 11/3/06, James Carman <[EMAIL PROTECTED]> wrote: Maybe you could just create your own Tapestry form (just like you do for any other page) and submit it. Within the form's processing, you could use the Acegi API (SecurityContextHolder.getContext().setAuthentication() maybe?) to set up the secu

Re: Outputing a file to user (correctly getting ahold of the getOutputStream method)

2006-11-10 Thread Jiří Mareš
Hi, it is not much difficult: First the URL to servise is http://your.server/your.app.context/app?service=pdf_report&pdf=xx where the pdf_report is the name of the service and attribute pdf specified what report to return (you can use any attributes you want and need). Then you create the ser