You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Brian Mulholland <bl...@gmail.com> on 2012/05/02 14:17:23 UTC

Wicket ListMultipleChoice or DropDownChoice with code/decode

For some reason I am finding that most Wicket examples have select box
examples that offer single dimension arrays.  But most lookup
selection use cases I've ever encountered use a short key or 'code'
that the user does not see, and then a longer descriptive 'decode' for
the user.  The classic being a state lookup using the postal code (MD,
NY, FL, etc) but showing the user a state name (Maryland, New York,
Florida respectively).  What is the usual way to do this?

Brian Mulholland
"For every complex problem, there is an answer that is clear, simple and wrong."
--H.L. Mencken
"Politics is the art of looking for trouble, finding it everywhere,
diagnosing it incorrectly, and applying the wrong remedies."
--Groucho Marx

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


Re: Wicket ListMultipleChoice or DropDownChoice with code/decode

Posted by Sven Meier <sv...@meiers.net>.
Hi,

take a look at FormInput.LocaleDropDownChoice or DropDownChoicePage in 
wicket-examples

Sven

On 05/02/2012 02:17 PM, Brian Mulholland wrote:
> For some reason I am finding that most Wicket examples have select box
> examples that offer single dimension arrays.  But most lookup
> selection use cases I've ever encountered use a short key or 'code'
> that the user does not see, and then a longer descriptive 'decode' for
> the user.  The classic being a state lookup using the postal code (MD,
> NY, FL, etc) but showing the user a state name (Maryland, New York,
> Florida respectively).  What is the usual way to do this?
>
> Brian Mulholland
> "For every complex problem, there is an answer that is clear, simple and wrong."
> --H.L. Mencken
> "Politics is the art of looking for trouble, finding it everywhere,
> diagnosing it incorrectly, and applying the wrong remedies."
> --Groucho Marx
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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