Re: Conditional Validation in t5

2010-03-04 Thread 56G3W
am trying the same example , But could you show us the autheticator java class :) Mine is : package org.example.myapp.services; public class UserAuthenticator { public String userName; public String password; public String getUserName() { return userName;

Re: Conditional Validation in t5

2008-10-24 Thread Daniel Alonso Sanchez
For god's shake, thanks a lot for your response,Hugo! I was trying something different for activate validations in both sides, but, due to the restrictions I think I'm gonna follow your idea. Thanks a lot again for your time :D -- View this message in context:

Re: Conditional Validation in t5

2008-10-23 Thread Hugo Palma
It sure is possible. Looking at your use case my approach would be to implement those conditional validation on the onValidateForm method in your page / component class. For example: public class Login { @Persist @Property private String userId; @Property private String password;

RE: Conditional validation in T4?

2007-12-21 Thread Marcus.Schulte
You can bind your validators dynamically (validatory=ognl:conditionalValidStuff ) and submit changes of you pre-conditions via @EventListener. Sounds a bit like overkill for simple dependencies, but can do very complex things -Original Message- From: Drew McAuliffe [mailto:[EMAIL

Re: Conditional validation in T4?

2007-12-21 Thread Steve Shucker
http://tapestry.apache.org/tapestry4.1/usersguide/validation.html http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/form/validator/Identity.html Look at the match/differ validators. The cover the basic concept of a validator that acts on two components. You can probably write

Re: Conditional validation in T4?

2007-12-21 Thread Drew McAuliffe
The problem with the identity validator is that it doesn't seem to capture the current value of the other control, which is the essential problem I'm having. If you have 2 controls, and the second one uses an identity validator to make sure it's the same as the first, if you change them both at

Re: Conditional validation in T4?

2007-12-21 Thread Andreas Andreou
looks like a bug then - you could add a JIRA On Dec 21, 2007 11:51 PM, Drew McAuliffe [EMAIL PROTECTED] wrote: The problem with the identity validator is that it doesn't seem to capture the current value of the other control, which is the essential problem I'm having. If you have 2 controls,

RE: Conditional validation

2007-06-22 Thread Michael Sims
Steve Shucker wrote: I need everything in one form because the checkbox states should be persisted even when the popup dialog is submitted. [...] My options as I see them: [...] - use a separate form with an async submit for the popup (may work, but then I'd have to return some javascript to

Re: Conditional validation

2007-06-22 Thread Steve Shucker
Http only submits one set of form data. If I have two forms, only the data from the form I submit is transmitted back to the server. Tapestry wouldn't receive the other information I want to persist. An async submit would get around this by not re-rendering the page to avoid losing the

RE: Conditional validation

2007-06-22 Thread Michael Sims
Steve Shucker wrote: Http only submits one set of form data. If I have two forms, only the data from the form I submit is transmitted back to the server. Tapestry wouldn't receive the other information I want to persist. An async submit would get around this by not re-rendering the page to