Wicket 1.5.3 in NetBeans IDE 7.1

Register this URL in your Plugin Manager: https://blogs.oracle.com/geertjan/resource/NetBeans4Wicket.xml

(Note: The sources and binaries are at http://java.net/projects/nbwicketsupport, but for some reason you can't access NetBeans update centers if they're on java.net, hence I uploaded it into this blog.)

Then you'll be able to create Wicket applications in NetBeans IDE 7.1, in the final step of the New Web Application wizard:

The above panel in the Web Application wizard looks different to how it looked before for Wicket. For the first time, any library registered in the NetBeans Library Manager with a name beginning with "Wicket" will automatically appear in the Version list above. You can see that Wicket 1.5.3 is in there now, which is because the plugin installs that particular version of Wicket. So, if you have another version of Wicket you'd like to use, go to the Library Manager, register your own Wicket library, make sure to name it something starting with "Wicket" and then you'll be able to select the library in the panel above.

Also, if no library is found in the Library Manager with a name starting with "Wicket", the panel above will look different; you'll be able to select a Wicket root folder yourself, or select none, in which case no JARs will be attached to the project when it is created and you'll need to do so yourself manually.

Another small change is that no restart of NetBeans IDE is needed after you install the plugin.

Wicket applications in NetBeans IDE end up looking like this:

The above is an Ant based Wicket application, created via the dialog above, with no configuration needing to be done of any kind afterwards. For the moment, the plugin doesn't work very well for Maven, but Maven users can continue using the Maven archetype for Wicket, accessible from the New Project dialog as before.

The many features for Wicket developers that were there before are still there, once the NetBeans Wicket plugin is installed, such as Wicket ID matching, hyperlinking, a navigator window, palette with snippets, and more. We're working on updating the tutorial at the moment.

The latest version of this plugin was created with NetBeans IDE 7.1 RC 2, so if you're using an earlier version of NetBeans IDE, you'll probably experience problems of one kind or another during installation, so you're strongly advised to use NetBeans IDE 7.1 RC 2 or later.

Feedback on the NetBeans Wicket plugin is welcome.

Comments:

Life saver! Thanks a lot!

My feedback is about some features I would love to see:
1. Switch from Component to Markup as easy as I do Component to Unit Test (maybe Test to Markup as well)
2. Hints to tell when a component id added on Java but not declared on markup and vice-versa.
3. Refactoring to rename IDs in component and markup.

Posted by Eduardo Costa on December 30, 2011 at 01:08 AM PST #

All of the features above are already in the plugin, Eduardo.

Posted by Geertjan on December 30, 2011 at 01:10 AM PST #

wow...this is great thanks a lot, i really love both wicket and netbeans...

Posted by ranjan on December 30, 2011 at 02:49 AM PST #

Nice to see support for the current versions, thanks!

Is there some documentation where I can take a look to all the features the plugin provides? I'm using it inside a Maven Java EE6 Project with Wicket dependencies, I can't find the promised features :-)

Posted by Eddie on December 30, 2011 at 04:52 AM PST #

Hi Eddie, read the text above again, where you'll see Maven mentioned: "For the moment, the plugin doesn't work very well for Maven, but Maven users can continue using the Maven archetype for Wicket, accessible from the New Project dialog as before."

Posted by guest on December 30, 2011 at 05:12 AM PST #

That's awesome, Geertjan and thanks!

Jeff Schwartz

Posted by guest on December 30, 2011 at 06:04 AM PST #

@Geertjan - sorry! I saw "We're working on updating" and my brain skipped the word "tutorial". That's what happens when we need more hours of sleep... :)

That's even better, then! I will resuscitate some Wicket projects I have in my repository to test this plugin! Great job!

Posted by Eduardo M Costa on December 30, 2011 at 11:50 PM PST #

Hi Eduardo, that's great. Take a look at the next blog entry, i.e., from today, and you will see it is working now for Maven too and there's a screencast showing the features.

Posted by Geertjan on December 31, 2011 at 12:07 AM PST #

Hi Geertjan,

I'm trying to use your plugin with Netbeans 7.1; Wicket 1.5.3; Sun java 1.6; Linux Mint 12 (64 bit). I'm getting lots of JAVA_NODE_ADDED/DIFFERENT_IDS/HTML_NODE_MISSING errors on my existing project.

To reproduce this in a new project:
- create a new Wicket project using the netbeans wizard
- change the HeaderPanel.html code to:

<div wicket:id="feedback"/>

- add this code to the HeaderPanel.java constructor:

add(new FeedbackPanel("feedback"));
add(new Label("a"));

- for some strange reason, the first line (feedbackpanel) is highlighted as an error (JAVA_NODE_ADDED).

- Now change the name of the Label from "a" to anything that's after "f" in the alphabet (like 'g') and the highlighting disappears.

Any idea what's causing this?

- Sander

Posted by Sander Plas on January 05, 2012 at 03:08 AM PST #

Hi Geertjan, a while ago I installed that plugin on my computer at home. Now I'd like to use it for production purposes but run into the following error when registering it in my PlugIn manager:
Unable to connect to the Wicket 1.5.3 because of Zero sized file reported at http://blogs.oracle.com/geertjan/resource/NetBeans4Wicket.xml

Thanks,
Stephan

Posted by guest on February 29, 2012 at 05:30 PM PST #

Hi,
I have the same problem as Stephan,any solution?

Posted by Sudeep on March 08, 2012 at 04:52 PM PST #

Here it is:

https://blogs.oracle.com/geertjan/resource/NetBeans4Wicket.xml

Posted by Geertjan on March 08, 2012 at 11:02 PM PST #

Hi Geertjan, the following error when registering it in my PlugIn manager is happing too:
Unable to connect to the Wicket 1.5.3 because of Zero sized file reported at http://blogs.oracle.com/geertjan/resource/NetBeans4Wicket.xml

Thanks,
Francisco Ernesto Teixeira

Posted by Francisco Ernesto Teixeira on March 27, 2012 at 03:32 PM PDT #

But that's the wrong URL. Mine starts https:// and yours starts http://

Posted by Geertjan on March 27, 2012 at 08:25 PM PDT #

Hi Geertjan, thanks for this great tutorial (and nice presentation in Poland), but in the first sentence in this article you have small mistake:

now: Register this URL in your Plugin Manager: http://blogs.oracle.com/geertjan/resource/NetBeans4Wicket.xml

should be: Register this URL in your Plugin Manager: https://blogs.oracle.com/geertjan/resource/NetBeans4Wicket.xml

This is why people in comments ask about this resource again.

Posted by jh on March 30, 2012 at 08:12 AM PDT #

Thanks! Fixed the link.

Posted by Geertjan on March 30, 2012 at 08:27 AM PDT #

Nice plugin. Tanks Geertjan!
Two more questions:
1) Is it possible to configure the hints this plugin will give?
2) Will there be a version for wicket 6.0, which will come up soon?

Posted by LK on August 08, 2012 at 12:04 AM PDT #

Hi Geertjan,

Can we expect some update on the Wicket plugin for NetBeans soon?
- I would really like to use the some of the features in Wicket 6.0...

Do you know of any good Wicket course? Preferable in Sweden...
- To be able to use it well, I really would need to get some deeper knowledge...

Posted by guest on August 09, 2012 at 07:09 AM PDT #

Wicket 6.0 doesn't exist yet. The current stable release is 1.5.7. Look on the Wicket site and you'll see for yourself. If you want to use 6.0 beta releases, just go change the JARs yourself in the IDE.

Posted by Geertjan on August 13, 2012 at 02:58 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

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.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today