You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by je...@sohu.com on 2009/10/07 17:38:07 UTC

no black point when click RadioChoice

there are 6 options in a RadioChoice, when user selects different option, different containner will be displayed to user. In my understanding, when user clicks on the different option, it should display a black point to tell user which option he/she selects. But why there is no black point in my application?Code:    private List listScheduleType = Arrays.asList(new String[] { "Once", "Now", "Daily", "Weekly", "Monthly", "Yearly" });    WebMarkupContainer containerDaily = new WebMarkupContainer("containerDaily");    WebMarkupContainer containerWeekly = new WebMarkupContainer("containerWeekly");    WebMarkupContainer containerMonthly = new WebMarkupContainer("containerMonthly");    WebMarkupContainer containerYearly = new WebMarkupContainer("containerYearly");           add(new RadioChoice("listScheduleType", listScheduleType)        {            public void onSelectionChanged()            {                System.out.println("TaskCreateTabPanel1-----RadioChoice:onSelectionChanged"+this.getPrefix());                System.out.println("TaskCreateTabPanel1-----RadioChoice:onSelectionChanged"+this.getSuffix()+this.getInput());                int iSelected = Integer.parseInt(this.getInput());                switch(iSelected)                {                    case 0: {                                setAllContainerVisible(false);                                break;                            }                    case 1: {                                setAllContainerVisible(false);                                break;                            }                    case 2: {                                setAllContainerVisible(false);                                containerDaily.setVisible(true);                                break;                            }                    case 3: {                                setAllContainerVisible(false);                                containerWeekly.setVisible(true);                                break;                            }                    case 4: {                                setAllContainerVisible(false);                                containerMonthly.setVisible(true);                                break;                            }                    case 5: {                                setAllContainerVisible(false);                                containerYearly.setVisible(true);                                break;                            }                    default: setAllContainerVisible(false);                }            }                       protected boolean wantOnSelectionChangedNotifications()            {                return true;            }        });






Best Regards,
Jerry