Hi
There are mistake in your code:
programList.setDefaultModelObject(stringObjectModel);
...may be you want to call programList.setDefaultModel(stringObjectModel);
--
View this message in context:
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
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,
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 =
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
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