简体   繁体   中英

How to run wicket examples?

I am new to web prog. and wicket, so i went to below site to run example source codes to play with applications.

http://www.wicket-library.com/wicket-examples/index.html

Simply i create a "dynamic web project" and try to copy source codes to project.

All example's application classes are that type,

   public class ...(ex.name).Application extends WicketExampleApplication

On the internet i found some of those examples with classes WebApplication, and i managed to run those examples, like that

   public class ...(ex.name).Application extends WebApplication

So my question are;

1-How can i simply run those examples using dynamic web projects?

2-Copying source codes to my project after that how can i call libraries in my project using maven?

I searched many questions but couldnt find any topic who is trying to run those examples simply in a project.

Thanks.

Soso

  1. instead of doing all the messy work just run mvn using tthis [http://wicket.apache.org/start/quickstart.html]
  2. now just copy the sources

if you any problem and you want to add wicket to an existing project just copy the web..xml , wicket jars and you would have wicket project (i would recomend wicket from another opm connecting you existing services and this way decouple services from the web container ...)

P. S the WebApplication thing they just inehrited it and called ExampleWebApplication

The best you can do is to use maven integration

  1. Install Eclipse (that support Java EE)
  2. Add all required maven related plugins

Then, just checkout the maven examples you got on the web

Go Eclipse--Window-->Show view-->Other

Type svn and select SVN repositories and open it

Then copy the check out address and add it to the svn repositories View

finaly, right click on the link you have added and check out as maven projects.

If you want to create new Maven projects

Create new maven Projects, new-->project-->Maven project

then in new Maven Project Window, in the Filer Text box, Type wicket and select org.apche.wicket as a groupID After that, you can have your maven codes working well.

If still you got some debug errors, you can open your pom.xml file and add dependencies such as wicket-core and wicket-extensions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM