Validation based on condition

2010-03-17 Thread Jagadesh Paladugula
Hi Everyone, I have a form which is getting generated dynamically based on some values in database. I want to add validation for a text box based on some condition. I tried doing some thing like this and added the below method in respective java file public String getValidator(){ if(test f

Re: [Announce] Wooki - Collaborative Writing - version 0.2.0 is here!

2010-03-17 Thread abangkis
Great, i was waiting for this. Congrats ! :) On Wed, Mar 17, 2010 at 9:19 PM, Robin Komiwes wrote: > We are pleased to announce Wooki 0.2.0 release. We have been working more > than two months on this major update and we hope you will appreciate our > efforts. > > For newcomers, Wooki is a colla

Re: How to hook component into validation?

2010-03-17 Thread Joost Schouten (ml)
You can listen for the validation events on the individual form elements of your component. eg: @Enviromental private ValidationTracker validationTracker; @OnEvent(component = "myFormField", value = EventConstants.VALIDATE) private void validateFormField(Object valueAboutToBeSet) { //do you

Re: How to create absolute URL?

2010-03-17 Thread Dariusz Majewski
Hi, Not sure that this is the best way, but I did it like this: @Inject private Request request; @Inject private RequestGlobals requestGlobals; public String getHostUrl(){ if(hostUrl == null){ hostUrl = getRequestGlobals().getHTTPServletRequest().getS

How to create absolute URL?

2010-03-17 Thread Algirdas
For registration process, I need to send user an email with an absolute link to my site, which finalizes the registration, that is, full URL with protocol (may be https), site name, page & parameters: http://www.somemysite.com/register/p=RTWE343434dsfdf3435353sfsdfsdfdsf Is there a way from Tap

Modifying the title in a layout component

2010-03-17 Thread Robert Hailey
I'm using 5.1.0.5 and thought I could do something like this... [Page.tml] http://tapestry.apache.org/schema/tapestry_5_1_0.xsd "> My Page Title My Page Content The 'passthru' component was easy to make, but apparently the t:extension-point works much mo

Re: Tapestry in Action on SeeSaw

2010-03-17 Thread Alfonso Quiroga
+1 , I want to see the video :) On Wed, Mar 17, 2010 at 2:17 PM, Ivano Luberti wrote: > +1 > > Il 17/03/2010 18.13, Inge Solvoll ha scritto: > > Please send the link if/when there is a screencast! :) > > > > On Wed, Mar 17, 2010 at 5:42 PM, Ben Gidley wrote: > > > > > >> I believe they will be

How to hook component into validation?

2010-03-17 Thread Michael Prescott
I have a component which is a wrapper around some form fields. (Imagine an 'edit address' component.) If I want to provide some custom validation, is there a way to listen to the enclosing form's validation event? The problem is that the form is defined in the page, not in my component. Right no

Re: Tapestry in Action on SeeSaw

2010-03-17 Thread Ivano Luberti
+1 Il 17/03/2010 18.13, Inge Solvoll ha scritto: > Please send the link if/when there is a screencast! :) > > On Wed, Mar 17, 2010 at 5:42 PM, Ben Gidley wrote: > > >> I believe they will be recording it - so you should be able to catch a >> screen/pod cast. >> Ben Gidley >> >> www.gidley.co.u

Re: Tapestry in Action on SeeSaw

2010-03-17 Thread Inge Solvoll
Please send the link if/when there is a screencast! :) On Wed, Mar 17, 2010 at 5:42 PM, Ben Gidley wrote: > I believe they will be recording it - so you should be able to catch a > screen/pod cast. > Ben Gidley > > www.gidley.co.uk > b...@gidley.co.uk > > > On Wed, Mar 17, 2010 at 3:18 PM, Howar

Re: Tapestry in Action on SeeSaw

2010-03-17 Thread Ben Gidley
I believe they will be recording it - so you should be able to catch a screen/pod cast. Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Wed, Mar 17, 2010 at 3:18 PM, Howard Lewis Ship wrote: > Will it be recorded? I'd really like to see this, but I can't jump > over to London for it ! > > On

Re: XSS vulnerability in calendar component

2010-03-17 Thread françois facon
https://issues.apache.org/jira/browse/TAP5-1057

How to order libraries mapping ?

2010-03-17 Thread Nourredine K.
Hello, I want to provide an easy way, for users (developpers), to extend GUI modules (CRUD tapestry pages/components). So we give them a "generic" module (a component library) that they can extend/override. The constraint is that we don't want to use url rewriting. So, we use the same alias for

Re: Order of processing of mixins

2010-03-17 Thread Robert Zeigler
Depends on what version of Tapestry you are using. Explicit ordering of mixins is in trunk. Robert On Mar 17, 2010, at 3/178:50 AM , Michael Prescott wrote: As I understand it, mixin order is unspecified. A developer on our team had this issue and wound up implementing a custom component, I

Re: Order of processing of mixins

2010-03-17 Thread Michael Prescott
As I understand it, mixin order is unspecified. A developer on our team had this issue and wound up implementing a custom component, IIRC. Michael On Wed, Mar 17, 2010 at 11:45 AM, LiborGMC wrote: > > Hi there, > I've implemented two mixins which just add some JavaScript code to action > onCli

Order of processing of mixins

2010-03-17 Thread LiborGMC
Hi there, I've implemented two mixins which just add some JavaScript code to action onClick to actionLink. I defined these two mixins to one actionLink. I expect that order in which mixins are fired is the same as I defined in "t:mixins" attribute. Firefox 3 is keeping this order but IE 8 isn't. C

Re: Tapestry in Action on SeeSaw

2010-03-17 Thread Howard Lewis Ship
Will it be recorded? I'd really like to see this, but I can't jump over to London for it ! On Wed, Mar 17, 2010 at 2:11 AM, Ben Gidley wrote: > Hi, > > If you are interested I am doing at free talk at Skillsmatter in London next > Tuesday (23rd March 2010) going through how we used tapestry on s

Re: XSS vulnerability in calendar component

2010-03-17 Thread Howard Lewis Ship
Please file an issue in JIRA; a patch is most welcome! 2010/3/17 françois facon : > Hello > > The calendar component provided in tapestry 5.1.0.5 could be used to allow > code injection by malicious web users into any page that uses datefield . > > To reproduce the vulnerability, put js code like

Re: Simple Event Propagation Problem

2010-03-17 Thread Nicolas Bouillon
Thank you Howard for the clear response. Of course it works well now. I was a bit surprised that it doesn't worked because I had already done this kind of event propagation for a method named "onSuccess()". But I believed it worked because I had not specified the name of the component. On Tue, 16

Use of hibernate in tapestry tutorial & JBoss 5.1

2010-03-17 Thread jaques robert
Hi, In this tutorial there is facility for using hibernate in tapestry using the package entities of the project : << But what entities? Normally, the available entities are listed inside hibernate.cfg.xml, but that's not necessary with Tapestry; in another example of convention over configurat

XSS vulnerability in calendar component

2010-03-17 Thread françois facon
Hello The calendar component provided in tapestry 5.1.0.5 could be used to allow code injection by malicious web users into any page that uses datefield . To reproduce the vulnerability, put js code like alert("T5 is great"); in any datefield and click on the related calendar bitma After quic

[Announce] Wooki - Collaborative Writing - version 0.2.0 is here!

2010-03-17 Thread Robin Komiwes
We are pleased to announce Wooki 0.2.0 release. We have been working more than two months on this major update and we hope you will appreciate our efforts. For newcomers, Wooki is a collaborative writing tool that let users publish and review documents. It is open source and distributed under the

[OT] Tapestry 5 Contractor wanted asap in London

2010-03-17 Thread Ben Gidley
Apologies for spamming this list - but we are looking for a contractor with Tapestry 5 for immediate start in London (we need on site). If anyone is interested please email me! Ben Gidley www.gidley.co.uk b...@gidley.co.uk

Re: Name of application module class too complicated?

2010-03-17 Thread Klaus Kopruch
+1 for Josh's suggestion Josh Canfield wrote: > > I've always just used AppModule... > > How about: > look for Module > look for AppModule > Throw exception "can't find Module or AppModule" > -- View this message in context: http://old.nabble.com/Name-of-application-module-class-too-compli