I think what Gwyn is proposing is to add a main() method to wicket.examples.WicketExampleApplication (or another class in the examples project) which starts Jetty and allows people to explore the examples project directly, instead of having to deploy the examples war or configure Jetty themselves.
Martijn
Eelco Hillenius wrote:
Well, we're using the quickstart for what you want to do. Also, I wouldn't be for introducing a dependency in core on Jetty.
Eelco
Gwyn Evans wrote:
[Retrying as SF bounced the 1st time]
Is there any interest in a trivial 'util.Runner' class to go in the wicket-examples module?
I'm using one (as below) to run Jetty up from within my IDE to help with exploring them, but I could be missing a trick that means it's not needed/useful?
public static void main(String[] args) throws IOException, MultiException {
Server server = new Server();
SocketListener listener = new SocketListener();
listener.setPort(8080); server.addListener(listener);
server.addWebApplication("/wicket-examples","src/webapp");
server.start();
System.out.println("View examples at
http://localhost:8080/wicket-examples");
}
Gwyn
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
