NB 6.0 Tip: Finding the examples for Visual Web Woodstock AJAX Components

Do you know each and every Woodstock AJAX Component bundled with Netbeans 6.0 Visual Web has plenty of examples explaining every details of the component. My recommendation is to go through these examples to learn about the powerful features of these components.

Getting these examples is very easy. They are available in the TLD documents which are bundled in the IDE. To bring up the TLD documentation invoke the action Help -> Javadoc Reference -> Project Woodstock 4.1 Tag Library.

TLD Doc Menu

This brings up the browser with component TLD doc. The examples are embedded in the TLD description

Component Example

Here is an example in the Button TLD doc for Asynchronous Update


I have one problem with this Winston. I just did a fresh and full install of NB6.0 beta 2 on linux, and none of that documentation shows up! In fact, when I click on Help -> Javadoc Reference ->, the only thing that shows on the resulting menu is JUnit API. Any idea what I need to do in order to get the rest of the documentation?


Posted by Paul on November 05, 2007 at 01:23 AM PST #

ahhhh, no problems Winston. Sorry for the earlier comment. I just happened to have a regular Java Class Library project open in Netbeans when I looked. I opened a Visual Web Application project and now I see all the docs per your description.

thank you,

Posted by Paul on November 05, 2007 at 01:34 AM PST #

I've installed NetBeans 6.0 Beta 2, and even when I have a Visual Web Application open and set as the main project there are still no Woodstock TLD references in the Help>>Javadoc References dropdown.

Any ideas?

Thanks - Derrick

Posted by Derrick on November 08, 2007 at 12:53 AM PST #

Hi Derrick, not sure what is going on. But I hear from another co-worker that it happened earlier and that turned out to be a stale userdir. Try renaming your user dir and start the IDE with fresh userdir.

Posted by Winston Prakash on November 08, 2007 at 12:58 AM PST #

Hi Winston,

Your blog is great. Thanks for the helpful articles and thank you for responding to my question.

The problem has been solved by following the tip you gave. I had previously installed 5.5.1, 6m10, 6Beta1 on the machine and didn't clean up after myself. This left residual data hanging around in the .net\* directories off of home. I archived these directories, and also the .netbeans-derby directory as I hadn't created any dbs of significance. I also removed the files .asapassword, and .asatruststore as I didn't need them for the new install, and they caused a conflict when installing GlassfishV2-b58g to supercede b53. Once home was clean, I installed 6.0 Beta2 and created a Visual Web project. All of the help javadoc references are right where you said they'd be.

I suppose I could also have modified the <NetBeansInstallDir>/etc/netbeans.conf netbeans_default_userdir entry, or added the --userdir <alternate user dir> parameter to the startup link to achieve a similar result after install, but the install wouldn't have been clean unless I could have specified an alternate user home directory to the installer, and the problem with the GlassfishV2 upgrade would have still existed.

Does the netbeans installer have a startup command line parameter allowing you to specify an alternate home directory for install?

Thank you for your help, and keep having fun!


Posted by Derrick on November 08, 2007 at 12:39 PM PST #

Derrick, you can provide another user dir using netbeans.exe --userdir <new user dir>.

Posted by Winston Prakash on November 08, 2007 at 11:10 PM PST #

Hi Winston,

In netbeans 551 we use the visual web components, now we would use in netbeans 6 the Visual Web Woodstock AJAX Components instead ?

thanks in advance !

Posted by Julio Araujo on December 03, 2007 at 10:59 AM PST #

Hi Winston, I think it would be very useful if you show us a simple way to use the functionalities of woodstock components using Netbeans 6.0...like Dynamic Group Table for example.
Thanks for your great job...

Posted by Willy De La Cruz on December 08, 2007 at 06:04 AM PST #

irc irc forum irc forumları.. www.ircrehberi.com , thanks you.

Posted by irc on June 27, 2008 at 09:50 AM PDT #

Hi winston,
thanks for this blog.
I try to change a staticText value when i validate textField id do that in my page
function changeText(){
var domNode = document.getElementById("form1:textField1");

var domNode3 = document.getElementById("form1:staticText1");



<webuijsf:textField id="textField1" onChange="changeText();" style="left: 192px; top: 192px; position: absolute" validatorExpression="#{Page1.textField1_validate}"/>
<webuijsf:button actionExpression="#{Page1.button1_action}" id="button1" style="left: 359px; top: 192px; position: absolute" text="Button"/>
<webuijsf:staticText binding="#{Page1.staticText1}" id="staticText1" style="position: absolute; left: 456px; top: 192px" text="dfgdfgdfg"/>

and in the bean:

public void textField1_validate(FacesContext context, UIComponent component, Object value) {

this.getStaticText1().setText(new String("zfzdfdf"));


in the http monitor i have two request one for submit and othe for refresh but the value of static text not changed

thanks for your response


Posted by walid on July 14, 2008 at 11:24 PM PDT #

Dear Winston,
great tutorial!!
I have a similar problem: I would like to use a button in a standard way (a click on to do an action) but I would add also the carriage return do the same.... I thought I can use the onkeypress utility. Please could you make an example also on this?
Thank you very much,

Posted by Cristina on June 09, 2009 at 05:51 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

« June 2016