Wicket Components in NetBeans HTML Palette

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.


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.

Posted by hantsy on August 28, 2009 at 06:56 PM PDT #

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

Posted by Geertjan on August 28, 2009 at 10:45 PM PDT #

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

to find total i have included addpropertylistener.

Posted by sona on September 24, 2009 at 02:36 PM PDT #


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?


Posted by Darryl Thompson on January 17, 2010 at 09:28 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« April 2014