Sunday August 23, 2009
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.
Aug 23 2009, 07:38:04 AM PDT Permalink
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.
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 29, 2009 at 05:45 AM PDT #
sir help me.
Ques:
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 09:36 PM PDT #


