When I add a required validator to a field in my ds.xml, the setTitleSuffix("") on my DynamicForm is being ignored.
ds.xml snippet:
Java source snipper:
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.
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>
Code:
form = new DynamicForm(); form.setDataSource(DataSource.get(MAIL_DATASOURCE_NAME)); form.setTitleSuffix("");
Comment