Hi Isomorphic
I am facing an issue where the validate function on the valuesManager does not highlight the formItems in error state unless I click on the formItem. I have created a small sample which demonstrates the issues.
When you submit the form the first time with a validation error, it will highlight the formItem with an error. Now on updating the content in the form with additional/different errors, the formitems do not get updated to show the new errors. You need to click on each formItem to get it to update.
This issue exists in the smartGWT version v9.0p_2013-07-14/Enterprise Deployment 2013-07-14. However it is not present in the earlier version v8.3p_2013-05-05/Enterprise Deployment 2013-05-05. I have tried this in Firefox 12.0 and Chrome
I am facing an issue where the validate function on the valuesManager does not highlight the formItems in error state unless I click on the formItem. I have created a small sample which demonstrates the issues.
Code:
public class DemoApp implements EntryPoint { public void onModuleLoad() { final VLayout appLayout = new VLayout(); appLayout.setWidth100(); appLayout.setHeight100(); final DynamicForm dynamicForm = new DynamicForm(); final TextItem textItemID = new TextItem("id", "ID"); textItemID.setRequired(true); final TextItem textItemName = new TextItem("name", "Name"); textItemName.setRequired(true); final TextItem textItemDescription = new TextItem("description", "Description"); dynamicForm.setFields(textItemID, textItemName, textItemDescription); final ValuesManager valuesManager = new ValuesManager(); valuesManager.addMember(dynamicForm); IButton saveButton = new IButton("Validate Form"); saveButton.setWidth(150); saveButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent clickEvent) { if (valuesManager.validate()) { SC.say("Form has no validation errors"); } } }); appLayout.addMember(dynamicForm); appLayout.addMember(saveButton); appLayout.draw(); } }
This issue exists in the smartGWT version v9.0p_2013-07-14/Enterprise Deployment 2013-07-14. However it is not present in the earlier version v8.3p_2013-05-05/Enterprise Deployment 2013-05-05. I have tried this in Firefox 12.0 and Chrome
Comment