X

Geertjan's Blog

  • October 3, 2005

Fun Reading for a Monday Morning

Geertjan Wielenga
Product Manager
The internal NetBeans lab support department, here in Prague, officially called "Infrastructure and Lab Management Team", have a very funny homepage. At first you don't realize this, but then, once you start reading their 'Servicedesk Testimonials', your Monday morning suddenly becomes a whole lot better...

By the way, this morning, on the way to work—out of the blue—something truly bizarre happened to me. I feared for my life, but of course, I contacted ILM right away and the problem was solved in a split second. Thanks ILM. You guys are great...

Join the discussion

Comments ( 2 )
  • Deepan Monday, October 3, 2005
    This isnt related to your blog entry...
    I have a question about wicket. Im new to the framework, and had a question about how it works. In several of the tutorials available it says that you can change the behaviour of wicket so that not all of your files need to be in the same package directory. How exactly do you do this, or can you point me in the direction of a place that teaches how to do this?
  • Geertjan Monday, October 3, 2005
    Well, it's important to note that they must be in the same package STRUCTURE, but they can be in a different package DIRECTORY. For example, I can add a new resource lookup path like this in the application class:
    protected void init()
    {
    getSettings().addResourceFolder("WEB-INF");
    }

    Now you need to put the HTML file (for example, my.html) in WEB-INF/full-path-as-packages/my.html. For example, if my java class is in wicket/examples/helloworld, then my HTML file will now be in WEB-INF/wicket/examples/helloworld.

    So, you see it's in the same structure, but in a different directory. Does this answer your question?

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha