Geertjan's Blog

  • May 9, 2006

Look And Feel Support for Wicket

Geertjan Wielenga
Product Manager
One thing I like about the Wicket Examples is that they have the same look and feel. Something like this for each page (notice the orange, the headers, the line):

So, to enable all the related files (e.g., stylesheet) to be generated, there's now the new "Add Example Formatting" checkbox in the Wicket wizard page in the New Project wizard. The checkbox is selected by default (based on the assumption that you want to generate as much as possible):

As a result, all of the following files (those that are selected below) are generated:

In addition, the Home Java file now extends WicketExamplePage, instead of WebPage. On top of that, the Home HTML file includes a stylesheet reference and a Wicket ID for the mainNavigation header added by WicketExamplePage. The header is a panel, which makes it a reusable component. The reusable component provides the titleblock at the top of the page, as well as the "Start of" text below it.

Now, as soon as you finished the wizard, just drag and drop a Wicket Label component (that, by default renders "Hello World!") and deploy the application. Then you'll see the result above. Not bad, right? This way you have the basis for your own website-wide look and feel.

In other news... I did a presentation today for some technical writing managers here in Santa Clara. It is called "Blogging: Waste of time... or time well spent?" It is incomplete, I need to add some input I got today during the presentation, but it more or less summarizes how I see blogging within the context of technical writing. It contrasts blogging to "traditional docs" (i.e., help topics and tutorials) and argues that there are a variety of benefits as well as things to watch out for in the area of blogging within this context. If you're interested, you can get the PDF version of the presentation right here. Feedback welcome.

Join the discussion

Comments ( 3 )
  • Aswin Anand Wednesday, May 10, 2006
    Hi Geertjan, after days of using netbeans, i just found out that 1 important feature is missing.
    File->New Project and you get a textbox for entering the project name. When i right click on the textbox, im unable to see the "Cut, Copy, Paste, Select All" menu.
    Getting used to it is different, but don't you think its an usability issue?
  • giorgio42 Wednesday, May 10, 2006
    You are completely right about blogging.
    Without your blog NetBeans would still be a just an IDE to me, not a universe of opportunities.

    Thanks for blogging!


    P.S. And of course, we would have never met.

  • Geertjan Thursday, May 11, 2006
    Hi Aswin, I think you're right. Definitely would be nice to hav that in all textboxes, I think.

    Hi Georg, thanks for the comment! And yes that meeting in Munich airport was cool. You should send me your postal address, there's something I'd like to send to you.

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