Thank you Stefan.

Is there even a more generic way, like telling Wicket: take all in this directory? Guess not, since this should be scanned on boot... ?! I just would like to skip to register each single class.

Andi

Stefan Lindner wrote:
You need to do 2 things.

1. Mount your Page in Applicatioin.init() methode like
        mountBookmarkablePage("/Login", Login.class);
   As you see, you can give your page any name you want
2. Your e.g. Login.class must have a parameterless constructor or a constructor 
like
      public Login(final PageParameters parameters)

Then you can call your Login-Page directly with URL ....../Login

Stefan

-----Ursprüngliche Nachricht-----
Von: Andreas Balke [mailto:a...@doppelpop.de] Gesendet: Montag, 9. Februar 2009 16:59
An: users@wicket.apache.org
Betreff: URL Mapping (Beginner)

Hi guys,

I'm playing around with wicket a bit, but I cannot solve an (probably easy) problem: my pages cannot be resolved. The Homepage class is reachable, but only be calling the "Root" URL. Calling an explicit html file gives me a Tomcat 404 without useless message...

Am I something missing?

Cheers, Andi


Here is my web.xml

   <context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>/WEB-INF/Springapp-servlet.xml</param-value>
   </context-param>
   <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>

   <listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
   </listener>

   <!-- Wicket example -->
   <servlet>
       <servlet-name>WicketApplication</servlet-name>
<servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>
       <init-param>
           <param-name>applicationClassName</param-name>
<param-value>de.pansen.wicket.HelloWorldApplication</param-value>
       </init-param>
       <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
       <servlet-name>WicketApplication</servlet-name>
       <url-pattern>/wicket/*</url-pattern>
   </servlet-mapping>
   <!-- dev only... -->
   <context-param>
       <param-name>configuration</param-name>
       <param-value>development</param-value>
   </context-param>


---------------------------------------------------------------------
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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to