Results 1 to 6 of 6

Thread: Where is DefaultValidatorFactory in Spring 1.2?

  1. #1

    Default Where is DefaultValidatorFactory in Spring 1.2?

    I got all 1.2 source code via CVS and I could not find the class

    org.springframework.validation.commons.DefaultVali datorFactory

    in sandbox or other packages.

    Did Spring team forgot about it? It was in Spring 1.2RC1.

    Thanks and regards,
    Pete

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    This was moved to the Spring modules project.

  3. #3

    Default

    I found the DefaultValidatorFactory class. THANKS for your info.

    As I said before, I used Spring 1.2RC1 before moving to Spring 1.2.

    Now I am looking for another 1.2 equvalenet for my 1.2RC1's org.springframework.validation.commons.BeanValidator used as follows in my 1.2RC1 context file:

    <bean id="validatorFactory" class="org.springmodules.commons.validator.Default ValidatorFactory"
    init-method="init">
    <property name="resources">
    <list>
    <value>/WEB-INF/validator-rules.xml</value>
    <value>/WEB-INF/validation.xml</value>
    </list>
    </property>
    </bean>

    <bean id="beanValidator" class="org.springframework.validation.commons.Bean Validator">
    <property name="validatorFactory">
    <ref local="validatorFactory"/>
    </property>
    </bean>

    I searched both the source code for both Spring and Spring Modules and
    nowhere I can find it. I found the two seeming-similar classes NEW in Spring Modules:

    ConfigurableBeanValidator.java
    DefaultBeanValidator.java

    But none of them accept DefaultValidatorFactory as a property. It looks to me that the two classes suggest something NEW.

    Any advice? Any info/sample regarding how to use Spring Modules' commons validator in Spring web? Now I am a bit scared to migrate aggressively.

    Regards,
    Pete

  4. #4
    Join Date
    Aug 2004
    Location
    Denver
    Posts
    249

  5. #5

    Default

    Matt,

    Thanks so much for your post. You are always so helpful!

    Your book, Spring Alive, is excellent....

    Regards,
    Pete

  6. #6
    Join Date
    Aug 2004
    Location
    Denver
    Posts
    249

    Default

    Thanks Pete! Glad I could help.

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 5
    Last Post: Aug 9th, 2008, 05:30 AM
  3. A Spring Class Loader?
    By azzoti in forum Architecture
    Replies: 8
    Last Post: May 7th, 2005, 04:02 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 2
    Last Post: Jan 21st, 2005, 04:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •