Re: Validation issue with Tapestry 4

2012-12-18 Thread Muhammad Gelbana
Why don't you switch to v5 ? I rarely fine anyone getting answers to T4 quesitions, besides, T5 is unbelievable ! On Tue, Dec 18, 2012 at 8:38 AM, SAMPY wrote: > Any Solutions? > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Validation-issue-with-Tapestry-4-tp

Re: Validation issue with Tapestry 4

2012-12-17 Thread SAMPY
Any Solutions? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Validation-issue-with-Tapestry-4-tp5718593p5718801.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe,

Re: Validation of a component inside a Form

2010-09-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Sep 2010 02:45:53 -0300, Stephan Windmüller wrote: On 14.09.2010 18:30, Josh Canfield wrote: Flash persistence is good for getting data between the action and render requests. Tapestry does redirect after every event so you'd generally set the value in an action request so you ca

Re: Validation of a component inside a Form

2010-09-14 Thread Stephan Windmüller
On 14.09.2010 18:30, Josh Canfield wrote: > Flash persistence is good for getting data between the action and > render requests. Tapestry does redirect after every event so you'd > generally set the value in an action request so you can use it in the > render request, or vice versa I suppose. Yes

Re: Validation of a component inside a Form

2010-09-14 Thread Josh Canfield
Flash persistence is good for getting data between the action and render requests. Tapestry does redirect after every event so you'd generally set the value in an action request so you can use it in the render request, or vice versa I suppose. It took some considering to come up with why you might

Re: Validation of a component inside a Form

2010-09-14 Thread Stephan Windmüller
On 14.09.2010 15:14, Thiago H. de Paula Figueiredo wrote: > I think your component shouldn't extend AbstractField. Okay, but in either case the data is not set correctly. In the surrounding page I defined the "users" object as a List with flash persistence. In the onPrepare method I check if it

Re: Validation of a component inside a Form

2010-09-14 Thread Thiago H. de Paula Figueiredo
On Tue, 14 Sep 2010 09:29:13 -0300, Stephan Windmüller wrote: On 14.09.2010 13:28, Thiago H. de Paula Figueiredo wrote: The added values inside the component are not stored in form fields but in a mapped Java class with Flash Persistence. Is it possible to retrieve these values, too? In th

Re: Validation of a component inside a Form

2010-09-14 Thread Stephan Windmüller
On 14.09.2010 13:28, Thiago H. de Paula Figueiredo wrote: >> The added values inside the component are not stored in form fields but >> in a mapped Java class with Flash Persistence. Is it possible to >> retrieve these values, too? > In this case, your component does not represent a form field and

Re: Validation of a component inside a Form

2010-09-14 Thread Thiago H. de Paula Figueiredo
On Tue, 14 Sep 2010 04:44:29 -0300, Stephan Windmüller wrote: On 13.09.2010 17:01, Thiago H. de Paula Figueiredo wrote: The line String submittedValue = request.getParameter(elementName); produces "null" every time. You'll have to generate the id and name of the HTML form fields

Re: Validation of a component inside a Form

2010-09-14 Thread Stephan Windmüller
On 13.09.2010 17:01, Thiago H. de Paula Figueiredo wrote: >> The line >>> String submittedValue = request.getParameter(elementName); >> produces "null" every time. > You'll have to generate the id and name of the HTML form fields in a way > that you can get them back when the form is su

Re: Validation of a component inside a Form

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 11:56:17 -0300, Stephan Windmüller wrote: The line String submittedValue = request.getParameter(elementName); produces "null" every time. You'll have to generate the id and name of the HTML form fields in a way that you can get them back when the form is su

Re: Validation of a component inside a Form

2010-09-13 Thread Stephan Windmüller
On 13.09.2010 16:21, Thiago H. de Paula Figueiredo wrote: > It doesn't require much background knowledge. Just take a look at this > method implementation in the Select component: Thanks for the hint. I tried it, but it does not work. I do not know if this has to do with my problem but submitt

Re: Validation of a component inside a Form

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 10:26:51 -0300, Stephan Windmüller wrote: tracker.recordError(...); If one of this components creates form fields, a good approach is to make> the component an AbstractField sublclass. That requires an implementation of processSubmission and this in turn requires some

Re: Validation of a component inside a Form

2010-09-13 Thread Stephan Windmüller
On 13.09.2010 14:47, Thiago H. de Paula Figueiredo wrote: >> Is it possible to send validation errors to the outer form in which a >> component is used? > @Environmental > private ValidationTracker tracker; That works, thanks for the quick reply! > tracker.recordError(...); > If one of this comp

Re: Validation of a component inside a Form

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 09:36:40 -0300, Stephan Windmüller wrote: Hi! Hi! Is it possible to send validation errors to the outer form in which a component is used? @Environmental private ValidationTracker tracker; tracker.recordError(...); If one of this components creates form fields, a g

Re: Validation in component using onValidate method

2010-07-20 Thread Michal Gruca
Issue created: https://issues.apache.org/jira/browse/TAP5-1212 -- View this message in context: http://tapestry-users.832.n2.nabble.com/Validation-in-component-using-onValidate-method-tp5315887p5317888.html Sent from the Tapestry Users mailing list archive at Nabble.com. ---

Re: Validation in component using onValidate method

2010-07-20 Thread Michal Gruca
Thiago H. de Paula Figueiredo wrote: > >> But one suggestion. Maybe tapestry should log on warn level if someone >> creates onValidate method with no parameters, else someone may be as >> confused as I was. I don't see any purpose of onValidate without >> parameters. > > That's a very good id

Re: Validation in component using onValidate method

2010-07-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Jul 2010 10:02:41 -0300, Michal Gruca wrote: I'm just blind or dumb. My code was almost same as example I provided, with onValidate metod without any value. That's why I didn't saw any value. That solves the problem, thanks. This happens. :) But one suggestion. Maybe tapestr

Re: Validation in component using onValidate method

2010-07-20 Thread Michal Gruca
Thiago H. de Paula Figueiredo wrote: > > Hi! > This way, the developer can prevent the setter method of being invoked > with an invalid value. > Ok, I get it now. First I wanted to ask how are You supposed to get that value, but example I wanted to use (from bottom of this page http://tapestr

Re: Validation in component using onValidate method

2010-07-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Jul 2010 06:23:26 -0300, Michal Gruca wrote: Hi all, Hi! I'm using tapestry for some time but for first time I cannot find correct solution by myself. My problem is with validation in onValidate method. I get that onValidate is called for every component inside form and onValid

Re: Validation based on condition

2010-03-18 Thread Jagadesh Paladugula
Thanks Christophe. Its working :) One more doubt, When I don't want to add validation, I am returning null, in this case page is not getting rendered. Should I need to create a new validator "Optional", make this as default validator; Regards, Jagadesh On Thu, Mar 18, 2010 at 1:01 PM, Christoph

Re: Validation based on condition

2010-03-18 Thread Christophe Cordenier
@Inject private FieldValidatorSource source; @InjectComponent private Field yourField; public FieldValidator getDynamicConstraints() { return source.createValidators(yourField, "required", null); } Note that this is how we generally use Tapestry Services by injecting them. Have a look at the A

Re: Validation based on condition

2010-03-18 Thread Jagadesh Paladugula
Hi Christophe, Could you please give me a sample implementation. Regards, Jagadesh On Thu, Mar 18, 2010 at 12:39 PM, Christophe Cordenier < christophe.corden...@gmail.com> wrote: > Hi > > Try with fielvalidtorsource service to build your conditional constraints. > > Regards > Christophe cordeni

Re: Validation based on condition

2010-03-18 Thread Christophe Cordenier
Hi Try with fielvalidtorsource service to build your conditional constraints. Regards Christophe cordenier Le 18 mars 2010 à 06:59, Jagadesh Paladugula m> a écrit : Hi Everyone, I have a form which is getting generated dynamically based on some values in database. I want to add validat

Re: Validation failing in IE6/7

2009-11-25 Thread Andrew Miller
Hello again, I'm extremely happy to close this one off. I _finally_ found the source of the problem today. As it turns out, the lightbox solution I was using was including its own version of effects.js which was quite old - and conflicting with the one already provided by Tapestry. Once I remove

Re: Validation failing in IE6/7

2009-11-23 Thread Andrew Miller
I've taken a look and it's definitely within a form element. The problem appears to be that tapestry.js isn't adding that function to the element, IE6/7 complains thus: Error: Object doesn't support this property or method Interestingly, IE8 was making the exact same complaint until I upg

Re: Validation failing in IE6/7

2009-11-23 Thread Howard Lewis Ship
That seems very odd, as Tapestry (i.e., tapestry.js) will create the Tapestry.FormEventManager object if it does not already exist. Could it be because the field in question is not contained within a form? On Mon, Nov 23, 2009 at 4:45 AM, Andrew Miller wrote: > I've done a bit more digging on thi

Re: Validation failing in IE6/7

2009-11-23 Thread Andrew Miller
I've done a bit more digging on this and I made a mistake in my original assumption: > The failure occurs during the Tapestry.init function. I've traced the > javascript execution through and I've found the exact line it's failing > on - during the call to the Tapestry.Initializer.validate functio

Re: Validation question - at which point are property values set before post

2009-10-07 Thread Peter Stavrinides
Thanks for the explanations, much appreciated to all. Peter - Original Message - From: "cordenier christophe" To: "Tapestry users" Sent: Wednesday, 7 October, 2009 15:07:52 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Validation question - at whic

Re: Validation question - at which point are property values set before post

2009-10-07 Thread cordenier christophe
Hi The solutions suggested by Dirk and Urlich sounds good to me. Actually, in the submission process the target variable set with 'value' attribute is modified only if validation succeeds. This is why your code doesn't work. Christophe.

Re: Validation question - at which point are property values set before post

2009-10-07 Thread Peter Stavrinides
Anybody? - Original Message - From: "Peter Stavrinides" To: "Tapestry Mailing List" Sent: Tuesday, 6 October, 2009 10:07:53 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Validation question - at which point are property values set before post Hi everyone, I came across what

RE: Validation on textfields in a grid?

2009-09-27 Thread Newham, Cameron
Does anyone have any further thoughts on this? There must be a way to do this - and if there isn't then perhaps there should be? -Original Message- From: Newham, Cameron [mailto:cameron.new...@bl.uk] Sent: 25 September 2009 10:08 To: Tapestry users Subject: RE: Validation on textf

RE: Validation on textfields in a grid?

2009-09-25 Thread Newham, Cameron
gmail.com] Sent: 24 September 2009 14:52 To: Tapestry users Subject: Re: Validation on textfields in a grid? Em Thu, 24 Sep 2009 10:46:10 -0300, Newham, Cameron escreveu: > Thanks again Thiago. > > Yes, my fault for not saying exactly what I wanted to achieve. > > I agree that one

Re: Validation on textfields in a grid?

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 10:46:10 -0300, Newham, Cameron escreveu: Thanks again Thiago. Yes, my fault for not saying exactly what I wanted to achieve. I agree that one can iterate over the values in the source and check them, but I need to mark the field/fields which fail validation on the form

RE: Validation on textfields in a grid?

2009-09-24 Thread Newham, Cameron
. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: 24 September 2009 14:25 To: Tapestry users Subject: Re: Validation on textfields in a grid? Em Thu, 24 Sep 2009 10:19:37 -0300, Newham, Cameron escreveu: > Hi Thiago, Hi! > The row parameter is only accessing my data from the source

Re: Validation on textfields in a grid?

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 10:19:37 -0300, Newham, Cameron escreveu: Hi Thiago, Hi! The row parameter is only accessing my data from the source parameter, not the components themselves. I just remembered that Grids inside Forms typically only work when you use the row parameter. Also, I a

RE: Validation on textfields in a grid?

2009-09-24 Thread Newham, Cameron
bject: Re: Validation on textfields in a grid? Try accessing the Grid elements using the row parameter and use the validation done by the validate parameter instead of doing it yourself. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor

Re: Validation on textfields in a grid?

2009-09-24 Thread Thiago H. de Paula Figueiredo
Try accessing the Grid elements using the row parameter and use the validation done by the validate parameter instead of doing it yourself. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago --

Re: validation in t5

2008-10-28 Thread Howard Lewis Ship
Not currently supported, sorry. If you don't care about the contents of the fields, you can just use an ActionLink instead of a Submit. On Tue, Oct 28, 2008 at 4:01 AM, peibel <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to choose validate or not validate in the same form depending on > which bu

Re: validation feedback: it rocks :D

2008-04-22 Thread János Jarecsni
yes, from 5.0.10 to 5.0.11 On 22/04/2008, Joshua Jackson <[EMAIL PROTECTED]> wrote: > > On 4/22/08, János Jarecsni <[EMAIL PROTECTED]> wrote: > > in deed :) it is much neater than the previous version (with all errors > > cumulated in one place). > > > > On 22/04/2008, Joshua Jackson <[EMAIL PROTE

Re: validation feedback: it rocks :D

2008-04-22 Thread Joshua Jackson
On 4/22/08, János Jarecsni <[EMAIL PROTECTED]> wrote: > in deed :) it is much neater than the previous version (with all errors > cumulated in one place). > > On 22/04/2008, Joshua Jackson <[EMAIL PROTECTED]> wrote: > > > > You mean the event bubbling? That feature has been around quite along time

Re: validation feedback: it rocks :D

2008-04-22 Thread János Jarecsni
in deed :) it is much neater than the previous version (with all errors cumulated in one place). On 22/04/2008, Joshua Jackson <[EMAIL PROTECTED]> wrote: > > You mean the event bubbling? > > > On 4/22/08, János Jarecsni <[EMAIL PROTECTED]> wrote: > > Just want to say I love the way the validation

Re: validation feedback: it rocks :D

2008-04-22 Thread Joshua Jackson
You mean the event bubbling? On 4/22/08, János Jarecsni <[EMAIL PROTECTED]> wrote: > Just want to say I love the way the validation errors are shown now: IT IS > BEAUTIFUL!!! > :) > > cheers > janos > -- Let's show the world what we've got. Blog: http://joshuajava.wordpress.com/ -

Re: Validation and CSS with 4.1.3-SNAPSHOT

2007-08-29 Thread mraible
I discovered (by pure luck) that the following "validators" binding was causing the problem: When I removed the "validators" binding, everything works. Is Dojo's client-side validation incapable of handling elements? Thanks, Matt mraible wrote:

Re: Validation and CSS with 4.1.3-SNAPSHOT

2007-08-29 Thread mraible
I've got a new (and very strange) issue with client-side validation. When I click on a submit button in a form, I get a blank popup with no messages in it. If I disable JavaScript, the form submits without any validation errors. Any idea why there's a popup when no validation errors exist? Thank

Re: Validation and CSS with 4.1.3-SNAPSHOT

2007-08-27 Thread Andreas Andreou
Just the snapshot - release was scheduled for 15-20 Aug but 1-2 more weeks are still needed. On 8/27/07, mraible <[EMAIL PROTECTED]> wrote: > > > Is there a released version of Tacos that supports 4.1.x? I only see a > 4.1.0-SNAPSHOT. > > Thanks, > > Matt > > > andyhot wrote: > > > > Css is suppos

Re: Validation and CSS with 4.1.3-SNAPSHOT

2007-08-27 Thread mraible
Is there a released version of Tacos that supports 4.1.x? I only see a 4.1.0-SNAPSHOT. Thanks, Matt andyhot wrote: > > Css is supposed to be auto-included only for the exception page > > Regarding toaster - it's really cool... If you get tacos [1] > you use the dojo:Widget component [2] by:

Re: Validation and CSS with 4.1.3-SNAPSHOT

2007-08-23 Thread Andreas Andreou
Css is supposed to be auto-included only for the exception page Regarding toaster - it's really cool... If you get tacos [1] you use the dojo:Widget component [2] by: and then, in an ajax listener: cycle.getResponseBuilder().addStatusMessage(null, "info", "My custom status message"); [1]

Re: Validation and CSS with 4.1.3-SNAPSHOT

2007-08-23 Thread Jesse Kuhnert
The style related css stuff you want might be helped by looking here: http://tapestry.apache.org/tapestry4.1/usersguide/clientside-validation.html (i thought that Andy had made the css style for that stuff inlined automatically though, maybe there is some other weird collision happening) For cu

Re: Validation display format not good in IE(Tapestry5.0.4)

2007-05-21 Thread Howard Lewis Ship
I've seen this too; please add a bug to JIRA (preferably with a patch to default.css). I develop on Mac using Firefox; it's looking like I need to set up a virtual PC so I can check up on the Bastard Child. On 5/19/07, Allen Guo <[EMAIL PROTECTED]> wrote: Hi All, Has anyone tried the validati

Re: Validation display format not good in IE(Tapestry5.0.4)

2007-05-21 Thread Juan Maya
it looks fine for me. What kind of problem do u have? On 5/19/07, Allen Guo <[EMAIL PROTECTED]> wrote: Hi All, Has anyone tried the validation message display in IE I found the validation message display in IE is not good, but it's fine in FireFox. The test is based on Tapestry5.0.4 or Tapest

Re: Validation on Tap 4.0

2007-05-08 Thread Andreas Andreou
Forms use a validationDelegate to keep track of validation errors, e.t.c. and also decorate fields, e.t.c. You can specify your own in a form, otherwise Tapestry uses the default implementation. Take a look at http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/valid/Validat

Re: Validation on 'tab out'

2007-02-12 Thread Shing Hing Man
If you are using Tap 4.0, the contributed component Xtile might be useful. http://tapestry.apache.org/tapestry4/tapestry-contrib/ComponentReference/XTile.html Or take a look at Tacos AjaxEventSubmit http://tacos.sourceforge.net/components/AjaxEventSubmit.html In Tap 4.1.2, it should be quite

Re: Validation questions: components and messages

2006-10-10 Thread Ron Piterman
Yes - you can do much with the delegate :) BTW - consider using CSS for this instead of adding elements , it might be more elegant and easier to maintain... Cheers, Ron Reto Hotz wrote: > Hi, > > On 10/10/06, Ron Piterman <[EMAIL PROTECTED]> wrote: >> Dave Rathnow wrote: >> > Also, is there an e

Re: Validation questions: components and messages

2006-10-10 Thread Reto Hotz
Hi, On 10/10/06, Ron Piterman <[EMAIL PROTECTED]> wrote: Dave Rathnow wrote: > Also, is there an easy way to get the individual error messages from the > validation delegate? In such a case you need to create your own class, extending the standard validation delegate. There are methods which al

Re: Validation questions: components and messages

2006-10-10 Thread Ron Piterman
Dave Rathnow wrote: > I have written a component that contains text fields that need to be validated > when a page is submitted but I can't figure out how component validation > hooks into Tapestry's validation framework. I can access my validation > delegate > in my page component but how can I

Re: Validation question

2006-10-02 Thread Vinicius Carvalho
Never mind, I'm using commons-validator for that. I really would like to see a way of bypassing validation on the table component navigation, clearing the delegate for the form after the component finish rendering??? I wonder if it is a validation request for a JIRA enhancement? Regards On 10/2/

Re: Validation

2006-08-10 Thread Karthik N
this is how tapestry works. field-level validations of one field are not known to other fields. we have a similar situation where we wanted to avoid DTOs and use Domain Objects (the exposed domain pattern). we find that the underlying objects can get dirtied in a number of ways. validation is j

Re: validation of fields within a For component

2006-07-07 Thread Christian Dutaret
Thanks a lot for your answer. I actually figured out the behavior you explain here (after a short night sleep and a lot of debugging;-), and found a solution to my problem. What I actually do is force the component name to the appropriate client ID before I record my error. I do this in my custo

Re: validation of fields within a For component

2006-07-07 Thread Shing Hing Man
Oops! Forgotten the custom validation delegate. public class MyDelegate extends ValidationDelegate { private static final long serialVersionUID = -7297508746898486393L; private List clientIds = new ArrayList(); public void addClientsId(String id) { clien

Re: validation of fields within a For component

2006-07-07 Thread Shing Hing Man
When you use a component in a loop, only one instance of it is used. The problem is that in the java code of your page, you can not, as you said, reference the second,say, 'component' in the loop. Each 'copy' of the component in the loop can be uniquely identified by getClientId(). Example : .p

RE: Validation BEFORE submit

2006-05-16 Thread Jimmi Dyson
.phil-taylor.com/fvalidate/ fvalidate is a really good javascript validation library, providing loads of flexible validators. Jim -Original Message- From: ZedroS Schwart [mailto:[EMAIL PROTECTED] Sent: 16 May 2006 12:17 To: Tapestry users Subject: Re: Validation BEFORE submit > For instance,

Re: Validation BEFORE submit

2006-05-16 Thread ZedroS Schwart
For instance, the page can easily provide it's own validation that is not easily doable with normal validators (eg making sure 2 password fields are equal). It looks like something many tapestry developpers could use... Is there a possibility of seeing the code/putting in the wiki ? Thanks in a

Re: Validation BEFORE submit

2006-05-15 Thread Dan Adams
We did something similar by wrapping @Form with a component that can provided multiple levels of validation. For instance, the page can easily provide it's own validation that is not easily doable with normal validators (eg making sure 2 password fields are equal). This has worked well for us as a

Re: Validation on Tapestry 4

2006-05-11 Thread Sam Gendler
More to the point, I've only been using Tapestry for a couple of months, and both Howard's book and Kent's book helped me enormously. So I take every opportunity to recommend that all tap newbies read them, as they are far and away the best documentation we have, especially for folks still in the

Re: Validation on Tapestry 4

2006-05-10 Thread kranga
-prototype/ - Original Message - From: "Pedro Viegas" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, May 10, 2006 8:08 PM Subject: Re: Validation on Tapestry 4 Hi Rui, I feel a bit sad reading your comments. I have been browsing this list since a good fri

Re: Validation on Tapestry 4

2006-05-10 Thread Pedro Viegas
Hi Rui, I feel a bit sad reading your comments. I have been browsing this list since a good friend of mine pointed it out to me like mandatory for a tapestry developer. I have been blessed with precious help from common folks like you and me, Tapestry gurus that do regular consulting work on Tap,

Re: Validation on Tapestry 4

2006-05-10 Thread Rui Pacheco
I was not talking about specific cases, like my problem with validation which was admittedly my fault. What I want to say is that its not very friendly to send the URL of a book. It gives the impression that "I dont care". Sometimes, all we need is a holding hand. Dont want to start a flame war,

Re: Validation on Tapestry 4

2006-05-10 Thread Sam Gendler
On 5/10/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: Well, first, you reference it as Kent's book. Most people come to Tapestry because a project landed on their laps and they need to get up to speed quickly. Referencing a book as "Kent's" is somewhat vague. Second, most of the time we just want q

Re: Validation on Tapestry 4

2006-05-10 Thread Rui Pacheco
Well, first, you reference it as Kent's book. Most people come to Tapestry because a project landed on their laps and they need to get up to speed quickly. Referencing a book as "Kent's" is somewhat vague. Second, most of the time we just want quick answers. I know I didnt need the book, I just n

Re: Validation on Tapestry 4

2006-05-10 Thread Sam Gendler
More telling, I think, is the fact that the folks who answer questions around here often reference it, and many of the folks asking questions haven't read it yet. It certainly gave me a baseline of Tapestry knowledge very rapidly. I still have a ton to learn, but it got me started. --sam On 5

Re: Validation on Tapestry 4

2006-05-10 Thread Pedro Viegas
If anybody has doubts of what Sam is saying about this book... if anyone thinks it's just a book he, me, and a few others liked... Do make a search on this forum for quotes on this book... it's not that old and you will see the results! Garanteed! It's a must have. ;-) On 5/10/06, Sam Gendler <[E

Re: Validation

2006-05-10 Thread Pedro Viegas
Now that's something I have not thought of before! Nice catch, that must be handy sometimes! Nice tip Martin... thanks for sharing. :-D On 5/10/06, Martin Strand <[EMAIL PROTECTED]> wrote: Yep. I mostly use it to generate CSS classes dynamically: On Wed, 10 May 2006 21:40:20 +0300, Sam Gendle

Re: Validation

2006-05-10 Thread Martin Strand
Yep. I mostly use it to generate CSS classes dynamically: On Wed, 10 May 2006 21:40:20 +0300, Sam Gendler <[EMAIL PROTECTED]> wrote: On 5/10/06, Martin Strand <[EMAIL PROTECTED]> wrote: I often put informal parameters in my .page file, it seems to work fine. Hmph. I guess I should have

Re: Validation

2006-05-10 Thread Sam Gendler
On 5/10/06, Martin Strand <[EMAIL PROTECTED]> wrote: I often put informal parameters in my .page file, it seems to work fine. Hmph. I guess I should have tried it. You just create a 'binding' tag with a parameter that isn't declared for the component? --sam -

Re: Validation

2006-05-10 Thread Martin Strand
I often put informal parameters in my .page file, it seems to work fine. Sam Gendler wrote: On 5/10/06, Martijn Hinten <[EMAIL PROTECTED]> wrote: The only thing I hate is when informal parameters are important to the function of the component, since, as far as I know, they must appear in the htm

Re: Validation

2006-05-10 Thread Sam Gendler
On 5/10/06, Martijn Hinten <[EMAIL PROTECTED]> wrote: I have been wondering this for some time now: Is it the general consensus to get rid of .page files and do all binding in the html (and injection via annotations in the java classes)? I think it depends on the size of your team and complex

Re: Validation on Tapestry 4

2006-05-10 Thread Sam Gendler
Again, "Enjoy Web Development with Tapestry" (the pdf book about tap4) covers validation in detail. I highly recommend it. See the Tap home page for details. --sam On 5/9/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: You might not believe me, but I only saw the "validators" attribute now. And I

Re: Validation

2006-05-10 Thread Martijn Hinten
I have been wondering this for some time now: Is it the general consensus to get rid of .page files and do all binding in the html (and injection via annotations in the java classes)? Rui Pacheco wrote: I was just wondering if I was going to have to write .page files for every .html page th

Re: Validation

2006-05-10 Thread Rui Pacheco
Sounds simpler to me. The only problem is, there is going to be a break between the implementation and the documentation generally available on the web, which is almost all related to Tapestry 3.0 If you do get rid of the .page files, there should be an effort to start spreading through the web n

Re: Validation

2006-05-09 Thread Rui Pacheco
Tapestry is helping me avoid a lot of pain On 5/10/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: :-D No pain no gain! On 5/10/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: > > I was just wondering if I was going to have to write .page files for every > .html page that required validation. > No

Re: Validation

2006-05-09 Thread Pedro Viegas
:-D No pain no gain! On 5/10/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: I was just wondering if I was going to have to write .page files for every .html page that required validation. Now that my blindness has been healed, I am happily adding validators="" to all tags on all my .html pages :D

Re: Validation on Tapestry 4

2006-05-09 Thread Rui Pacheco
You might not believe me, but I only saw the "validators" attribute now. And I've been looking at that page for the past 2 hours. On 5/10/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: http://jakarta.apache.org/tapestry/UsersGuide/validation.html On 5/9/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:

Re: Validation

2006-05-09 Thread Rui Pacheco
I was just wondering if I was going to have to write .page files for every .html page that required validation. Now that my blindness has been healed, I am happily adding validators="" to all tags on all my .html pages :D On 5/10/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: If you do all the bin

Re: Validation

2006-05-09 Thread Pedro Viegas
If you do all the binding in the .html template, and the class to page binding in the .application you don't need the .page in Tap4. Be more specific if this was not the answer you were looking for. Regards, On 5/9/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: Hi all In Tapestry 4 when doing val

Re: Validation on Tapestry 4

2006-05-09 Thread Martin Strand
There are a few validators that come with Tapestry: http://jakarta.apache.org/tapestry/UsersGuide/validation.html#validation.fields You can also define your own via the configuration point "tapestry.form.validator.Validators". Martin On Wed, 10 May 2006 02:22:07 +0300, Rui Pacheco <[EMAIL

Re: Validation on Tapestry 4

2006-05-09 Thread Pedro Viegas
Hi Rui, Yes it is possible to do it inline. Something like: You can see more examples in: http://jakarta.apache.org/tapestry/tapestry/ComponentReference/ValidField.html Although this link if for Tap3's ValidField, the validator and translator attributes are available in TextField in Tap4. Re

Re: Validation on Tapestry 4

2006-05-09 Thread Jesse Kuhnert
http://jakarta.apache.org/tapestry/UsersGuide/validation.html On 5/9/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: Anyone, someone... Could you provide me with an example of validation in Tapestry 4? Is it possible to do it inline in the html, something like ? I have been searching on the net, b