Do you use an IDE? Non-IDE development using just command line tools is really masochistic. Grab eclipse, netbeans, intellij, or something that provides autocompletion, and autoimports.
Martijn On Thu, Feb 19, 2009 at 5:10 PM, nicgould <wic...@nicgould.co.uk> wrote: > > I am using Java 1.6, here is the output of mvn --version: > > Maven version: 2.0.9 > Java version: 1.6.0_11 > OS name: "linux" version: "2.6.27.7-9-debug" arch: "i386" Family: "unix" > > > rjilani wrote: >> >> Would you please make sure what version of Java are you using. Annotaions >> are only supported from version 1.5 and forward. >> >> Regards, >> RJ. >> >> >> nicgould wrote: >>> >>> Hi there, >>> >>> I set up a wicket 1.3.5 project using the quickstart instructions from >>> wicket.apache.org. I successfully got the test page up and running using >>> Jetty. >>> >>> I tried adding a basic form with a textbox to the page using code taken >>> from Wicket in Action. However when recompiling I got the following error >>> from Maven: >>> >>> [INFO] Compilation failure >>> /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] >>> annotations are not supported in -source 1.3 >>> (use -source 5 or higher to enable annotations) >>> @override >>> >>> This is my first foray into Wicket so apologies if this is an obvious >>> error - I searched the list first but couldn't find anything that looked >>> like the same issue. I'd be grateful for any assistance anyone can offer. >>> >>> I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my >>> Homepage constructor now looks like this: >>> >>> public HomePage(final PageParameters parameters) { >>> >>> // Add the simplest type of label >>> add(new Label("message", "If you see this message wicket is >>> properly configured and running")); >>> >>> //Member lookup form >>> Form memform = new Form("memform"){ >>> @override >>> protected void onSubmit(){ >>> System.out.println("Form onSubmit is called"); >>> } >>> }; >>> add(memform); >>> form.add(new TextField("memname", new Model(""))); >>> form.add(new Button("membutton", new Model("Go")){ >>> @override >>> public void onSubmit(){ >>> System.out.println("Mem button clicked"); >>> } >>> }); >>> >>> // TODO Add your page's components here >>> } >>> >>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103843.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org