Results 1 to 4 of 4

Thread: Rule validation questions

  1. #1
    Join Date
    Jun 2006
    Posts
    14

    Default Rule validation questions

    Can someone kindly solve my questions:-

    1. I try to add a rule in the RuleSource. The 'domainObjectClass' supplies the Rules constructor must be the implementation class, can it work on Interface class?

    2. In the examples given in the spring rcp, when entering invalid-input , the bg of the text-field is in light-red colour, an error icon on the lower left corner and some error message on the top of the dialog box.
    However, when I did my own rule, I can't see the bg and I don't have the icon (but I can get the same error message on the top of the dialog box), any clue what I did wrong?

    Thanks

  2. #2
    Join Date
    Jun 2006
    Posts
    14

    Default

    As for my second question, I found out that I miss the following


    Code:
    	<bean id="formComponentInterceptorFactory" 
    		class="org.springframework.richclient.form.builder.support.ChainedInterceptorFactory">
    		<property name="interceptorFactories">
    			<list>
    				<bean class="org.springframework.richclient.form.builder.support.ColorValidationInterceptorFactory">
    					<property name="errorColor" value="255,245,245"/>
    				</bean>
    				<bean class="org.springframework.richclient.form.builder.support.OverlayValidationInterceptorFactory"/>
    				<bean class="org.springframework.richclient.text.TextComponentPopupInterceptorFactory"/>
    				<bean class="org.springframework.richclient.list.ComboBoxAutoCompletionInterceptorFactory"/>
    			</list>
    		</property>
    	</bean>

  3. #3
    Join Date
    Jun 2006
    Posts
    3

    Default

    Quote Originally Posted by aktp
    Can someone kindly solve my questions:-

    1. I try to add a rule in the RuleSource. The 'domainObjectClass' supplies the Rules constructor must be the implementation class, can it work on Interface class?


    Thanks
    the same problem!

  4. #4
    Join Date
    Jun 2006
    Posts
    3

Posting Permissions

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