Original issue MVC_SPEC-66 created by ivar_grimstad:
Make it clearer that a controller method returning void is valid as long as it is decorated with @View
From Q&A with NLJUG
Q: It is stated that “Every possible return type from a controller method is either a Viewable or can be turned into one by calling a constructor.”. How does this hold for controllers returning void, as at least a String is needed?
A: In section 2.1, the spec states for controller return types: "void A controller method that returns void is REQUIRED to be decorated by @View" If a controller is decorated with @View it returns a Viewable, which is a valid return type.
Original issue MVC_SPEC-66 created by ivar_grimstad:
Make it clearer that a controller method returning void is valid as long as it is decorated with @View
From Q&A with NLJUG Q: It is stated that “Every possible return type from a controller method is either a Viewable or can be turned into one by calling a constructor.”. How does this hold for controllers returning void, as at least a String is needed?
A: In section 2.1, the spec states for controller return types: "void A controller method that returns void is REQUIRED to be decorated by @View" If a controller is decorated with @View it returns a Viewable, which is a valid return type.