Re: How to set the value of a Drop Down Choice

2010-07-28 Thread vov
Hi There are mistake in your code: programList.setDefaultModelObject(stringObjectModel); ...may be you want to call programList.setDefaultModel(stringObjectModel); -- View this message in context:

How to set the value of a Drop Down Choice

2010-07-27 Thread Eric Reagan
Hello, I was wondering how to set the currently selected value for a DropDownList? Currently I have a .properties file which sets the value when I have a null selection, however, I was wondering how do I change the currently selected value to a different one (e.g. if I am pulling a previous

Re: How to set the value of a Drop Down Choice

2010-07-27 Thread Martin Makundi
Have you tried if setDefaultModelObject() works for you? ** Martin 2010/7/27 Eric Reagan reaga...@gmail.com: Hello,      I was wondering how to set the currently selected value for a DropDownList? Currently I have a .properties file which sets the value when I have a null selection, however,

Re: How to set the value of a Drop Down Choice

2010-07-27 Thread Eric Reagan
Martin, I have the following. All I am getting is a null value. Am I setting the model object wrong? IModelString stringObjectModel = new LoadableDetachableModel String() { /** * */ private static final long serialVersionUID =

Re: How to set the value of a Drop Down Choice

2010-07-27 Thread Eric Reagan
Martin, Thanks for the advice. I had a mental fart and left out the setter function. Once you add the setter...works like a charm. Thanks again. Thank you, On Tue, Jul 27, 2010 at 2:34 PM, Eric Reagan reaga...@gmail.com wrote: Martin, I have the following. All I am getting is a null

Re: How to set the value of a Drop Down Choice

2010-07-27 Thread James Carman
Why not set up a property on your page/component for the selected text and use a PropertyModelString? On Tue, Jul 27, 2010 at 3:34 PM, Eric Reagan reaga...@gmail.com wrote: Martin,    I have the following. All I am getting is a null value. Am I setting the model object wrong? IModelString