• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem Validating html:file

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.,
I have a problem while trying to validate <html:file> control. When the user types in the invalid textual information in the browse button., when i submit the form it is giving the javascript error saying the file control is null or not an object. Any Solution.


--Regards
VijayRamaRaju.
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is some code where I perform some validation in my execute method. I am not sure how to do client side java script validation or if this validation could be performed by the validation framework. I don't see a reason why this could not be done in the form's validate method (and now I am wondering why I am not doing that).


If somebody else has a better way of validating this, please pass it along.

- Brent
 
reply
    Bookmark Topic Watch Topic
  • New Topic