Hi Philipp,

DropDownChoice is supposed to work exactly as you described it, nothing wrong there.

If you want to have it the other way around, you have to provide ids in your choices model and use the ChoiceRenderer to display readable strings.

Hope this helps
Sven

Am 28.11.2011 17:41, schrieb Philipp Schreiber:
Hi,

I got some strange behavior with a DropdownChoice and a ChoiceRenderer. I
got a List of Stings as choices and a Renderer which splits these strings
into Name and Id part. Inside the Browser the value attrib and text is set
correctly. But after a submit the whole String is set in the Model. I
thought only the idValue gets set.
->
http://wicket.apache.org/apidocs/1.5/org/apache/wicket/markup/html/form/ChoiceRenderer.html
Dropdownchoice API

Whats wrong here??

Thanks Philipp

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropdownChoice-with-ChoiceRenderer-does-not-use-idValue-for-setting-Model-tp4115836p4115836.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to