[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1112
  • Last Modified:

CancellableFormController (Springs)

In Springs we have a CancellableFormController, which is used to cancel the form if clicked on the cancel button. My doubt what if it is a form which needs to be submitted as well as cancel functionality. As a class can extend only one class it extend either CancellableFormController  or the controller related to formSubmission(Dont remember the name). Do we have controllers in the form of interfaces so we can implement multiple controllers at the same time.
0
prsubject
Asked:
prsubject
  • 2
3 Solutions
 
objectsCommented:
CancellableFormController already supports form submission
It is a subclass of SimpleFormController and provides all the functionality of that class
0
 
Sathish David Kumar NCommented:
CancellableFormController extends SimpleFormController  (it objects mention above)

its correct , so we can use what are all function SimpleFormController  we will use in CancellableFormController

CancellableFormController check the request object that have parameter vaule , If the identidy that is cancelable parameter means
it will pass the cancelView otherwise its take it as from view
0
 
Sathish David Kumar NCommented:

checking function is  isCancelRequest ,

its return true means cancelView
false means formview
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now