Could you show us the new stacktrace and the PrescientTemplateOriginalPage code ?
François > Le 27 déc. 2019 à 22:51, LSomefun <[email protected]> a écrit : > > Thanks for your reply Francois, much appreciated. Even when I adjust my code > and remove the login object from the source code and from the html tag like > the code below I still get the same error I was encountering. I definitely > will try version 9 in the near future as soon as I can solve the current > problem the framework is showing. > > Java Source below >> >> >> >> public class PrescientHome extends PrescientTemplateOriginalPage { >> >> private Model<ZipManagedBean> zipManager; >> private Form occForm; >> >> private WebMarkupContainer tagFrame; >> private Login login; >> private Model<String> occupationListModel; >> private List <String> occupationList; >> private DropDownChoice<String> occupationChoices; >> public PrescientHome() >> >> { super(); } >> @Override >> protected void onInitialize() { >> super.onInitialize(); >> zipManager=Model.of(new ZipManagedBean()); >> >> >> occupationListModel= new Model<>(); >> occupationList=zipManager.getObject().getOccCode(); >> occupationChoices=new >> DropDownChoice<>("occupationModel",occupationListModel, occupationList ); >> >> occForm=new Form("occupationForm"){ >> @Override >> protected void onSubmit() >> >> { super.onSubmit(); } >> }; >> occForm.add(occupationChoices); >> add(occForm); > >> >> } >> >> >> >> >> >> >> >> } >> >> >> HTML Source below >> >> <!DOCTYPE html> >> >> <html> >> <head> >> <title>TODO supply a title</title> >> <meta charset="UTF-8"> >> <meta name="viewport" content="width=device-width, initial-scale=1.0"> >> </head> >> <body> >> <wicket:extend> >> >> <div> >> <form id="occupationForm"> >> >> Doctors : >> <select name="occModel" wicket:id=":occupationModel"> >> <option selected="selected">Choose one</option> >> <option value="0">Physician</option> >> <option value="1">Dentist</option> >> <option value="2">Optometrist</option> >> </select> >> <input type="submit" value="Submit" />. >> </form> >> </div> >> </wicket:extend> >> </body> >> </html> > > -- > Sent from: > http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
