I vaguely remember having come across something similar.

ND Docs say you cannot use
>>
public void addSelectable(int index, 
                           String label, 
                           CSpValue value) 
<<
to APPEND an item to the end of the list. It might throw an
ArrayIndexOutOfBound exception. You can look at the log and see if it is
happehing

If you want to append, the method is:
>>
public void addSelectable( String label, 
                           CSpValue value) 
<< 


Aby
TeamND


> -----Original Message-----
> From: Guillaume CREST [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 08, 1999 1:11 AM
> To: [EMAIL PROTECTED]
> Subject: [ND] add dynamically labels of the radiobuttons of a CheckBox
> Group.
> 
> 
> 
>            Hi to all,
> 
>            In my applet,  I' m trying to add dynamically labels of the
> radiobuttons of a CheckBox Group.
> 
>         Basically, I wrote this, but a blank, empty CheckBoxGroup
> appears, when I run it:
> 
>                    _cgOnLine.removeAllChildren(true);
>                   //_cgMiseEnLigne.clear();
>                   _cgOnLine.addSelectable(0,"YES", new CSpInteger(0));
>                   _cgOnLine.addSelectable(1, "NO", new CSpInteger(1));
> 
>         I'm doing this in the onBeforeDisplayEvent of the 
> CheckBoxGroup,
> and _cgOnLine is declared as:
> 
>                 private CSpJavaCheckboxGroup _cgMiseEnLigne = null;
>        and I get the correct instance of the checkbox group in the
> AfterInitEvent of the page... like this:
> 
>                 _cgOnLine = (CSpJavaCheckboxGroup)
> getDisplayField("cgOnLine");
> 
>             Any help to solve this would be appreciated,
> 
>             Thanx,
> 
>             Guillaume,
>             UniversalFlower.
> 
> 
> 
> 
> 
> ______________________________________________________________
> ___________
> 
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: 
> http://www.netdynamics.com/support/visitdevfor.> html
> 
> For dire 
> need help, email: [EMAIL PROTECTED]
> 
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to