Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with setTitleSuffix being ignored with required validator

    When I add a required validator to a field in my ds.xml, the setTitleSuffix("") on my DynamicForm is being ignored.

    ds.xml snippet:
    Code:
    		<field name="mail_server" length="512" type="text" editorType="TextItem">
    		<title><fmt:message key="mail_config_mail_server" /></title>
    <!--		<validators>
    			<validator type="required" />
    		</validators>
    -->			
    		</field>
    <field name="port" type="number" >
    		<title><fmt:message key="mail_config_port" /></title>
    		<validators>
    			<validator type="required" />
    			<validator type="integerRange" min="0" max="65535" />
    		</validators>
    	</field>
    Java source snipper:
    Code:
    		form = new DynamicForm();
    		form.setDataSource(DataSource.get(MAIL_DATASOURCE_NAME));
    		form.setTitleSuffix("");
    When I remove the required validator (commenting out), the form.setTitleSuffix is correct with "". I am seeing this with SC_SNAPSHOT-2011-05-17/PowerEdition Deployment.

    #2
    There's a separate setRequiredTitleSuffix().

    Comment


      #3
      Thanks, I obviously missed that.

      Comment

      Working...
      X