hivemind injections for custom captcha validator

2006-07-21 Thread spamsucks
I finally got a working component of Captcha for tapestry. It works great, with capcha being a hivemind service inside tapestry. My working implementation does the captcha test in a custom listener, but it would be even better if I could use a captcha validator. In this way, it would make it

Re: How can I disable the asset hash for javascript files?

2006-07-21 Thread Jesse Kuhnert
Hmm. I've done something like this for 4.1, but still have the original root md5 hash sitting out on the path. There really is no reason to have it there I guess. (in this specific instance only) I've added an "unprotected " resources hivemind configuration point that allows you to tell the Asset

Re: PermGen space

2006-07-21 Thread Martin Strand
I believe it has to do with Tapestry's class enhancing. If you disable caching (which you would only do in a development environment) Tapestry will re-enhance the component classes on every request, leaving the classloader with more and more classes to keep track of. Apparently, these classes

PermGen space

2006-07-21 Thread Harvey, David
Hello all, We've been having occasional problems with PermGen out of space errors thrown during the execution of our Tapestry application. We usually get a stack trace with something about hivemind at the top (see below). Then, of course, we have to restart our app server. Our environment is

How can I disable the asset hash for javascript files?

2006-07-21 Thread Josh Long
Essentially, I have a bevy of components that reference things via the asset mechanims. Is there anyway to get tapestry 3 (in this case, though Id like to know the 4.0 solution if possible, as well) to not create a hash and to instead simply write out the url without the sp parameter and such affi

RE: contrib:Table paging in @For loop

2006-07-21 Thread Steve Shucker
Thank you! That was a trivially simple solution that solved 90% of my issues. I'd spent several hours digging into the table's internals before I saw your email and fixed the paging in 10 minutes. It was no problem to make the objects I was iterating over implement ITableSessionStoreManager. Is

RE: how do i store spec & html in a sub dir of WEB-INF for components and pages..

2006-07-21 Thread Jeff Lubetkin
See http://wiki.apache.org/tapestry/SpeclessPagesInWEB-INF, which provides instructions on putting template-only pages in WEB-INF. jeff -Original Message- From: Josh Long [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 1:45 AM To: Tapestry users Subject: how do i store spec & html

Validators being ignored in components

2006-07-21 Thread Rui Pacheco
Hi all I'm wondering if the way to define validators for fields inside a component is the same as for fields inside templates. I have defined a component as being a piece of html, the definition file and the java class. In the definition file (.jwc), I have declared the validator this way:

Re: contrib:Table paging in @For loop

2006-07-21 Thread Mind Bridge
Hi, The reason this happens is that Table stores its state in a persistent property by default, which happens to be the same property when Table is placed in a For loop. Please implement ITableSessionStoreManager and provide the 'tableSessionStoreManager' parameter to Table. That will allow yo

RE: Tapestry & AspectJ

2006-07-21 Thread Konstantin Ignatyev
In case there is a need to apply aspects to all the classes in the application and its libraries, lets say add tracing aspect, then AspectJ can be applied at build time and statically weave all the necessary things into classes, which will then be just regular classes and I think the can be additio

RE: Tapestry & AspectJ

2006-07-21 Thread James Carman
The point is that you can use HiveMind to get Aspect injection. What are you looking to achieve? The aspects will be weaved into whatever classes you want. But, you can have your aspects depend on stuff that HiveMind can find for you (like services and configurations) and then have those things

Re: tapestry - spring integration

2006-07-21 Thread Anders Cessner
thank you all for the answers. i was able to get it to work very quickly and elegantly by using howards tapestry-spring. On 7/21/06, Christian Dutaret <[EMAIL PROTECTED]> wrote: You're absolutely right. Although the Spring context listener is not specific to tapestry integration, it is just

Re: Tapestry & AspectJ

2006-07-21 Thread Adam Zimowski
Oh, so Hivemind must know about my objects. What about objects outside of Hivemind scope, those instantiated thru the code? On 7/21/06, James Carman <[EMAIL PROTECTED]> wrote: I wrote a HiveMind module that allows you to inject HiveMind services/configurations into AspectJ aspects. It works

RE: Tapestry & AspectJ

2006-07-21 Thread James Carman
I wrote a HiveMind module that allows you to inject HiveMind services/configurations into AspectJ aspects. It works similar to the way Spring does it. -Original Message- From: Adam Zimowski [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 10:30 AM To: users@tapestry.apache.org Subje

Tapestry & AspectJ

2006-07-21 Thread Adam Zimowski
Can anybody reflect on their experience with combining a large Tap (4) application with AspectJ? I am most interested in advising Tapestry pages but also any other object that I may not have configured explicitly in Hivemind. * By using AspectJ was cross cutting truly easier on your application a

Re: Issues with Label Components with Tapestry 4.0

2006-07-21 Thread mraible
I ended up overriding the default FieldLabel: http://fisheye5.cenqua.com/qsearch/appfuse/?q=FieldLabel -- View this message in context: http://www.nabble.com/Issues-with-Label-Components-with-Tapestry-4.0-tf1686779.html#a5434006 Sent from the Tapestry - User forum at Nabble.com. -

Re: tapestry - spring integration

2006-07-21 Thread Christian Dutaret
You're absolutely right. Although the Spring context listener is not specific to tapestry integration, it is just the standard spring way to expose a context to a web application. Howard's tapestry-spring just hooks on this. hv @ Fashion Content wrote : wouldnt you need to add the SpringCont

Re: tapestry - spring integration

2006-07-21 Thread hv @ Fashion Content
wouldnt you need to add the SpringContext listener to web.xml as well? "Christian Dutaret" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > It is actually very easy. > Download tapestry-spring.jar from Javaforge. Put the jar in your web app > classpath, then you can inject Spri

RE: Getting started with Tacos

2006-07-21 Thread Jonathan Barker
This may not be your problem, but... When there is a problem with the AJAX functionality, the tacos components tend to fall back to conventional behavior - I found this when I was having problems. Make sure there are no script errors on your page, and make sure you have the necessary dojo script

Getting started with Tacos

2006-07-21 Thread Rachel Swailes
Hi there I've read a lot of documentation and other posts online but I'm still struggling to get started with tacos. I started by trying to get the examples in the component reference to work and the AjaxSubmit example kind of works now. But the page completely reloads after I press the Logi

Auto submit invoked by a DatePicker selection?

2006-07-21 Thread Gareth McClure
Hi, I am working on a Tapestry project and I have a functioning DatePicker component, however what I want to do is to automatically invoke a submit to update the date binding when a user uses the DatePicker component to select a date, rather than making the user press a submit button. Can anyone

Making java.sql.Connection available to object as HiveMind service

2006-07-21 Thread Rui Pacheco
Hi all I'm using HiveTranse to make a Connect object available as a HiveMind service to my application, but I am wondering if there isn't any other way of making it available. I'm trying to move away both from the extra weight HiveTranse's .jars bring and the lack of documentation and examples a

how do i store spec & html in a sub dir of WEB-INF for components and pages..

2006-07-21 Thread Josh Long
Hello freindly Tapestry list.. What is the configuration mechanism to specify a custom spec/template resolver for the page or component? That is, i'd like to have a directory structure: /WEB-INF/pages/(*html|[*.page]) /WEB-INF/components/(*html|[*.jwc]) and have it so that if /WEB-INF/pages/Foo

Re: tapestry - spring integration

2006-07-21 Thread Christian Dutaret
It is actually very easy. Download tapestry-spring.jar from Javaforge. Put the jar in your web app classpath, then you can inject Spring beans into your page like this : @InjectSpring("my.bean") public abstract MyBeanType getMyBean(); (that is if you use annotations) Further detailed e

Re: tapestry - spring integration

2006-07-21 Thread Christian Haselbach
Quoting Anders Cessner <[EMAIL PROTECTED]>: > I´ve browsed through some of the mails sent to this mailing list earlier and > have learned some tricks to keep those lazy load exceptions away, for > example, but didnt really get how exactly do i configure tapestry and spring > so i can inject the sp

tapestry - spring integration

2006-07-21 Thread Anders Cessner
Hi all, I just started on a project that uses spring with spring web mvc, hibernate and acegi, but now wants to move from spring mvc to tapestry 4. I tried to merge the contents of AcegiSpringJava5 on wiki to the project, but obviously due to earlier configurations of acegi i just get 2 pages

Re: Testing Tapestry application

2006-07-21 Thread KE Gan
Haha .. alright :> .. Thanks a bunch !! On 7/21/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I can't really take credit for it. All I did was move java files around to different places and made them use the testing infrastructure that Howard/the team had already created. You can use it now, ju