Re: Use a property file to change the choose one option

2018-06-26 Thread Maxim Solodovnik
https://ci.apache.org/projects/wicket/guide/8.x/single.html#_localization_of_component_s_choices On Tue, Jun 26, 2018 at 3:41 PM JavaTraveler wrote: > Hello everyone, I have another question. > > Where do you put the properties file to change the label of the null option > for a dropdownchoice

Use a property file to change the choose one option

2018-06-26 Thread JavaTraveler
Hello everyone, I have another question. Where do you put the properties file to change the label of the null option for a dropdownchoice ? Next to your java class ? Can you put in the same arboresence in resources, like for the css files ? And what do you write in it ? .null ? .nullvalid ? My

Re: Dropdownchoice without default option choose one

2014-11-13 Thread micah.k.willard
and then do var.setNullValid(false);, before adding it. This removes the null value for me every time. nitinkc wrote I tried setNullValid(false). But this does not get rid of the choose one option. Note that the choices are a list of Strings. If the choices are a list of other user defined

How to set DropDown to only available choices (No Blank, No Choose One)?

2011-11-28 Thread eugenebalt
Easy question, but I forgot the answer. I need my DropDown to 1) ONLY list the choices I have in my model (no blank, no 'Choose One'), 2) Automatically default to the 1st choice, so there is no blank visible. If I do setNullValid(false) I see Choose One which is incorrect. I should see the 1st

Re: How to set DropDown to only available choices (No Blank, No Choose One)?

2011-11-28 Thread Martin Grigorov
Hi, The javadocs says: If set to false, then Choose One will be displayed when the value is null. After a value is * selected, and that change is propagated to the underlying model, the user will no longer see * the Choose One option, and there will be no way to reselect null

Re: How to set DropDown to only available choices (No Blank, No Choose One)?

2011-11-28 Thread eugenebalt
Yes, working. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-DropDown-to-only-available-choices-No-Blank-No-Choose-One-tp4115842p4115957.html Sent from the Users forum mailing list archive at Nabble.com

Re: Choose One problem with DropDownChoice

2011-04-15 Thread tech7
Any suggestion? - Wicket-Java -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Choose-One-problem-with-DropDownChoice-tp3451837p3452096.html Sent from the Users forum mailing list archive at Nabble.com

Re: Choose One problem with DropDownChoice

2011-04-15 Thread Mike Mander
Am 15.04.2011 15:55, schrieb tech7: Any suggestion? - Wicket-Java -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Choose-One-problem-with-DropDownChoice-tp3451837p3452096.html Sent from the Users forum mailing list archive at Nabble.com

Re: DropDownChoices Removing Choose One after Ajax Call

2011-03-14 Thread tech7
Maarten thank you for your suggestion. It was solved - Developer Wicket Java JSP -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoices-Removing-Choose-One-after-Ajax-Call-tp3351515p3354339.html Sent from the Users forum mailing list archive

DropDownChoices Removing Choose One after Ajax Call

2011-03-13 Thread tech7
I have a dropdownchoice component on my page and according to some selections on my page, this component is updated by a ajax call. At the beginning it displays the choices without showing Choose One but after ajax call it displays Choose One. I know this issue is coming from any of the choices

Re: DropDownChoices Removing Choose One after Ajax Call

2011-03-13 Thread xFlasH
. At the beginning it displays the choices without showing Choose One but after ajax call it displays Choose One. I know this issue is coming from any of the choices are not selected right there but I don't know how to say the component choose first one as selected for not displaying Choose One. Can you

Re: DropDownChoices Removing Choose One after Ajax Call

2011-03-13 Thread tech7
xFlasH thank you for your suggestion but it removed Choose One but added a blank choice to the list. - Developer Wicket Java JSP -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoices-Removing-Choose-One-after-Ajax-Call-tp3351515p3351668.html Sent from

Re: DropDownChoices Removing Choose One after Ajax Call

2011-03-13 Thread Maarten Billemont
On 13 Mar 2011, at 10:18, tech7 wrote: I have a dropdownchoice component on my page and according to some selections on my page, this component is updated by a ajax call. At the beginning it displays the choices without showing Choose One but after ajax call it displays Choose One. I know

Re: DropDownChoice-Choose One Selected Item

2011-02-22 Thread nivs
TestVO(),selected),countryList, defaultChoiceRenderer); Doing this..sets the Choose One to the default value that was set in the TestVO. Reference: https://cwiki.apache.org/WICKET/dropdownchoice-examples.html https://cwiki.apache.org/WICKET/dropdownchoice-examples.html Thanks Nive -- View

DropDownChoice-Choose One Selected Item

2011-02-09 Thread Niv
Hi Is there a way I can have the selected option on a DropDownChoice to be set with one of the items in the Model instead of ' Choose One' as the selected item by default? I know this has been asked around in a different sense but I could not find a closer match to this. Code Snippet

Re: DropDownChoice-Choose One Selected Item

2011-02-09 Thread James Carman
to be set with  one of the items in the Model instead of ' Choose One'  as the selected item by default? I know this has been asked around in a different sense but I could not find a closer match to this. Code Snippet ListCountry countryList =service.getCountries(); ChoiceRendererCountry

Re: DropDownChoice-Choose One Selected Item

2011-02-09 Thread Martin Makundi
of the items in the Model instead of ' Choose One'  as the selected item by default? I know this has been asked around in a different sense but I could not find a closer match to this. Code Snippet ListCountry countryList =service.getCountries(); ChoiceRendererCountry defaultChoiceRenderer = new

Re: DropDownChoice-Choose One Selected Item

2011-02-09 Thread Nivedan Nadaraj
have the selected option on a DropDownChoice to be set with one of the items in the Model instead of ' Choose One' as the selected item by default? I know this has been asked around in a different sense but I could not find a closer match to this. Code Snippet ListCountry countryList

Re: How to Replace Choose One with Blank () in DropDown

2011-02-03 Thread Ian Marshall
Hi James, Thanks for the tip about Form1.choice1.null=Something Else I was always wondering how to change that text but now I can do it. Thanks again, Ian -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown

How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread eugenebalt
Please advise, I need to replace Choose One with a BLANK choice () in my dropdown. I know I can either create some kind of properties file, or override something, but I'm not sure exactly what to do, step-by-step. Could you give an exact, step-by-step instruction regarding what file to create

Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread James Carman
https://cwiki.apache.org/WICKET/dropdownchoice.html On Feb 2, 2011 5:47 PM, eugenebalt eugeneb...@yahoo.com wrote: Please advise, I need to replace Choose One with a BLANK choice () in my dropdown. I know I can either create some kind of properties file, or override something, but I'm

Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread eugenebalt
I have a Form and a DropDown on it, that's it. (There are no Panels or anything else.) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3256195.html Sent from the Users forum mailing list archive at Nabble.com

Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread eugenebalt
? And this example doesn't apply to me: mypanel.properties formid.dropdownid.null=Choose One I don't have a Panel. That's what I mean, the instructions need to be CLEAR because it's very hard to follow them. I tried creating some .properties file and didn't get anywhere. Thanks again -- View

Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread eugenebalt
-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3256305.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread James Carman
.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3256305.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Initial DropDown Blank Choice (Choose One) Disappearing

2010-12-20 Thread eugenebalt
In my DropDown, the initial choice is blank (Choose One), which I want to keep. My selections allow N/A which means nothing is selected. Initially on my form, the Choose One blank option is available, but after I make a selection, it goes away. Do I need to manually add a blank option to my

Re: Initial DropDown Blank Choice (Choose One) Disappearing

2010-12-20 Thread Matthias Keller
Hi eugene See DropDownChoice#setNullValid(boolean) Matt On 2010-12-20 18:57, eugenebalt wrote: In my DropDown, the initial choice is blank (Choose One), which I want to keep. My selections allow N/A which means nothing is selected. Initially on my form, the Choose One blank option

Choose One Text Without Property File?

2010-03-24 Thread Brad Grier
I'd like to be able to change the Choose One text for a DropDownChoice without using a property file. I have a dynamic form generator and I need the user to be able to designate the verbiage. Is this possible? Thanks, Brad

Re: Choose One Text Without Property File?

2010-03-24 Thread Matthias Keller
Hi Brad You'd probably have to subclass DropDownChoice and override the method getDefaultChoice() to return whatever value you'd like. Matt On 2010-03-24 16:45, Brad Grier wrote: I'd like to be able to change the Choose One text for a DropDownChoice without using a property file. I have

Re: Choose One Text Without Property File?

2010-03-24 Thread Pedro Santos
() to return whatever value you'd like. Matt On 2010-03-24 16:45, Brad Grier wrote: I'd like to be able to change the Choose One text for a DropDownChoice without using a property file. I have a dynamic form generator and I need the user to be able to designate the verbiage. Is this possible

Select the Choose one of a required DropDownChoice

2010-03-18 Thread David Chang
Hi, I am new in Wicket and am playing with different components. I have a two dropdown lists. One is a list of countries, required field, controlling another list of states/provinces via AjaxFormComponentUpdatingBehavior. The country list always has a blank (equivalent of Choose one

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread Matthias Keller
/provinces via AjaxFormComponentUpdatingBehavior. The country list always has a blank (equivalent of Choose one) as the first option in the list. When I select different countries, the state/province list changes accordingly. However, when I change to the blank in the country list, the state list

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread David Chang
Matt, I already did that. DropDownChoice.setNullValid() makes Choose one always stay there. I notice that DropDownChoice.setRequired() is the reason to generate the message and not get onUpdate called. Thanks. --- On Thu, 3/18/10, Matthias Keller matthias.kel...@ergon.ch wrote: From

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread Matthias Keller
that. DropDownChoice.setNullValid() makes Choose one always stay there. I notice that DropDownChoice.setRequired() is the reason to generate the message and not get onUpdate called. Thanks. --- On Thu, 3/18/10, Matthias Kellermatthias.kel...@ergon.ch wrote: From: Matthias Kellermatthias.kel

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread David Chang
In my case, the field is required. I make it required by setRequired(true), but I want the blank/choose one is still there. Doable? --- On Thu, 3/18/10, Matthias Keller matthias.kel...@ergon.ch wrote: From: Matthias Keller matthias.kel...@ergon.ch Subject: Re: Select the Choose one

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread Martin Makundi
setNullValid 2010/3/18 David Chang david_q_zh...@yahoo.com: In my case, the field is required. I make it required by setRequired(true), but I want the blank/choose one is still there. Doable? --- On Thu, 3/18/10, Matthias Keller matthias.kel...@ergon.ch wrote: From: Matthias Keller

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread David Chang
Martin, thanks for chimining in. I already did that. The problem is when I select null (choose one), AjaxFormComponentUpdatingBehavior#onUpdate is not called. Instead, Wicket generates a message and tries to seed it FeedbackPanel. I want to be able to handle that null and set another dropdown

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread Martin Makundi
Code? 2010/3/18 David Chang david_q_zh...@yahoo.com: Martin, thanks for chimining in. I already did that. The problem is when I select null (choose one), AjaxFormComponentUpdatingBehavior#onUpdate is not called. Instead, Wicket generates a message and tries to seed it FeedbackPanel. I want

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread David Chang
martin.maku...@koodaripalvelut.com wrote: From: Martin Makundi martin.maku...@koodaripalvelut.com Subject: Re: Select the Choose one of a required DropDownChoice To: users@wicket.apache.org Date: Thursday, March 18, 2010, 11:50 AM Code? 2010/3/18 David Chang david_q_zh...@yahoo.com

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread James Carman
Perhaps put logic in onsubmit to check for required country? On Mar 18, 2010 6:45 PM, David Chang david_q_zh...@yahoo.com wrote: Martin, the following is the code for the country dropdown list, which can control the state dropdown list. The problem is that when the country list's value is

Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
are my requirements: 1. Replace Choose one with a blank line 2. This blank line is the first option and it is always listed no matter whether a value is selected or not, no matter whether the form field of this dropdown list is required or not. 3. I am using ChoiceRenderer to convert between

RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Asenov
Hi, David! Let's presume your webapplication class is called WebApp.java. In the same directory where it is present, create WebApp.properties with the following line: null= that way every single 'choose one' label will be replaced with . P.S. Don't forget to include the props files in the pom

Re: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Makundi
that seem to match what I am looking but they did not answer my question. Tried myself, not successful. So I want to ask folks here. I have a form and it has a dropdown list. Here are my requirements: 1. Replace Choose one with a blank line 2. This blank line is the first option

RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
for help! Best, David --- On Wed, 3/17/10, Martin Asenov mase...@velti.com wrote: From: Martin Asenov mase...@velti.com Subject: RE: Replace Choose one from DropDownChoice? To: users@wicket.apache.org users@wicket.apache.org Date: Wednesday, March 17, 2010, 9:08 AM Hi, David! Let's presume your

Re: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Phee
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.

RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Asenov
] Sent: Wednesday, March 17, 2010 3:48 PM To: users@wicket.apache.org Subject: RE: Replace Choose one from DropDownChoice? 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

SV: Replace Choose one from DropDownChoice?

2010-03-17 Thread Wilhelmsen Tor Iver
Also setNullValid(true) otherwise the blank option will disappear once you have made a choice or the model has a value. - Tor I. -Opprinnelig melding- Fra: Martin Asenov [mailto:mase...@velti.com] Sendt: 17. mars 2010 15:23 Til: users@wicket.apache.org Emne: RE: Replace Choose one

Re: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
...@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

RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Asenov
: 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

Re: SV: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
: From: Wilhelmsen Tor Iver toriv...@arrive.no Subject: SV: Replace Choose one from DropDownChoice? To: users@wicket.apache.org users@wicket.apache.org Date: Wednesday, March 17, 2010, 10:23 AM Also setNullValid(true) otherwise the blank option will disappear once you have made a choice

RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
, 3/17/10, Martin Asenov mase...@velti.com wrote: From: Martin Asenov mase...@velti.com Subject: RE: Replace Choose one from DropDownChoice? To: users@wicket.apache.org users@wicket.apache.org Date: Wednesday, March 17, 2010, 10:34 AM David, please describe the use case in more depths. 1

Choose one

2009-08-27 Thread Gatos
After I choose something in DropDownChoice then 'Choose one' item is removed from the list. If I will try to use setNullValid(true) then 'Choose one' string is replaced with '' (emptry string). How is it possible to display 'Choose one' if another item has been selected?

Re: Choose one

2009-08-27 Thread Gatos
Is it possible to reuse existing translation - I like 'Choose one'? If my app has 32 languages, then I should create 32 records in each file? On Thu, Aug 27, 2009 at 3:58 PM, Dipu dipu@googlemail.com wrote: add this in your .properties file yourForm.yourDropDownId.nullValid = Choose One

Re: Choose one

2009-08-27 Thread Matthias Keller
to reuse existing translation - I like 'Choose one'? If my app has 32 languages, then I should create 32 records in each file? On Thu, Aug 27, 2009 at 3:58 PM, Dipu dipu@googlemail.com wrote: add this in your .properties file yourForm.yourDropDownId.nullValid = Choose One (or what ever you

Re: Choose one

2009-08-27 Thread Gatos
such as DropDownChoice and RadioChoice Matt Gatos wrote: Is it possible to reuse existing translation - I like 'Choose one'? If my app has 32 languages, then I should create 32 records in each file? On Thu, Aug 27, 2009 at 3:58 PM, Dipu dipu@googlemail.com wrote: add this in your

RE: Choose one

2009-08-27 Thread Warren Bell
I needed to do the same thing. I saw this on another post and it works fine. Override getDefaultChoice: protected CharSequence getDefaultChoice(Object selected) { return option selected=\selected\ value=\\Choose One/option; } You can use getLocalizer().getString

Re: Choose one

2009-08-27 Thread Erik van Oosten
Call setRequired(false) on the dropdownchoice. Regards, Erik. Gatos wrote: After I choose something in DropDownChoice then 'Choose one' item is removed from the list. If I will try to use setNullValid(true) then 'Choose one' string is replaced with '' (emptry string). How is it possible

Re: DropDownChoice without preselection and without 'Please choose one'

2009-02-23 Thread pixologe
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

DropDownChoice without preselection and without 'Please choose one'

2009-02-20 Thread 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 achieve this? Thanks in advance + regards -- View this message in context: http://www.nabble.com

Re: DropDownChoice without preselection and without 'Please choose one'

2009-02-20 Thread Fatih Mehmet Ucar
you can use setNullValid(true) method 2009/2/20 pixologe pixol...@mailinator.com 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

Re: DropDownChoice without preselection and without 'Please choose one'

2009-02-20 Thread Sergio García
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-without

Re: DropDownChoice without preselection and without 'Please choose one'

2009-02-20 Thread pixologe
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

Re: DropDownChoice without preselection and without 'Please choose one'

2009-02-20 Thread Martin Makundi
, 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 list, letting my ChoiceRenderer stumble

Re: DropDownChoice without preselection and without 'Please choose one'

2009-02-20 Thread Johan Compagner
, 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 list, letting my ChoiceRenderer stumble when it tries to interpret my

Solved: DropDownChoice without preselection and without 'Please choose one'

2009-02-20 Thread pixologe
the attribute by overwriting onComponentTag. Thats it :) -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120439.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice without preselection and without 'Please choose one'

2009-02-20 Thread pixologe
is also empty generate option selected=trueoption -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22125833.html Sent from the Wicket - User mailing list archive at Nabble.com

Dropdownchoice without default option choose one

2008-06-11 Thread nitinkc
I would like to remove the default choose one option from the DropDownChoice component. Does anyone know how to do this. Thanks. -- View this message in context: http://www.nabble.com/Dropdownchoice-without-default-option-%22choose-one%22-tp17782776p17782776.html Sent from the Wicket - User

Re: Dropdownchoice without default option choose one

2008-06-11 Thread Michael O'Cleirigh
Hi nitinkc, Calling setNullValid (false) on the drop down choice should get rid of the default choose one text. If the ddc model should always have a value defined then you could set the model object to be for example the first choice. e.g. ddc.setModelObject (ddc.getChoices().get(0

Re: Dropdownchoice without default option choose one

2008-06-11 Thread nitinkc
I tried setNullValid(false). But this does not get rid of the choose one option. Note that the choices are a list of Strings. If the choices are a list of other user defined object types and I use a choicerendrer for display values, the choose one option is removed(without setNullValid(false

Re: Dropdownchoice without default option choose one

2008-06-11 Thread Martin Makundi
I have noticed that with DropDownChoice, if the currently selected value is Null, you get this choose one item. And sometimes in a dynamic situation you get it still. Try using the analogous ListChoice element, at least it worked for me. ** Martin 2008/6/11 nitinkc [EMAIL PROTECTED]: I tried

Re: Dropdownchoice without default option choose one

2008-06-11 Thread Timo Rantalaiho
On Wed, 11 Jun 2008, Martin Makundi wrote: I have noticed that with DropDownChoice, if the currently selected value is Null, you get this choose one item. And sometimes in a dynamic situation you get it still. Yeah, it's easy to miss setting the currently selected value for when DropDownChoice

Re: Dropdownchoice without default option choose one

2008-06-11 Thread Martin Makundi
Yeah, it's easy to miss setting the currently selected value for when DropDownChoice is rendered for the first time. Hence it's always a good idea to supply it in the constructor. I have noticed the problem when I have a propertymodel attached to the dropdown, and I have two chained dropdowns

Re: Dropdownchoice without default option choose one

2008-06-11 Thread Michael O'Cleirigh
Hi nitinkc, The Choose One option is actually defined in: public abstract class AbstractSingleSelectChoice extends AbstractChoice { /** * */ private static final long serialVersionUID = 1L; /** String to display when the selected value is null and nullValid is false

Re: Dropdownchoice without default option choose one

2008-06-11 Thread Martin Makundi
If you use ListChoice this option is not there. ListChoice does not extend AbstractSingleSelectChoice . ** Martin 2008/6/11 Michael O'Cleirigh [EMAIL PROTECTED]: Hi nitinkc, The Choose One option is actually defined in: public abstract class AbstractSingleSelectChoice extends AbstractChoice

Re: Dropdownchoice without default option choose one

2008-06-11 Thread Gwyn Evans
Just to summarise, you need to do two things: set a 'current selection' and call setNullValid(false). /Gwyn On Wed, Jun 11, 2008 at 6:14 PM, nitinkc [EMAIL PROTECTED] wrote: I would like to remove the default choose one option from the DropDownChoice component. Does anyone know how to do

Re: Dropdownchoice without default option choose one

2008-06-11 Thread nitinkc
Thanks gwyn! I was not adding the default value to the ddc and that's why it was showing the choose one option. As you said, it's best to do that in the constructor. Gwyn wrote: Just to summarise, you need to do two things: set a 'current selection' and call setNullValid(false). /Gwyn

Re: how to remove 'choose one' from dropdownlist?

2007-10-31 Thread ChuckDeal
If it is just a matter of not wanting to see the phrase Choose One but that you are ok with a empty value, you could use the null property value to change the default text. There is also a null.valid property that you can define for the case where a null value is valid (used in conjuntion