For a uni assignment, I'm doing a JSF webapp to play poker. Cards in a player's hand are displayed by images. What's would be the "cleanest" way of mapping the card suit/rank to the URL of the associated image?
I'm currently leaning towards either using whatever Card#toString returns, or handling this in the backing bean, it's just that neither the model or the controller seems the "right" place to handle this.
(This question is somewhat subjective, but then again, so is every design question. I'm looking for some obvious solution that I missed rather than a discussion.)