Re: Tapesty5.4.0 'submit' button throws page validation error

2016-06-13 Thread JumpStart
These working examples might help too. http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/programmaticvalidation http://jumpstart.doublenegative.com.au/jumpstart7/examples/in

Re: Tapesty5.4.0 'submit' button throws page validation error

2016-06-13 Thread sheikh hossain
That's awesome ! Once again Cezary you have been quick and precise. Thank you so much for the solution and the detail explanation with code example. It really helped. It worked after I renamed onValidate method. Thank you for attention to details and other suggestion. Much much appreciated. O

Re: Tapesty5.4.0 'submit' button throws page validation error

2016-06-13 Thread Cezary Biernacki
Even simpler solution is to remove your "onValidate" method and just use Tapestry's "required" validator: " You can customise the error message by putting an appropriate entry in your message catalog (see http://tapestry.apache.org/forms-and-validation.html#FormsandValidation-CustomizingValidatio

Re: Tapesty5.4.0 'submit' button throws page validation error

2016-06-13 Thread Cezary Biernacki
A correction, this part: void onValidateFromName(TaxZone z) { if (z.getName() == null || z.getName().trim().length() == 0) { form.recordError(nameField, "You must enter a name."); } } should be actually: void onValidateFromName(String name) {

Re: Tapesty5.4.0 'submit' button throws page validation error

2016-06-13 Thread Cezary Biernacki
Hi, your "onValidate" method does not specify for which component it should be invoked, so it is invoked for all components that trigger "validate" event. Tapestry invokes validate for each input form control (providing an input value as the context argument) plus one for the whole form itself with

Tapesty5.4.0 'submit' button throws page validation error

2016-06-13 Thread sheikh hossain
Hi, Our application has a page which submits a form through a submit button and it goes through the page 'onValidate' and fails the validation. the .tml file has - - - - - - - - - - - ${message:button.cancel} - - - - - -

Re: File selected for upload is cleared when page validation fails [T5.4]

2014-12-08 Thread martijn.list
;> I have a form which contains an Upload component and some other fields. >>> >>> If I select a file for upload and submit the form and the page >>> validation fails (for example because I forgot to fill in some required >>> field), the selected file is no longe

Re: File selected for upload is cleared when page validation fails [T5.4]

2014-12-06 Thread Bob Harner
n Dec 5, 2014 1:42 PM, "martijn.list" wrote: > Hi, > > I have a form which contains an Upload component and some other fields. > > If I select a file for upload and submit the form and the page > validation fails (for example because I forgot to fill in some required

Re: File selected for upload is cleared when page validation fails [T5.4]

2014-12-06 Thread Howard Lewis Ship
.list > wrote: > > Hi, >> > > Hi! > > I have a form which contains an Upload component and some other fields. >> >> If I select a file for upload and submit the form and the page >> validation fails (for example because I forgot to fill in some required &

Re: File selected for upload is cleared when page validation fails [T5.4]

2014-12-05 Thread Thiago H de Paula Figueiredo
On Fri, 05 Dec 2014 16:41:55 -0200, martijn.list wrote: Hi, Hi! I have a form which contains an Upload component and some other fields. If I select a file for upload and submit the form and the page validation fails (for example because I forgot to fill in some required field), the

File selected for upload is cleared when page validation fails [T5.4]

2014-12-05 Thread martijn.list
Hi, I have a form which contains an Upload component and some other fields. If I select a file for upload and submit the form and the page validation fails (for example because I forgot to fill in some required field), the selected file is no longer selected. Is this by design? The other fields

Re: Page Validation

2007-02-26 Thread James Sherwood
Still testing atm, will keep advised. --James - Original Message - From: "Mark Stang" <[EMAIL PROTECTED]> To: "Tapestry users" ; "Tapestry users" Sent: Monday, February 26, 2007 3:29 PM Subject: RE: Page Validation James, You said, "I tried im

RE: Page Validation

2007-02-26 Thread Mark Stang
rom: James Sherwood [mailto:[EMAIL PROTECTED] Sent: Mon 2/26/2007 12:21 PM To: Tapestry users Subject: Re: Page Validation Hello, I tried implementing it exactly as you suggested but I still get to see the first page. Once I refresh or try to go somewhere it sends me to the login page. The funn

Re: Page Validation

2007-02-26 Thread James Sherwood
- Original Message - From: "Nikla Ratinen" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, February 23, 2007 1:02 PM Subject: Re: Page Validation Hi, As an alternate approach you may override the default page source with an implementation that checks

Re: Page Validation

2007-02-23 Thread Nikla Ratinen
visit exists. You need to store a flag saying they they have been authenticated. regards, Mark Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: James Sherwood [mailto:[EMAIL PROTECTED] Sent: Fri 2/23/2007 6

RE: Page Validation

2007-02-23 Thread Mark Stang
Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: James Sherwood [mailto:[EMAIL PROTECTED] Sent: Fri 2/23/2007 6:34 AM To: Tapestry users Subject: Page Validation Hello, We use Tapestry 3.2 I have security (logi

Page Validation

2007-02-23 Thread James Sherwood
Hello, We use Tapestry 3.2 I have security (login) using PageValidateListener. The secure page in the site is called ISOPage which extends BasePage. I add the page validation using: public ISOPage(){ super(); addPageValidateListener(new PageValidationListener()); } The PageValidationListener