Am creating a small application where i am using dispatch action class for Login as well as Change Password button. The login form has two input fields viz Username and Password and both fields cannot be empty.
It is working fine when we click on Login button.
But when we are not entering any inputs and wants to change password, it is not working until and unless i entered some values in two fields.
Please help how to change password for the above case without entering any fields values.
Are you validating on the form, or on the action? In this case going by action won't work. Personally, I wouldn't use a dispatch action for this, either, since it's not really functionality that's closely related: it's different enough I'd use different actions.