Announcement Announcement Module
Collapse
No announcement yet.
Where is DefaultValidatorFactory in Spring 1.2? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    This was moved to the Spring modules project.

    Comment


    • #3
      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

      Comment


      • #4
        Here's a short migration guide I put together:

        http://www.jroller.com/page/raible/2...ort_for_spring

        Comment


        • #5
          Matt,

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

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

          Regards,
          Pete

          Comment


          • #6
            Thanks Pete! Glad I could help.

            Comment

            Working...
            X