DropDownChoice

2010-11-01 Thread drf
I wonder if anyone can help with the following bug in my code. It relates to a Panel which contains a DropDownChoice. This is the exception: java.lang.IllegalArgumentException: Cannot format given Object as a Number
 at java.text.DecimalFormat.format(DecimalFormat.java:487)
 at

dropdownchoice

2007-12-08 Thread Yevgeni Kovelman
I have the following problem, I have a dropdownchoice component. The load method returns a list of Broker objects which have an id and displayName attributes. Although currently not in this code, I will use the iChoiceRenderer to populate the appropriate values. The Request instance object is a

DropDownChoice problem

2008-04-17 Thread Andrew Broderick
Hi, I have a DropDownChoice in a form, with markup: In my Form class, I add it like this: add(new DropDownChoice("authors", new PropertyModel(this.article, "articleAuthorId"), acService.getAuthors(), new ChoiceRendere

multiple DropDownChoice

2008-04-20 Thread i ii
is example available for multiple DropDownChoice where one menu changes value in other? i look at http://wicketstuff.org/wicket13/ but see no example

DropDownChoice + AjaxFallbackDefaultDataTable

2010-03-10 Thread Björn T .
Hi there, I am completely new to Wicket and therefore I have a simple question. It would be nice if someone could point me in the right direction. I have a form with a DropDownChoice and a AjaxFallbackDefaultDataTable on it. On first load all items on the table are displayed. Changing the

DropDownChoice ID's

2009-05-08 Thread Chris
List test = Arrays.asList(new String[] { "A", "B", "C" }); add(new DropDownChoice("test", test)); How can I make the Id's match the Values? There coming through as 1,2,3. I've tried custom ChoiceRenderer, but seem

DropDownChoice Question

2007-09-20 Thread Clay Lehman
ate a String variable in the object that I am editing based on the ID that is selected. I basically want a DropDownChoice that works like a TextField, where the value updated in the Model is the ID of the selected option. I created the following SelectChoice class so that I can create choices, and r

DropDownChoice options

2008-11-06 Thread Craig Tataryn
Is it possible to leave the s up to my designer for a tag, instead of me having to replicate them on my side? Don't come across this too too often, but sometimes the values within the drop downs aren't linked to any logic or database values and really should be up to the designer's discre

Regarding DropdownChoice

2008-12-30 Thread Nilesh More
Hi, I am using a dropdown list to display some values. When I am selection any one from the list it should be saved in the preferences. I want to get the value that I have selected from the list in some variable on the same page. Can anybody please give me the solution? Thanks and Regard

DropDownChoice constructor

2009-02-27 Thread Adriano dos Santos Fernandes
Hi! Maybe I'm dumb today :-), but I can't access this constructor: public DropDownChoice(String id, IModel> choices, IChoiceRenderer renderer) So I had created new functions using similar generics parameter, and it also don't work for the DDC equivalent: private vo

DropDownChoice confusion!

2009-03-20 Thread Bigcalm
arges(""); So I now have a list of primitive hibernate objects with lots of getters and setters. I want my dropdownchoice to use more than one field from my original FixedCharges list for the description, so the text in the description field is... fixedCharges.getDescriptio

Validating DropDownChoice

2009-04-07 Thread Chris
I have a DropDownChoice defined as follows. // Model for populating Condition Dropdown IModel conditions = new LoadableDetachableModel() { public Object load() { List c = new ArrayList(); try { c = dao.getConditions(); } catch (DaoException e) { } return c; } }; // Condition Dropdown

Update DropDownChoice

2009-04-07 Thread Peter Diefenthaeler
Hallo, I'm trying to update a DropDownChoice from a Ajax Callback. The new value is correctly added to the choice of selectable values, but I can't set the new added value as the selected value, only new choice is shown ... Any ideas are welcome. Tha

DropDownChoice problem

2010-04-28 Thread Josh Kamau
Hi team I need your help I am using a DropDownChoice in a form as follows: DropDownChoice lstNationality = new DropDownChoice("nationality",getNationalities()); The form has a CompoundPropertyModel After adding the dropdown to the form, i am able to save the record properly. Howev

DropDownChoice problem

2010-05-27 Thread Matthieu
Hello, I've a problem with the DropDownChoice (and maybe language?). I've a Panel who's rendering perfectly when i set the language in "english" and not rendering when i set in "french"... The message from wicket : WicketMessage: The component(s) below

DropDownChoice behaviour

2010-05-29 Thread Marek Šabo
Hi all, I would like to know what's the outcome of setting setNullValid(true) -- is it that the choices will start with an empty string choice? My problem: userField = new DropDownChoice("user", facade.getAllUsers()); -- keeps the "Choose one" option even without s

Re: DropDownChoice

2010-11-01 Thread andrea del bene
contains a DropDownChoice. This is the exception: java.lang.IllegalArgumentException: Cannot format given Object as a Number
 at java.text.DecimalFormat.format(DecimalFormat.java:487)
 at java.text.Format.format(Format.java:140)
 at

Re: DropDownChoice

2010-11-01 Thread msantos
Hi there. Probably your "accountsList" has a value wich cannot be converted to long. What does that list contains? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-tp3022770p3022872.html Sent from the Users forum mailing list archive at

Boolean DropDownChoice

2012-08-01 Thread Lawrence, Sean
Hi, I'm trying to create a custom form component that extends a DropDownChoice. The reason I'm doing this is because I need a form component that forces a user to select a choice. However, I'm unable to get the model to update. What am I not overriding properly? I'm all e

DropDownChoice rendered

2013-03-30 Thread bart
I need to use 3 wicket DropDownChoice rendered, eg country, city, town. How do I? . Thank you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-rendered-tp4657657.html Sent from the Users forum mailing list archive at Nabble.com

Re: dropdownchoice

2007-12-11 Thread Ivaylo Kovatchev
same thing. For example, having Broker id's in the final rendered HTML is a potential security risk. That being said, I could not find a elegant solution to the same exact problem. I ended up subclassing DropdownChoice. Adapted to your code, it looked something like: private HashMapmap

Re: dropdownchoice

2007-12-11 Thread Johan Compagner
yes this is true, you have to have a selected object that comes from the choices Why is this so hard to understand? I find that completely logical. Maybe with generics (1.4) this will be more clear * public* DropDownChoice(String id, IModel model, IModel> choices, IChoiceRenderer renderer)

Re: dropdownchoice

2007-12-11 Thread Ivaylo Kovatchev
Fair question. Why return the Id, instead of just using a Property model to bind the member field of an object to a child component's model? Thanks for your insight. Yevgeni: If you do that you will have to have an object (can be the same one that extends DropDownChoice) impl

Re: dropdownchoice

2007-12-11 Thread Igor Vaynberg
org.apache.wicket.model.IModel; public class DropDownIdChoice extends DropDownChoice { public DropDownIdChoice(String id, IModel model, IModel choices, IChoiceRenderer renderer, Class type) { super(id, model, choices, renderer); setType(type); } @Override public String

DropDownChoice problem

2008-01-25 Thread Mathias P.W Nilsson
Hi! I can't get the simples DropDownChoice to work! I want to return the object in my model but it returns string This is what I have so far. I have a ArrayList of Category objects. Each of this Objects have a list of child Categories. I want to render the Category id and name in the lis

Extending DropDownChoice

2008-02-12 Thread Bruce McGuire
Hi. I would like to save the result of a DropDownChoice in my custom session. But, I am stumped about how to extend it. I had thought that I would @Override the getChoices and onSelectionChanged methods, but Eclipse tells me that "The method onSelectionChanged(Pool) of type PoolSelect

DropDownChoice puzzle

2008-02-26 Thread Vitaly Tsaplin
Hi everyone! I have a question regarding the IChoiceRenderer interface. As I can guess a regular usage of the DropDownChoice is to bind it to some bean property (somehow probably by means of the PropertyModel). So lets take an example. I have a picker of something that is an integer by

DropDownChoice models

2017-01-11 Thread Zbynek Vavros
Hey, I have a DropDownChoice for list of users. I want to display user's name but bind user's ID. So far I have come to this (ugly) solution that can surely be improved: // create model with Long userId... final DropDownChoice usersDropDown = new DropDownChoice<>(

Re: DropDownChoice problem

2008-04-17 Thread Ryan Gravener
Use Long instead of long On Thu, Apr 17, 2008 at 5:05 PM, Andrew Broderick <[EMAIL PROTECTED]> wrote: > Hi, > > I have a DropDownChoice in a form, with markup: > > > > In my Form class, I add it like this: > > add(new DropDownChoic

RE: DropDownChoice problem

2008-04-17 Thread Andrew Broderick
I tried changing both the property being set by the DropDownChoice and the property used in the Author class to Long, and it didn't make any difference any help appreciated! Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gravener

Re: DropDownChoice problem

2008-04-17 Thread John Krasnay
On Thu, Apr 17, 2008 at 04:05:45PM -0500, Andrew Broderick wrote: > Hi, > > I have a DropDownChoice in a form, with markup: > > > > In my Form class, I add it like this: > > add(new DropDownChoice("authors", new

Re: DropDownChoice problem

2008-04-18 Thread Johan Compagner
; > > On Thu, Apr 17, 2008 at 04:05:45PM -0500, Andrew Broderick wrote: > > Hi, > > > > I have a DropDownChoice in a form, with markup: > > > > > > > > In my Form class, I add it like this: > > > > add(new Drop

Re: multiple DropDownChoice

2008-04-20 Thread Per Newgro
Am Sonntag, 20. April 2008 18:19:33 schrieb i ii: > is example available for multiple DropDownChoice where one menu changes > value in other? i look at http://wicketstuff.org/wicket13/ but see no > example You could do this in your model. Both ddcs could point to same business mod

Re: multiple DropDownChoice

2008-04-20 Thread Michael Sparer
what about that one: http://wicketstuff.org/wicket13/ajax/choice.1 ;-) regards, Michael i ii wrote: > > > is example available for multiple DropDownChoice where one menu changes > value in other? i look at http://wicketstuff.org/wicket13/ but see no > example > >

Re: multiple DropDownChoice

2008-04-20 Thread Frank Bille
http://wicketstuff.org/wicket13/ajax/choice On Sun, Apr 20, 2008 at 6:19 PM, i ii <[EMAIL PROTECTED]> wrote: > > is example available for multiple DropDownChoice where one menu changes > value in other? i look at http://wicketstuff.org/wicket13/ but

RE: multiple DropDownChoice

2008-04-20 Thread i ii
thank you > From: [EMAIL PROTECTED] > To: users@wicket.apache.org > Subject: Re: multiple DropDownChoice > Date: Sun, 20 Apr 2008 19:00:28 +0200 > > Am Sonntag, 20. April 2008 18:19:33 schrieb i ii: > > is example available for multiple DropDownChoice where one menu ch

RE: multiple DropDownChoice

2008-04-20 Thread i ii
thank you > Date: Sun, 20 Apr 2008 21:32:48 +0200 > From: [EMAIL PROTECTED] > To: users@wicket.apache.org > Subject: Re: multiple DropDownChoice > > http://wicketstuff.org/wicket13/ajax/choice > > On Sun, Apr 20, 2008 at 6:19 PM, i ii <[EMAIL PROTECTED]> wrote:

Wicket DropDownChoice problem

2010-02-24 Thread saravana kumar
Hi, My DropDownChoice have Values like follows Choose One(default for wicket) One Two Three If i choose one,some panel disabled and enabled If i choose two,some panel disabled and enabled when i choose to default(Choose One) nothing will happen here after and i couldn't

Re: DropDownChoice ID's

2009-05-08 Thread Igor Vaynberg
new ichoicerenderer { object getid(string object, int index) { return object; } string getdisplayvalue(string object) { return object; } } -igor On Fri, May 8, 2009 at 2:19 PM, Chris wrote: > List test = Arrays.asList(new String[] { "A", "B", "C" }); >

Re: DropDownChoice ID's

2009-05-08 Thread Oblivian
object.toString(); } } Oblivian wrote: > > List test = Arrays.asList(new String[] { "A", "B", "C" }); > add(new DropDownChoice("test", test)); > > How can I make the Id's match the Values? There coming through as > 1,2,3. I

Re: DropDownChoice ID's

2009-05-08 Thread Oblivian
Thanks. Oblivian wrote: > > List test = Arrays.asList(new String[] { "A", "B", "C" }); > add(new DropDownChoice("test", test)); > > How can I make the Id's match the Values? There coming through as > 1,2,3. I've tried

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
Not sure what I'm doing wrong. I need a DropDownChoice with ... Female Male have a basic class like this ... public class Gender implements Serializable { String id; String name; public Gender(); public Gender(String id, String name); public S

Re: DropDownChoice ID's

2009-05-09 Thread John Krasnay
What is the type of the "gender" property of BasicDemographicInfo? jk On Sat, May 09, 2009 at 12:39:58PM -0700, Oblivian wrote: > > Not sure what I'm doing wrong. I need a DropDownChoice with ... > > Female > Male > > have a basic class like this ...

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
basicDemographicInfo.gender is a String and genders is List John Krasnay wrote: > > What is the type of the "gender" property of BasicDemographicInfo? > > jk > > On Sat, May 09, 2009 at 12:39:58PM -0700, Oblivian wrote: >> >> Not sure what I'

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
basicDemographicInfo.gender is a String and genders is List Oblivian wrote: > > List test = Arrays.asList(new String[] { "A", "B", "C" }); > add(new DropDownChoice("test", test)); > > How can I make the Id's match the V

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
basicDemographicInfo.gender is a String and genders is List John Krasnay wrote: > > What is the type of the "gender" property of BasicDemographicInfo? > > jk > > On Sat, May 09, 2009 at 12:39:58PM -0700, Oblivian wrote: >> >> Not sure what I'

Re: DropDownChoice ID's

2009-05-09 Thread Igor Vaynberg
type of the "gender" property of BasicDemographicInfo? >> >> jk >> >> On Sat, May 09, 2009 at 12:39:58PM -0700, Oblivian wrote: >>> >>> Not sure what I'm doing wrong.  I need a DropDownChoice with ... >>> >>> Female >>> Ma

Re: DropDownChoice ID's

2009-05-10 Thread John Krasnay
The golden rule of DropDownChoice is that the values in the list must be the same as the property you are trying to set. In your case, if you want basicDemographicInfo.gender to be set to "m" or "f", you must pass the DropDownChoice the list [ "m", "f" ]. Y

Re: DropDownChoice ID's

2009-05-10 Thread Oblivian
After changing genders from List to List, I'm seeing the opposite behaviour. The values are coming across as ['m','f'] but the id's are ['0','1'] Overriding getIdValues() instead of getDisplayValues() seems to work. John Krasnay wrote: > &

Re: DropDownChoice ID's

2009-05-10 Thread John Krasnay
opposite behaviour. The values are coming across as ['m','f'] but the id's > are ['0','1'] > > Overriding getIdValues() instead of getDisplayValues() seems to work. > > > John Krasnay wrote: > > > > The golden rule of DropD

Re: DropDownChoice ID's

2009-05-11 Thread Oblivian
] but the >> id's >> are ['0','1'] >> >> Overriding getIdValues() instead of getDisplayValues() seems to work. >> >> >> John Krasnay wrote: >> > >> > The golden rule of DropDownChoice is that the values in the li

dropdownchoice crashes IE7

2009-06-12 Thread Stefan Malmesjö
Hi! A couple of my users have reported that their IE7 crashes when they fiddle around with a dropdown in my app. The browser just shuts down completely when they make a choice in the drowpdownchoice box. It is ajax enabled. I have the exact same version of IE7, and I cannot repeat the proble

reloading DropDownChoice choices

2009-07-29 Thread Troy Cauble
I have the following Page Form DDC TextFields Buttons The DDC has a LoadableDetachableModel with a hibernate call for the *choices* model and "new Model()" for the DDC model. Changing the DDC selection, changes the TextFields appropriately. But I have a Button and a form submit

Defaulting a DropDownChoice

2009-09-18 Thread Tim Delesio
I'm trying to default a DDC (DropDownChoice) using the model I am passing in. The page is getting passed in a LoadableDetachableModel which is of Type Player. The list to back the DDC is a List. LoadableDetachableModel playersModel = new LoadableDetachableModel() { prot

Re: DropDownChoice Question

2007-09-20 Thread John Krasnay
On Thu, Sep 20, 2007 at 11:33:31AM -0400, Clay Lehman wrote: > And I want to be able to add a DropDownChoice to my form that is > something like this and have it automatically update Item.type in my > model: > > > > public class Edit

RE: DropDownChoice Question

2007-09-20 Thread Clay Lehman
Hey John, Thanks for your advice, the example you gave me should handle what I need to do. -Clay -Original Message- From: John Krasnay [mailto:[EMAIL PROTECTED] Sent: Thursday, September 20, 2007 12:15 PM To: users@wicket.apache.org Subject: Re: DropDownChoice Question On Thu, Sep 20

IAuthorizationStrategy and DropDownChoice

2007-10-16 Thread Jonas
While implementing a custom IAuthorizationStrategy for our web app, I noticed that DropDownChoice (and any other AbstractChoice) doesn't honor restrictions on Component.RENDER and Component.ENABLE. Is there a recommended way to make that work? Wouldn't it make sense that AbstractChoice

Radio with DropDownChoice

2008-09-30 Thread eviladam
Hey folks, Something I've been trying to figure out for far too long now is how I might use a DropDownChoice to supply the value for just one of my RadioGroup inputs. At this point I've created a FormComponentPanel that contains a Radio and a DropDownChoice with convertInput() setting

DropDownChoice Model issue

2008-10-04 Thread walnutmon
All, I have a form, the page has an object "company", a dropdown list has a bunch of companies... return new DropDownChoice("companies", new Model(company), getCompanies, new ChoiceRenderer("name")); I add a button, that has a simple on submit

Simulate DropDownChoice selection

2008-10-06 Thread Aleksandr Nikiforov
Hi all, I have a couple of DropDownChoices and I want to test their behaviour using WicketTester, is it possible to somehow simulate that user has made selection in ddc? Regards, Aleksandr - To unsubscribe, e-mail: [EMAIL PR

Re: DropDownChoice options

2008-11-06 Thread Igor Vaynberg
On Thu, Nov 6, 2008 at 10:09 PM, Craig Tataryn <[EMAIL PROTECTED]> wrote: > Or do I simply not give the select tag a wicket:id and grab it's value > manually from within onSubmit()? either that or write your component that puts the selected value into the model as a string -igor > > Thanks, > >

Re: Regarding DropdownChoice

2008-12-30 Thread Dipu
i think you have two options here 1. you can add an AjaxFormComponentUpdatingBehavior to the dropdown or 2. override wantOnSelectionChangedNotifications method of the dropdown choice first one as the name says is ajax based and second one will do roundtrip Dipu On Tue, Dec 30, 2008 at 9:20 AM,

problem with dropdownchoice

2009-01-20 Thread itayke
Hi, I have this problem with my dropdownchoice with results in WicketMessage: No get method defined for class: class screens.CustomerFilters$FormInput expression: devices were the java class has: public CustomerFilters(){ super(); FormInput formInput

Re: DropDownChoice constructor

2009-02-27 Thread Adriano dos Santos Fernandes
Seems I'm late reading this list, and encounter the same problem discussed in another thread today. :-) Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.

Re: DropDownChoice confusion!

2009-03-20 Thread francesco dicarlo
have you considered the use of a Renderer in the dropdownChoice? DropDownChoice(java.lang.String id, IModel model, java.util.List data, IChoiceRenderer renderer) FixedCharges selected=new FixedCharges(); DropdownChoice drop=new DropdownChoice("YourId",new CompoundPropertyModel(select

Re: DropDownChoice confusion!

2009-03-20 Thread James Carman
stFc = enquiryController.getAvailableFixedCharges(""); > > > So I now have a list of primitive hibernate objects with lots of getters and > setters. > > I want my dropdownchoice to use more than one field from my original > FixedCharges list for the descripti

Re: DropDownChoice confusion!

2009-03-20 Thread Will Jaynes
bit overcomplicated and I'm not sure we're using them in the > correct way?!! > > The database function to retrieve my data will be: > > List listFc = enquiryController.getAvailableFixedCharges(""); > > > So I now have a list of primitive hibernate o

Re: DropDownChoice confusion!

2009-03-20 Thread Bigcalm
Excellent - thankyou all for your responses! I've gone for an inner class in the end and it's all nice and simple and easy to understand, here's my snippet List ebillingCharges = enquiryController.getAvailableFixedCharges("C", "E", "");

DropDownChoice in ListView

2009-03-21 Thread Alexander Lohse
etRenderBodyOnly(true); } } WeekdayChoice and HourChoice basically extend DropDownChoice and set the choices and a renderer: public class HourChoice extends DropDownChoice { public HourChoice (String id) { super(id); setChoiceRenderer(new HourRenderer()); List

DropDownChoice and AJAX

2009-04-02 Thread Peter Diefenthaeler
Hallo, I have a little problem with updating a DropDownChoice in a separate panel with information coming from a modal window. The new value is not updated in the DropDownChoice, only "new choice" is displayed when I come back from the modal window. Can you help me on this issue? Tha

AW: Validating DropDownChoice

2009-04-07 Thread Stefan Lindner
Is it a "normal" form without AjaxSubmitButton? -Ursprüngliche Nachricht- Von: Chris [mailto:ch...@carlsoncentral.com] Gesendet: Dienstag, 7. April 2009 16:53 An: users@wicket.apache.org Betreff: Validating DropDownChoice I have a DropDownChoice defined as follows. //

Re: Update DropDownChoice

2009-04-08 Thread Roman Zechner
what does the final html of the DDC look like after updating? Peter Diefenthaeler wrote: Hallo, I'm trying to update a DropDownChoice from a Ajax Callback. The new value is correctly added to the choice of selectable values, but I can't set the new added value as the selected value

Re: Update DropDownChoice

2009-04-08 Thread Dariusz Wojtas
Try to update the ddc model, then call: ddc.modelChanged(); before rendering. Regards, Dariusz Wojtas On Wed, Apr 8, 2009 at 8:36 AM, Peter Diefenthaeler wrote: > > Hallo, > I'm trying to update a DropDownChoice from a Ajax Callback. The new value > is correctly added

Re: Update DropDownChoice

2009-04-08 Thread PDiefent
36 AM, Peter Diefenthaeler > wrote: >> >> Hallo, >> I'm trying to update a DropDownChoice from a Ajax Callback. The new value >> is correctly added to the choice of selectable values, but I can't set >> the >> new added value as the sel

Ajax + DropDownChoice + ModalWindow

2009-04-29 Thread Steve Flasby
Chaps, struggling a bit with this one. I want a ModalWindow containing a search form plus a table of results. I would like the results to be updated using Ajax as I change the search criteria. One of the search criteria is a DropDownChoice. So, to handle a selection change I would normally use

Re: DropDownChoice problem

2010-04-28 Thread Ernesto Reinaldo Barreiro
I remember having a similar problem because missing the equal on some bean. Could that be the case? Ernesto On Wed, Apr 28, 2010 at 4:20 PM, Josh Kamau wrote: > Hi team > > I need your help > > I am using a DropDownChoice in a form as follows: > > DropDownChoice

SV: DropDownChoice problem

2010-04-28 Thread Wilhelmsen Tor Iver
> After adding the dropdown to the form, i am able to save the record > properly. However, when i display a form with an existing record, > > the DropDownChoice is not showing the current 'nationality' and it is > only > showing "Choose One"; Sounds like W

Re: DropDownChoice problem

2010-04-28 Thread Xavier López
n to the form, i am able to save the record > > properly. However, when i display a form with an existing record, > > > > the DropDownChoice is not showing the current 'nationality' and it is > > only > > showing "Choose One"; > >

Re: DropDownChoice problem

2010-04-28 Thread Swanthe Lindgren
Hi team I need your help I am using a DropDownChoice in a form as follows: DropDownChoice lstNationality = new DropDownChoice("nationality",getNationalities()); The form has a CompoundPropertyModel After adding the dropdown to the form, i am able to save the record properly. Howev

Re: DropDownChoice problem

2010-04-29 Thread Josh Kamau
. Could that be the case? > > Ernesto > > On Wed, Apr 28, 2010 at 4:20 PM, Josh Kamau wrote: > > Hi team > > > > I need your help > > > > I am using a DropDownChoice in a form as follows: > > > > DropDownChoice lstNationality = new > > D

Re: DropDownChoice problem

2010-05-27 Thread Dr. Wolf Blecher
may be this is valid HTML, but why do you use e.g. <\span> instead of as opening tag? Good luck Wolf Am 27.05.2010 23:26, schrieb Matthieu: > > Hello, > > > I've a problem with the DropDownChoice (and maybe language?). > > I've a Panel who's rende

Re: DropDownChoice problem

2010-05-28 Thread Matthieu
break the html code with \ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-problem-tp2233814p2235230.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscrib

Re: DropDownChoice problem

2010-05-28 Thread James Carman
to my _fr html file, i get the same error... yes, i ommited "" in this mail but not in my code :) and i write my mails in html format so i have to break the html code with \ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-problem-tp2233814p2

SV: DropDownChoice behaviour

2010-05-31 Thread Wilhelmsen Tor Iver
> I would like to know what's the outcome of setting setNullValid(true) - > - > is it that the choices will start with an empty string choice? The "empty choice" is there for null model objects whether nullValid is true or false, the difference is that if you call setNullValid(false), then the op

localize options DropDownChoice

2010-07-07 Thread always_rick
or there is another approach? I am struggling with the problem. Any help I will be really appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/localize-options-DropDownChoice-tp2281778p2281778.html Sent from the Wicket - User mailing list a

DropDownChoice and generics

2010-09-02 Thread Sigmar Muuga
Hello, the generics solution for the DropdownChoice is weird in my opinion. I want to write like this: List genders = getGenderList(); DropdownChoice new DropDownChoice("fieldId", new PropertyModel(currentPerson, "gender"), genders); But the compilation fails because of

Mapping DropDownChoice values?

2010-09-16 Thread Benedikt Schlegel
ing attributes. Now i have the following question: How can i set up a ChoiceFilter, which is essentially a DropDownChoice, to write the value of the "name" property of the selected Application object into the appropriate field of the DocumentLinkFilter object? Ist that even possible? Or do i have

DropDownChoice/Model Confusion

2010-10-04 Thread Shelli Orton
I am writing a (simple?) database CRUD app where I have multiple tab panels that encapsulate the different tables in the database. On a panel there's a dropdownchoice which lists the existing records for that table. There's also create, delete and edit buttons (and and edit panel wit

SelectOption and DropDownChoice

2011-10-10 Thread Daniele Dellafiore
Hi. I need to add an attribute to an inside a dropdown. I'd rather have a DropDownChoice and the ability to add an AttributeModifier to every option but I can't find a way to acccess the single options of the drop down. Instead I've read about solutions that involve SelectOption

Select vs. DropDownChoice

2011-12-01 Thread Richard W. Adams
Can someone educate me on the differences between Select and DropDownChoice? They both create a control. What factors should I consider in determining which one to use? Are they designed for different use cases? Is one more powerful/flexible than the other? Etc. ** This email and any

DropDownChoice Default Value

2012-07-22 Thread vimalsymbi
Hi All, I have searched and wasted much of my time figuring out the default Value for DropDownChoice for Object as dropdown but couldn't find the solution. For "String" dropdown i was able to make it work but somehow for object it is not working. Below is the Simple example t

DropDownChoice Default Value

2012-07-22 Thread vimal kumar
Hi All,  I have searched and wasted much of my time figuring out the default Value for DropDownChoice for Object as dropdown but couldn't find the solution. For "String" dropdown i was able to make it work but somehow for object it is not working.  Below is the Simple example t

DropDownChoice with tooltip

2010-12-01 Thread cole
I needed tooltip functionality on a dropdownchoice component and I have a work around but it involved copying a bunch of existing code because I couldn't figure out an easy way to add "title" to an html select->option. The IChoiceRenderer passed into the DropDownChoice only has

DropDownChoice choice rendering

2011-03-03 Thread tech7
I have a problem with dropdownchoice component I have a car class containing Long id, String name and etc. I am getting all car information as list of objects from database and I want to display only the car name on the dropdownchoice and also want to put car objects into dropdownchoice. How can

Trouble with DropDownChoice

2011-03-25 Thread Jim Goodwin
I'm trying to follow the example in the Javadoc for DropDownChoice which says: Java: List SITES = Arrays.asList(new String[] { "The Server Side", "Java Lobby", "Java.Net" }); // Add a dropdown choice component that uses Input's 'site'

RE: Boolean DropDownChoice

2012-08-01 Thread Paul Bors
Instead of going to the extent of overriding a class because your model value is not updated, why not fix the problem? Take a look at the component reference wicket-example project: http://www.wicket-library.com/wicket-examples/compref/ More precisely at the DropDownChoice: http://www.wicket

RE: Boolean DropDownChoice

2012-08-02 Thread Richard W. Adams
Even better, why are you using a drop down at all? Check boxes are normally used for true-false choices. From: Paul Bors To: Date: 08/01/2012 07:51 PM Subject:RE: Boolean DropDownChoice Instead of going to the extent of overriding a class because your model value is not

RE: Boolean DropDownChoice

2012-08-02 Thread Lawrence, Sean
Hi Paul, The reason for the dropdown over the checkbox is I'm attempting to enforce a selection. I.e. make required or @NotNull I think I got a bit carried away by attempting to extend DropDownChoice. Thanks for the link. The following is what I'm going forward with: new Drop

Has DropDownChoice changed?

2012-10-23 Thread N. Metzger
I recently upgraded from 1.5.5 to 1.5.8, and I do have a DropDownChoice with settings dropDownChoice.setNullValid(false); dropDownChoice.setRequired(true); dropDownChoice.setOutputMarkupId(true); It used to be that on the first load of the page "Choose One" was displayed as the fi

Re: DropDownChoice rendered

2013-04-04 Thread Martin Grigorov
amples/ajax/builtin/AutoCompletePage.java On Sat, Mar 30, 2013 at 5:14 PM, bart wrote: > I need to use 3 wicket DropDownChoice rendered, eg country, city, town. > > How do I? > > . > > Thank you very much. > > > > -- > View this message in context: &g

  1   2   3   4   5   6   7   8   9   10   >