(just a newbie )
I need FORM so I implemented SimpleFormController subclass. Now I need to check, if page has been called with param "id" - e.g.:
And if "id" is not defined I need to redirect to e.g.Code:viewCustomerDetail?id=1
(and if possibly add error message?)Code:customersList.html
Problem is, that onSubmit method is called only on submitting and I guess in Map referenceData(...) is not possible to determine model and overriding isFormSubmission(...) could cause some other issues.
Could anyone help me or refer me to some reading?