Hi all,

    Wicket provide very good page inheritance, and it's perfect for page layout.
However, as far as I know, to apply layout to static, logicless page, we still need
to create a blank page class: 

public class MyStaticPage extends MyBaseLayoutPage {
    //does nothing....

      MyStaticPage content...

Is it possible we can skip such blank class ? how about configure specific directory and
automatically apply Parent page ?

in WebAppliction:
    autoExtend( somePackage, MyBaseLayoutPage.class );

or just write parent class in template:

  <wicket:extend parent="com.example.MyBaseLayoutPage">
      MyStaticPage content...

Ingram Chen
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Wicket-user mailing list

Reply via email to