Re: Custom validation js not firing in 5.4.

2014-10-14 Thread George Christman
to resolve the issue. > > @Override > public void render(Field field, Integer constraintValue, > MessageFormatter formatter, MarkupWriter writer, > FormSupport formSupport) { > > if (formSupport.isClientValidationEnabled()) { >

Re: Custom validation js not firing in 5.4.

2014-10-10 Thread George Christman
if (formSupport.isClientValidationEnabled()) { javaScriptSupport.require("custom-validation"); writer.attributes(DataConstants.VALIDATION_ATTRIBUTE, true, "data-validate-quarter-hour", constraintValue.toString(),

Custom validation js not firing in 5.4.

2014-10-10 Thread George Christman
if (memo.translated % max === 0) { memo.error = (this.attr("data-quarter-hour-message")); return false; } }); }); }).call(this); @Import( module = {"custom-validation"}) @Override public void render(Field field,

Re: Custom Validation in a FormBean

2013-04-11 Thread Thiago H de Paula Figueiredo
the value in the form bean. For a certain field, the input from the user is not required, but for another value in the select box the field is required. How can i add my custom validation for a FormBean ? The Form component triggers a 'validate' event, so add an onValidate()

Custom Validation in a FormBean

2013-04-11 Thread mateen dar
custom validation for a FormBean ? -- Mateen Dar 0321 4040199

Re: Custom Validation with AjaxFormLoop component

2012-05-22 Thread George Christman
http://tapestry.1045711.n5.nabble.com/Custom-Validation-with-AjaxFormLoop-component-tp5713091p5713311.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apach

Custom Validation with AjaxFormLoop component

2012-05-21 Thread George Christman
e has been refreshed. Does anybody know how to fix this issue so all new fields in the AjaxFormLoop are marked in red when validation errors are present? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Custom-Validation-with-AjaxFormLoop-component-tp5713091.html Sent from

Re: Custom Validation Bubbles

2010-08-19 Thread Josh Canfield
> I'm curious though, how did you know about the FieldToTracker map and the > control name? Whenever it's not obvious what's happening I step into the code with a debugger. Set a breakpoint before you call recordError and you can step through the whole process. Then you can set a breakpoint in

Re: Custom Validation Bubbles

2010-08-19 Thread Rich M
Thanks again Josh. That was simple. I'm curious though, how did you know about the FieldToTracker map and the control name? I gave a shot at looking through the Tapestry source code to try and see if I could figure something out by that, but I felt a bit lost and reading the Errors class mislea

Re: Custom Validation Bubbles

2010-08-18 Thread Josh Canfield
Sooo... When you set an error on a field before it's been rendered then the error goes into the list of errors (so you see it in t:errors) but the connection between the field and the error is lost. The reason is that the fieldToTracker map is keyed on the fields control name which isn't allocated

Re: Custom Validation Bubbles

2010-08-18 Thread Thiago H. de Paula Figueiredo
On Wed, 18 Aug 2010 18:16:31 -0300, Rich M wrote: Hi, Hi! Strangely enough, if I include in the form of CustomerLogin, it actually displays the error, which really suprised me when I did a sanity check. I'm not sure why that gets triggered and not the AJAX bubbles from the ValidationD

Re: Custom Validation Bubbles

2010-08-18 Thread Rich M
Hi, I'm still having a hard time grasping this. I tried thinking of a way to trigger an event in the CustomerLogin component to resubmit so the errors would show, no go. I tried using the onActivate of the container Page to load things in the CustomerLogin component and then resubmit the page

Re: Contributing custom validation messages

2010-08-17 Thread zozul
ting here, not while testing it, so problem remains the same -- View this message in context: http://tapestry.1045711.n5.nabble.com/Contributing-custom-validation-messages-tp2638097p2638509.html Sent from the Tapestry - User mailing list a

Contributing custom validation messages

2010-08-17 Thread zozul
WEB-INF/classes/org/example/myapp/validators/", so maybe i put the file in wrong place? Thanks, Matthew -- View this message in context: http://tapestry.1045711.n5.nabble.com/Contributing-custom-validation-messages-tp2638097p2638097.html Sent from

Re: Custom Validation Bubbles

2010-08-16 Thread Rich M
Hi, a somewhat related question. It's now possible thanks to the Decorator for my webapp to display validation bubbles after a form submit. I'd also like to be able to set an error somewhere in the beginning of the rendering process and have it show. I'm having a hard time figuring out how to

Re: Custom Validation Bubbles

2010-08-12 Thread Rich M
Thanks Josh, that was exactly what I was looking to do. Hopefully I'll be able to start seeing these things on my own sometime soon! -Rich On 08/11/2010 08:11 PM, Josh Canfield wrote: If you are looking to get the error bubble to pop up after you submit the form you could use this: public c

Re: Custom Validation Bubbles

2010-08-11 Thread Josh Canfield
You can control the look of the errors component using CSS. I also use a component that extends Errors so that it can render outside of the form: public class FormErrors extends Errors { @Parameter(required = true) private Form _form; @Inject private Environment _environment;

Custom Validation Bubbles

2010-08-11 Thread Rich M
Hi, I've found resources that explain how to remove the validation bubbles, but I'm looking to display validation bubbles similar to how it's possible to record form errors to after a 'failed' form submission. I have tight spacing in the UI layout and having to accommodate for the isn't m

Re: Custom validation for @Validate

2009-08-11 Thread P . Stavrinides
Sent: Thursday, 6 August, 2009 17:35:38 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Custom validation for @Validate Hello, while describing the validation mechanism of Tapestry in my article, I used my findings to update the Wiki. http://wiki.apache.org/tapestry/CreatingCusto

Custom validation for @Validate

2009-08-06 Thread Sebastian Hennebrueder
Hello, while describing the validation mechanism of Tapestry in my article, I used my findings to update the Wiki. http://wiki.apache.org/tapestry/CreatingCustomValidators Could someone please review it, as I am not experienced with Tapestry. Is it correct that the AppModule methods are stati

help needed in custom validation

2008-11-10 Thread Muralidhar Y
Hi , I am using tapestry4.1. I have recorded an error in the listener method in the java class as shown below public String onWordSubmit(IRequestCycle cycle) { if(getUserName().equals("murali")){ getVisit().setAttribute("or

RE: problem custom validation

2008-11-10 Thread Muralidhar Y
the sender immediately by return e-mail and securely discard this message. -Original Message- From: Andreas Andreou [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 4:32 PM To: Tapestry users Subject: Re: problem custom validation You still have to

Re: problem custom validation

2008-11-10 Thread Andreas Andreou
You still have to return the page to be rendered even in case your validation fails So, just add return null after validationDelegate.record(formComp, "Invalid password"); On Mon, Nov 10, 2008 at 11:52 AM, Muralidhar Y <[EMAIL PROTECTED]> wrote: > Hi friends, > > > > I have done the followin

problem custom validation

2008-11-10 Thread Muralidhar Y
Hi friends, I have done the following in the html form I have included the bean in the page specification like the following In the listener method I have coded as following:- public String onWordSubmit(IRequestCycle cycle) {

custom validation

2008-11-09 Thread Muralidhar Y
Hi I am trying to add custom validation error but it is showing some exception . do anybody have an idea. I have added the following code in html I have added the following in the page xml The following is the FPSDeligate:- package com.tapestry.core

Re: T5: Recording custom validation errors onEvent(blur) on a form field

2008-04-30 Thread lebenski
terms ? > > > > > > > I'm expecting to see the error bubble onBlur(), but is this a correct > assumption? I can't find much docume

T5: Recording custom validation errors onEvent(blur) on a form field

2008-04-29 Thread lebenski
m the onBlurEvent()? I'm quite new to tapestry forms and zones. This is my logging output: onBlurEvent() value: iexist exists registerBasicForm.getHasErrors(): true Any help on this matter would be much appreciated. -- View this message in context: http://www.nabble.com/T5%3A-Recording-custom-validat

Client Side Validation: Custom Validation Function

2007-01-12 Thread Stefan Esterer
idationFunction(bool) Then the content of bool is alway "1" ... Do I miss something? thx for your help stefan -- View this message in context: http://www.nabble.com/Client-Side-Validation%3A-Custom-Validation-Function-tf2965263.html#a8296244 Sent from the Tapestry - User mail