In my Java “restaurant menu” GUI application for my class we have to allow users to select their food from a menu then order it. Right now you can select from a few different foods on radio buttons. I was wondering if there’s a standard way to translate what’s on the radio button (ie “Milk”) to some sort of data (in this case price, such as 2.5).
Share
Would seem better to me to assign a product id to the radio buttons, and then in your controller invoke your backend to fetch the product(price).