Re: T5: handling form events in sub-components?

2009-12-10 Thread Benny Law
Hi Jacob, It sounds like you have nested forms which is not allowed. Benny On Thu, Dec 10, 2009 at 11:07 PM, Jacob Mouka wrote: > Hi all (apologies if this is really obvious, but I can't find the info in > the docs/examples) > > I have some sub-components (with form elements) in a form and I w

T5: handling form events in sub-components?

2009-12-10 Thread Jacob Mouka
Hi all (apologies if this is really obvious, but I can't find the info in the docs/examples) I have some sub-components (with form elements) in a form and I want to do some actions when the form is submitted. I've tried something like void onSubmit() { System.out.pri

t5.2.0-SNAPSHOT: Possible bug: form.onsubmit is being replaced by a tapestry onsubmit handler

2009-12-10 Thread buckofive
Hi All, It seems tapestry is adding its own onsubmit handler directly to a form element and overwriting mine. Is this on purpose or a bug? (I want to use my own direct handler so I can cancel the event before it gets fired to any listeners). I feel if tapestry is going to write any event handle

Re: Render block for Ajax component

2009-12-10 Thread Magnus Kvalheim
Ok, this is what I have so far: 1. Component that generates eventlink and adds javascript for ajax request. 2. Once ajax is invoked it will call the event method on parent component(page) 3. Event method returns block and the result is shown in modal/tooltip What's shown in the client is the json

GlassFish V3 Shipped Today

2009-12-10 Thread Pierce T. Wetter III
I was wondering if anyones knows how the directions here change: http://tapestry.apache.org/tapestry5/glassfish.html That is, I imagine that since V3 is more componentized, perhaps the stax and log4j installs are no longer necessary? Anyone done this? PIerce --

Re: [T5] Permalinks

2009-12-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Dec 2009 16:49:25 -0200, blueboy6 escreveu: TNX Thiago, this really helped me a lot :) You're welcome! PS isn't url rewrite complicated to do when I have lots of diferent parts... (TWR-234, A34-TDS and so on) because I would need to create rule for all of them, I just read all

Re: Tapestry 5 on Websphere 6.1

2009-12-10 Thread Howard Lewis Ship
Thanks for contributing back that useful information! Looks nasty though! On Thu, Dec 10, 2009 at 5:11 AM, Christian Köberl wrote: > > I put together a small howto for anyone who tries to run Tapestry 5 on a > Websphere 6.1 (like we do yeah :) ): > > http://wiki.apache.org/tapestry/HowToRunTapes

Re: [T5] Permalinks

2009-12-10 Thread blueboy6
TNX Thiago, this really helped me a lot :) PS isn't url rewrite complicated to do when I have lots of diferent parts... (TWR-234, A34-TDS and so on) because I would need to create rule for all of them, I just read all documentation and didn't find anything similar. :) Thiago H. de Paula Figu

Re: [T5] Permalinks

2009-12-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Dec 2009 14:53:22 -0200, blueboy6 escreveu: Hello everyone, Hi! I have interesting question. Is it posible to create permalinks for my pages like: www.test.com/TY45-234 I know that there is activation context but I need to do this in this shorter way. Two suggestions: 1) Have

[T5] Permalinks

2009-12-10 Thread blueboy6
Hello everyone, I have interesting question. Is it posible to create permalinks for my pages like: www.test.com/TY45-234 I know that there is activation context but I need to do this in this shorter way. Or at least to take this permalink and to send it to other page as activation context. I

Tapestry-Spring problem: ApplicationContext files from jar can't be found.

2009-12-10 Thread Juan E. Maya
Hello! i am having some issues with the integration with Spring and Tapestry. We have one web application that has several modules packed as jars in the web-inf/lib. Each of those modules has its own application context. In the web.xml we have the following configuration to load the beans from spr

Render block for Ajax component

2009-12-10 Thread Magnus Kvalheim
Hi all, I'm trying to integrate thirdparty ajax libraries with Tapestry (5.1.0.5). These libraries uses Ajax.Request for getting content. Instead of getting a (whole) page, I'm trying to call an actionlink and return a block defined in the template. Many ajax libraries for showing a modal or tool

Re: Validators / Translators question

2009-12-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Dec 2009 11:50:31 -0200, Jim O'Callaghan escreveu: Thanks Thiago. I'm using the example at the link you specified, but found I needed to provide validators and translators to complete the approach, esp. the translator being missing / not bound was causing a NPE somewhere alon

Re: What about the EWDT book?

2009-12-10 Thread Boban Stojanovski
There is a new book about tapestry5 by Igor Drobiazko , its in german , but i think it will get translated to english. ( source : http://www.mail-archive.com/users@tapestry.apache.org/msg40439.html) Its a more indepth look at building web apps with tapestry5 spring and hibernate. Somethnig the boo

Re: Tapestry 5.1.0.5 FCKEDITOR PROBLEM

2009-12-10 Thread Boban Stojanovski
Problem Solved. thank u i modified my appmodule.java , according to joosts instructions , and it worked. my appmodule.java .. public static void contributeRegexAuthorizer(Configuration conf) { conf.add("^.*png$"); conf.add("^.*jpg$"); conf.add("^.*jpeg$"); c

RE: Validators / Translators question

2009-12-10 Thread Jim O'Callaghan
Thanks Thiago. I'm using the example at the link you specified, but found I needed to provide validators and translators to complete the approach, esp. the translator being missing / not bound was causing a NPE somewhere along the line. I can update the block to display the fields (sub fields in

Re: Date Validator

2009-12-10 Thread Nicolas Bouillon
Thiago H. de Paula Figueiredo a écrit : > Validation errors do not come from app.properties. They need to be put in some other properties file in the classpath and then you must inform this to Tapestry through a contribution to the ValidationMessagesSource public void contributeValidationMes

Tapestry 5 on Websphere 6.1

2009-12-10 Thread Christian Köberl
I put together a small howto for anyone who tries to run Tapestry 5 on a Websphere 6.1 (like we do yeah :) ): http://wiki.apache.org/tapestry/HowToRunTapestry5Websphere -- Chris -- View this message in context: http://n2.nabble.com/Tapestry-5-on-Websphere-6-1-tp4145237p4145237.html Sent from

Re: Exception accessing T5 Registry from other servlet

2009-12-10 Thread Inge Solvoll
I succeeded on this in Struts now, it works nicely and I'm cleaning up the registry by subclassing the struts action servlet and doing try-finally. One problem left: I'm using Sitemesh with T4. In my sitemesh decorator jsp, I'm referencing a custom tag that references a T5 service that references

Re: Date Validator

2009-12-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Dec 2009 10:21:13 -0200, Nicolas Bouillon escreveu: Hi, Hi! My problem I can't set the default message in case of validation error. I've always a [[missing key: date-must-be-in-future]], even if i put the key in my WEB-INF/app.properties. Validation errors do not come from

Date Validator

2009-12-10 Thread Nicolas Bouillon
Hi, I'm trying to add a validator for the date field. I've created the validator "infuture" to verify the picked date is in the future t:validate="required,infuture"/> In my app module, i've added /** * Contributes the set of validators: */ public static void contributeFie

Re: Validators / Translators question

2009-12-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Dec 2009 09:01:05 -0200, Jim O'Callaghan escreveu: Hi, Hi! Client - is it an incorrect approach to used Validators / Translators in this scenario and if so can anyone advise on how to abstract and reuse an embedded Address rendering approach? Validators and translators are me

Validators / Translators question

2009-12-10 Thread Jim O'Callaghan
Hi, I'm trying to simplify some pages using the Grid display for search results and the BEF for input and want to find out if Validators / Translators are intended to only operate on individual fields, or if the approach can be used as a pattern to validate and display multiple fields within a sin

Re: What about the EWDT book?

2009-12-10 Thread Andreas Andreou
Yea, no point in getting Enjoying-Web-Development-with-Tapestry and afaict there won't be a T5 update for it since Kent has been inactive in this list for more than a year and a half. On Thu, Dec 10, 2009 at 11:07 AM, Juan E. Maya wrote: > Alessandro although t4 and t5 are based on the same conc

Re: What about the EWDT book?

2009-12-10 Thread Juan E. Maya
Alessandro although t4 and t5 are based on the same concepts i think that u do things in quiet a different way and it's not worthy to buy if u are planning to develop an application using t5. There have been rumors of 2 other new tapestry 5 books that could go out. One would be an english translat

What about the EWDT book?

2009-12-10 Thread Alessandro Bottoni
Hello All, I'm studying Tapestry 5 and using it for a new project. I have already bought and read from cover to cover this fine book by Alexander Kolesnikov: http://www.amazon.com/Tapestry-Applications-step-step-developer-friendly/dp/1847193072/ref=sr_1_3?ie=UTF8&s=books&qid=1260433982&sr=1-3 Now

Re: Tapestry 5.1.0.5 FCKEDITOR PROBLEM

2009-12-10 Thread Joost Schouten (ml)
I too had this problem and it was caused by the new (and very necessary) asset authorisation which prevents web access to your context root through your tapestry app. The default is fairly strict, and as it seems too strict for the FCKeditor in the chenillekit-tapestry package. I added the foll