Hi Johan, hi Martin,
Just for the sake of completeness:
Having
select.null=
select.nullValid=
as string resources, an empty option is displayed as first item if nullValid
is true.
If it is false, there is still the 'Please choose one' option.
Anyway, I'll stick to the ListMultipleChoice solution
just had a deeper look at AbstractSingleChoice.
looks as if it did exactly this when the ###.null string resource is empty.
I will check that out tomorrow.
Thank you guys :)
jcompagner-2 wrote:
>
> override the getDefaultChoice() and generate a (yes
> empty)
> and the if selected is also em
Sorry, just saw your message.
Didn't know about the .null thing... quite confusing.
I will try this tomorrow.
Thanks a lot
Martin Makundi wrote:
>
> DId you try setting the .null <- property value? If null
> is valid then try .nullValid , see
> http://wicket.sourceforge.net/apidocs/wicket/m
I have found a solution for this after all, not quite elegant, but works like
charm :)
new ListMultipleChoice("select",new Model(new ArrayList(0)), new
PropertyModel(this, "choices"), renderer) {
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag
override the getDefaultChoice() and generate a (yes empty)
and the if selected is also empty generate
On Fri, Feb 20, 2009 at 15:31, pixologe wrote:
>
> I tried overriding getDefaultChoice already, returning an empty string,
> this
> did not work, unfortunately.
>
> The 'Please choose one' opt
DId you try setting the .null <- property value? If null
is valid then try .nullValid , see
http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/DropDownChoice.html
**
Martin
2009/2/20 pixologe :
>
> I tried overriding getDefaultChoice already, returning an empty string, this
> did not w
I tried overriding getDefaultChoice already, returning an empty string, this
did not work, unfortunately.
The 'Please choose one' option is not rendered, however the first 'normal'
option gets selected instead.
Also, inside AbstractSingleSelectChoice, there remains an empty string in
the options
I guess that if you simply override the dropdownchoice i18n property value
for that component/page with a plain "" it may work.
DropDownChoice property key for "Please choose one" is "null", or at least i
remember that.
--
View this message in context:
http://www.nabble.com/DropDownChoice-wit
you can use setNullValid(true) method
2009/2/20 pixologe
>
> Hi everybody,
>
> I might just be out of it or missing a clue - I'd just like to have a
> DropDownChoice without preselection and without 'Please choose one' option.
> Is this possible? How can I ac
Hi everybody,
I might just be out of it or missing a clue - I'd just like to have a
DropDownChoice without preselection and without 'Please choose one' option.
Is this possible? How can I achieve this?
Thanks in advance + regards
--
View this message in context:
http:/
10 matches
Mail list logo