When the Show Email option is checked, it throws an error on submit.
[InvalidPropertyException: Invalid property 'showEmail[0]' of bean class [views.formdata.MagicianFormData]: Property referenced in indexed property path 'showEmail[0]' is neither an array nor a List nor a Map; returned value was [Show Email]]
In /Users/patrick/ics613/PlayWithMagic/app/controllers/Application.java:66
63 * @return The NewMagician page, either with errors or success.
64 */
65 public static Result postMagician() {
66 Form<MagicianFormData> formData = Form.form(MagicianFormData.class).bindFromRequest();
67 if (formData.hasErrors()) {
68 System.out.println("HTTP Form Error.");
69 return badRequest(NewMagician.render(formData, ExperienceLevels.getExperienceLevels(),
70 ShowEmail.getShowMyEmail()));
71 }
When the Show Email option is checked, it throws an error on submit.
[InvalidPropertyException: Invalid property 'showEmail[0]' of bean class [views.formdata.MagicianFormData]: Property referenced in indexed property path 'showEmail[0]' is neither an array nor a List nor a Map; returned value was [Show Email]]
In /Users/patrick/ics613/PlayWithMagic/app/controllers/Application.java:66