you are putting getDefaultChoice into the renderer, when it actually belongs in the DropDownChoice

-Igor


On 3/30/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:
The code...

        //create calendar
        List<String> days = DateTime.getDaysListForward(2, 4);
       
        //add quantity select list                       
        form.add(new DropDownChoice("arrivalDate", days, new IChoiceRenderer()
        {
            protected String getDefaultChoice(final Object selected)
        {
        return ""; //get rid of "Choose One" default
        }
           
            public String getDisplayValue(Object object)
            {
                return object.toString();
            }
           
            public String getIdValue(Object object, int index)
            {
                return object.toString ();
            }                       
        }));       

When rendered...I still get the "Choose One" option first.  Did I lose too much sleep last night...what did I miss?

Reply via email to