• 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

Dynamic Validation?

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi- Is it possible to do something like this:


No matter what i enter, the validator says that the value is not within the expected range 0.0 to 0.0, I guess that bean.minimum and bean.maximum are resolving to null. If I dump my entire list of beans to the page, I can see they are definitely not null. Can these properties be used in this way?

Thanks
 
Saloon Keeper
Posts: 27887
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you define public double getMaximum() and getMinimum methods on your backing bean? What do they return when called?
 
Dudley Dawson
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tim Holloway:
Did you define public double getMaximum() and getMinimum methods on your backing bean? What do they return when called?



Thanks Tim.
yes, I've defined them in the bean. If I put the following code on the page:
<h:outputText value="#{beanlist}"/>
I've defined bean.toString() to call getMaximum() and getMinimum(), and I can see the that values are not null by accessing them in this fashion. Is there possible some problem with the rendering order? ie- validators are set before the bean values are populated, etc?
[ September 05, 2007: Message edited by: Dudley Dawson ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic