dev@woodstock.java.net

Re: [nbusers] document.getElementById no more work in Netbeans 6.0 VWP beta 2

From: richard ratta <Richard.Ratta_at_Sun.COM>
Date: Thu, 25 Oct 2007 11:09:48 -0400

There is not enough information to know for sure, but the biggest issue
that may
appear with existing javascript is that ALL javascript that is executed
MUST only
be executed in or after the body onload.

This means that if you have a "script" tag inline in the form or anywhere
that is executed before 'onload' completes, it will fail if it
references any
woodstock widget instance.

Our files are loaded in the HEAD element but ALL widget instances for a
given page will only exist after the body "onload" completes.

That is the only time you can safely reference a woodstock widget instance
generated from one of our JSP tags. This is the result of a dojo .9 change.

-rick

Winston Prakash wrote:

> Dan/Rick,
>
> Do you have an answer for this. Looks like this is a real blocker for
> this user (filed couple of P1 bugs against VW)
>
> Since NB Beta2 uses woodstock build #14, any thing changed recently in
> this regard.
>
> - Winston
>
>>Hi, there
>>
>>
>>
>>In Netbeans 5.5.1 & Netbeans 6.0 VWP beta 1, we can use below javascript to get the value of a component.
>>
>>
>>
>>var xx = document.getElementById("form1:idxx");
>>
>>alert(xx.value)
>>
>> However, in Netbeans 6.0 beta 2, it will display "undefined".
>>
>> Is it caused by an upgraded Dojo version in Netbeans 6.0 VWP beta 2?
>>
>> Any suggestion?
>>
>> Best Regards,
>>
>> Wayne
>>
>> CONFIDENTIALITY NOTE : The information in this e-mail is confidential
>> and privileged; it is intended for use solely by the individual or
>> entity named as the recipient hereof. Disclosure, copying,
>> distribution, or use of the contents of this e-mail by persons other
>> than the intended recipient is strictly prohibited and may violate
>> applicable laws. If you have received this e-mail in error, please
>> delete the original message and notify us by return email or collect
>> call immediately. Thank you. HTC, Corporation
>>
>