This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 163693 - It seems to be a fault in the Woodstock Bacic library - RadioButton Group
Summary: It seems to be a fault in the Woodstock Bacic library - RadioButton Group
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Winston Prakash
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 16:28 UTC by gunnarh
Modified: 2009-04-26 16:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gunnarh 2009-04-26 16:28:10 UTC
Ver. NetBeans IDE ver. 6.5.1
The project is a Visual Web Javaserver Faces.

The example page has the following two components from the Woodstock Basic Library:

- Radio Button Group ( RBG )
- Static text. ( ST )

The RBG is implemented with "Auto-Submit on Change"

This means that I reads the choice after each change in the RBG, and shows the value in the ST. This works fine.

public void radioButtonGroup1_processValueChange(ValueChangeEvent vce) {
        *this.staticText1.setValue(vce.getNewValue().toString());*
    }


The fault is then uncovered when I then choose one of the choices as a default in the RBG

private void _init() throws Exception {
        radioButtonGroup1DefaultOptions.setOptions(new com.sun.webui.jsf.model.Option[]{new 
com.sun.webui.jsf.model.Option("item1", "Item 1"), new com.sun.webui.jsf.model.Option("item2", "Item 2"), new 
com.sun.webui.jsf.model.Option("item3", "Item 3")});
        *radioButtonGroup1DefaultOptions.setSelectedValue("item2")*;
    }



The default choice is then not shown in the ST. I can select the default choice, but nothing is shown in the ST.
The other choices is shown in the ST after a selection.

My company is in a evaulating periode and it's important for me to get this working. It is a basic function.

The RBG must me choosen to go further and its a haze to always pick a choice to go further when default value is de-
selected.

Regards
-Gunnar;)