Geertjan's Blog

  • August 23, 2009

Wicket Components in NetBeans HTML Palette

Geertjan Wielenga
Product Manager
I've started re-adding the palette with Wicket components to the Wicket plugin for NetBeans IDE. The old approach, done by Petr Pisl using MDR, no longer worked with the Retouche APIs and so we simply disabled that palette with the introduction of the 6.0 Java editor. Now, however, I've used the Retouche APIs so that when an item is dropped into the HTML editor, some corresponding code is dropped into the constructor on the Java side.

Here you can see the palette, i.e., bottom right of this screenshot:

Below I show you two examples. First, I drag the "Label" item from the palette into the HTML editor:

Then, when I open the matching Java file, I see that a label with a matching ID has been added to the constructor:

Next, I drag the "DropDown List" item into the HTML editor, with this result:

As a result, on the Java side, the following lines have magically been added:

I'm now working on the AJAX autocomplete textfield (which will use this code). To this end, I've exposed the Wicket Extensions JAR to the Library Manager, via the plugin, so that the related AJAX class from that JAR can be used.

If anyone would like specific Wicket components to be prioritized, please let me know. Otherwise, I'll add whatever Wicket components I happen to like to the palette. What you see above is already part of the "nb_67" branch of the Wicket plugin and will be available as part of the next binary distribution.

Join the discussion

Comments ( 4 )
  • hantsy Saturday, August 29, 2009

    The navigator and Palette has a common problem, it is related to the File type opened, but not related to the features the project enabled.

    For example, I created a web project which have not Wicket support, but wicket navigator and Wicket Palette is still displayed.

  • Geertjan Saturday, August 29, 2009

    Yes, I'm working on fixing that. (But it's not really a very big issue, I think. P4, maybe, since you know, as a developer, that you can only use those features in a Wicket project.)

  • sona Thursday, September 24, 2009

    sir help me.


    sample java code using property listeners for to calculate average of marks in wicket.

    to find total i have included addpropertylistener.

  • Darryl Thompson Monday, January 18, 2010


    I am very new to Wicket (but like it a lot) I normally develop JSF Seam/Richfaces apps or Struts 2 app. I have spent the last 30 days learning wicket and now am attempting to develop a Wicket1.4 Spring JPA/Hibernate app.

    Would you also add ModalWindow, Form, calendar, submitbutton, imagebutton, and file upload to the pallette?


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