David, please describe the use case in more depths.

1)
You want a dropdownchoice with null selection, which is " "?

2)
You don't want a null selection to be there at all, but show the first element.

Best,
Martin

-----Original Message-----
From: David Chang [mailto:david_q_zh...@yahoo.com] 
Sent: Wednesday, March 17, 2010 4:31 PM
To: users@wicket.apache.org
Subject: Re: Replace "Choose one" from DropDownChoice?

Martin, 

According to what you said, do I need to add special processing in 
ChoiceRenderer if this blank line is the selected and I need to convert 
selected value to object?

Thanks,
David

--- On Wed, 3/17/10, Martin Phee <mp...@objectivearts.com> wrote:

> From: Martin Phee <mp...@objectivearts.com>
> Subject: Re: Replace "Choose one" from DropDownChoice?
> To: users@wicket.apache.org
> Date: Wednesday, March 17, 2010, 10:05 AM
> You have to add a selection choice
> that is just a blank line option.
> 
> This is a typical requirement for any dropdown if you wan
> the use to be able to clear their choice.
> 
> 
> On Mar 17, 2010, at 8:47 AM, David Chang wrote:
> 
> > Martin,
> > 
> > Thanks so much for chiming in. I tried the
> > 
> > null=
> > 
> > approach. The blank line in the dropdown list simply
> disappears. As I said in my requirements, I hope to have it
> there no matter whether a value is selected or not, no
> matter whether it is a required field or not.
> > 
> > Again, thanks for help!
> > Best,
> > David
> > 
> > --- On Wed, 3/17/10, Martin Asenov <mase...@velti.com>
> wrote:
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to