The class is private. 2009/4/8 Vladimir Zavada <[email protected]>: > Hi, > I have a problem with DropDownChoice. I am using DropDownChoice with > ChoiceRenderer and I am getting this error: > > No get method defined for class: class java.lang.String expression: key > > > Here is a code: > > DaysSelectOption[] options = new DaysSelectOption[] {new > DaysSelectOption("&", "AND"), new DaysSelectOption("|", "OR")}; > ChoiceRenderer choiceRenderer = new ChoiceRenderer("value", "key"); > showVal.add(new DropDownChoice("day_val", new PropertyModel(this, > "items"), Arrays.asList(options), choiceRenderer)); > > where class DaysSelectOption is: > private class DaysSelectOption > { > private String key; > > public String getKey() > { > return key; > } > > public void setKey(String key) > { > this.key = key; > } > > public String getValue() > { > return value; > } > > public void setValue(String value) > { > this.value = value; > } > private String value; > public DaysSelectOption(String key, String value) > { > this.key = key; > this.value = value; > } > > thx for asnwers > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
he class is private. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
