form validation question

2006-07-03 Thread bėgantis debesis
Hi, to simplify a problem, let's say i have a @Checkbox and many @Text components in a form. I want no validation when the checkbox is checked, and validation must be executed, when form is submitted with the checkbox not checked. @Text component contents must be validated. Do you know any ways

RE: Display explorer like file structure

2006-07-03 Thread Schulte Marcus
Tacos' tree component should work fine here. I've used it and liked it very much (it's a lot better than the contrib:tree). You can get it at tacos.sourceforge.net Have a look at the example, it should get you started quickly. -Original Message- From: Peter Dawn [mailto:[EMAIL

Re: form validation question

2006-07-03 Thread Shing Hing Man
I do not have an easy solution to your problem. The following is just an idea which I have not tested. Have you considered 'extending' the component TextField to hava an extra boolean parameter 'validation flag' ? The idea is that validation is skipped according to the 'validation flag'. In

Re: form validation question

2006-07-03 Thread Valdemaras Repšys
Labas Aleksej, Hi Shing, thanks for the answers. I think Aleksej's solution is simpler and it fits. But the bad thing is i'll have to say a good bye to client side validation.. Valdemaras Repšys On 7/3/06, Aleksej [EMAIL PROTECTED] wrote: bėgantis debesis wrote: Hi, to simplify a problem,

Re: Re: form validation question

2006-07-03 Thread Jesse Kuhnert
AhhI really need to finish up the 4.1 release. We'll be able to support arbitrary requirements logic like this now as well. (on the client side server.. Ie if this field gets filled out/selected then these other two fields are required. Stuff like that) On 7/3/06, Richard Clark [EMAIL

Re: form validation question

2006-07-03 Thread Paul Cantrell
I'll throw in my endorsement for (1). Often, we programmers get too wrapped up in try to use some clever framework feature for every minute detail ... when sometimes, it's simpler just to write a few lines of code. A listener which first performs validation before processing is easy to

Re: Tapestry JumpStart - calling all armchair critics!

2006-07-03 Thread Jesse Kuhnert
When maven gets done deploying and the various apache servers sync up you should be able to find this JumpStart application listed under the Quick Start-Contributed section here: http://tapestry.apache.org/tapestry4.1/ Thanks for all the hard work put into making Tapestry easier to learn for

Alternate row colours again

2006-07-03 Thread Peter Dawn
hi guys, last week i got the alternate colours to work within my foreach component with the help of Murray and Jesse, but I have run into the same problem again. now on another page, I have another foreach leap which displays a table. now within this foreach loop i am already using a class tag

Re: Alternate row colours again

2006-07-03 Thread Nick Westgate
Hi Peter. It looks like you are using some kind of variable called rowClass, so in this case you could use two such variables. Something like: class=ognl:(rowIndex % 2) == 0 ? rowClassEven : rowClassOdd where rowIndex is an int property passed to the Foreach index param. Or you can do