Re: Dynamically generating multiple sets of radio buttons

2018-03-03 Thread Dave Weis
That was it! It's now putting key-value pairs in the map obtained by getVariation and they appear when I get to the execute method. 08:19:35.682 ERROR CartAction - getVariation was called 08:19:35.698 ERROR CartAction - getVariation was called 08:19:36.086 DEBUG CartAction - cart action execute 08

Re: Dynamically generating multiple sets of radio buttons

2018-03-02 Thread Yasser Zamani
On 2/27/2018 4:37 PM, Dave Weis wrote: > value="1500"/>HOTTER > public void setVariation(HashMap variationItem){ > > logger.error("setVariation was called with variations"); > > for (Map.Entry entry : variationItem.entrySet()) { > String key = entry.getKey(); > Str

Re: Dynamically generating multiple sets of radio buttons

2018-02-27 Thread Dave Weis
I've distilled my issue down a bit. Now I can't get my indexed setters to be called with the values from the page. This is in my HTML created with the radio tag: HOT HOTTER Small Medium Large My setter in the destination action is: public void setVariation(HashMap variationItem

Re: Dynamically generating multiple sets of radio buttons

2018-02-25 Thread Dave Weis
I'm trying to make a form that can contain an arbitrary number of attribute choices. Think of a tshirt with color and size. I have a Product that contains Variations (size, color) that contain VariationItems (blue, XL). The variation can be either a dropdown or a radio button set. we have

Re: Dynamically generating multiple sets of radio buttons

2018-02-25 Thread Dave Newton
It’s not entirely clear to me what you’re asking. `getItemList` will return whatever it returns—if the logic for what should return lies in the view layer then it’s an architectural problem. If you need to return two lists then you should have two list getters. If the view layer *presentation* of