this has nothing to do with maven, looks like you are missing imports for classes like Form and Model. like Martjin said, use an ide.
-igor On Thu, Feb 19, 2009 at 8:29 AM, nicgould <wic...@nicgould.co.uk> wrote: > > It's a forbidden link for me but I get the hint ;) will read up on Maven > myself. Thanks for your help anyway. > > Nic > > Martin Funk-3 wrote: >> >> Maybe this spoon will feed you right: >> http://www.sonatype.com/download.php?file=books/maven-definitive-guide.pdf >> >> >> 2009/2/19 nicgould <wic...@nicgould.co.uk> >> >>> >>> Martin, >>> >>> Thanks for your help. >>> >>> I tried adding the following to my pom.xml within <plugins> >>> >>> <plugin> >>> <groupId>org.apache.maven.plugins</groupId> >>> <artifactId>maven-compiler-plugin</artifactId> >>> <configuration> >>> <source>1.5</source> >>> <target>1.5</target> >>> <encoding>UTF-8</encoding> >>> </configuration> >>> </plugin> >>> >>> I'm now getting a bunch of cannot find symbol errors though (see paste >>> below). Anyone have any further suggestions? >>> >>> [INFO] Compilation failure >>> >>> /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,1] >>> cannot >>> find symbol >>> symbol : class Form >>> location: class com.mycompany.HomePage >>> >>> /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,20] >>> cannot >>> find symbol >>> symbol : class Form >>> location: class com.mycompany.HomePage >>> >>> /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,14] >>> cannot >>> find symbol >>> symbol : class TextField >>> location: class com.mycompany.HomePage >>> >>> /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,39] >>> cannot >>> find symbol >>> symbol : class Model >>> location: class com.mycompany.HomePage >>> >>> /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,1] >>> cannot >>> find symbol >>> symbol : variable form >>> location: class com.mycompany.HomePage >>> >>> /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,14] >>> cannot >>> find symbol >>> symbol : class Button >>> location: class com.mycompany.HomePage >>> >>> /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,38] >>> cannot >>> find symbol >>> symbol : class Model >>> location: class com.mycompany.HomePage >>> >>> /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,1] >>> cannot >>> find symbol >>> symbol : variable form >>> location: class com.mycompany.HomePage >>> >>> >>> Martin Funk-3 wrote: >>> > >>> > maybe this helps. >>> > >>> > >>> http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383 >>> > >>> > maven obviously compiles with java version 1.3 >>> > >>> > if you use annotations you need to compile against 1.5 >>> > >>> > the maven compiler plugin needs to be configured as in the example >>> above. >>> > >>> > mf >>> > >>> > 2009/2/19 nicgould <wic...@nicgould.co.uk> >>> > >>> >> >>> >> 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-tp22102144p22102144.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 >>> >> >>> >> >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103676.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 >>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22104234.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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org