MHL3060 / bentux

Automatically exported from code.google.com/p/bentux
0 stars 0 forks source link

The logic for ingredient (let discuss on this) #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From what you wrote for me,

complete the ingredientform.jsp and ingredientFormController.java

1)."""" add a select product drop down to the form. I preferred the first field 
is the product field."""" 
if the person click add ingredient from the product list, the product should be 
preset in this 
ingredient form.

2). Add the Add ingredient link in the productlist.  the link show only shows 
up when the product is 
the food product.

my thought is how can we have the product preset if that particular product 
hasn't been added.

Original issue reported on code.google.com by lhkh...@gmail.com on 1 Oct 2009 at 10:09

GoogleCodeExporter commented 9 years ago
Hi, 

I have more thought about the ingredient page. Would it be better we add 
ingredients as the default data i.e. fat, 
saturated fat, protein, salt....etc. So like, instead of having users to enter 
let say FAT to the database, a user now 
will have choose one of the provided ingredients from a DROPDOWN menu??, and 
input number of gram and the 
percentage and link to the product. The reason is 1 product has many 
ingredients, 1 ingredient has X number of 
grams of ingredient and X percentage of amount per serving. just thinking how 
would we handle that db 
relationship. what do you think??

Original comment by lhkh...@gmail.com on 4 Oct 2009 at 4:58

GoogleCodeExporter commented 9 years ago
Issue 2 has been merged into this issue.

Original comment by lhkh...@gmail.com on 4 Oct 2009 at 5:03

GoogleCodeExporter commented 9 years ago
Fat. proteins etc. are not ingredients. these are nutritions.

Original comment by benli3...@gmail.com on 5 Oct 2009 at 5:23

GoogleCodeExporter commented 9 years ago
ingredients will have so many combination. if we hard code it.
it will become a huge form.

Original comment by benli3...@gmail.com on 5 Oct 2009 at 5:36

GoogleCodeExporter commented 9 years ago
one thing needs to be clarified, i have always been thinking ingredients as 
NUTRITION. IF hard coding all the 
ingredients will be an endless job as there could be a million of ingredients 
out there. However, if we ever 
developing the nutrition facts for a product, we can probably hard code all the 
data. Maybe I finally figure out 
there seem to be a wall in between when we are talking about INGREDIENT.

Original comment by lhkh...@gmail.com on 5 Oct 2009 at 2:50

GoogleCodeExporter commented 9 years ago
will put it on into the next release.

Original comment by lhkh...@gmail.com on 23 Nov 2009 at 4:21