Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with dispatch action

 
RaviSingh Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Thanks in advance.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
RaviSingh Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am validating all the fields values on the Form
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't really answer my question, but what I've told you already should be enough anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic