Hi everyone,
I have just recently bought the book yesterday (as the time of writing). I haved finished chap 1 which is very good and now I'm heading to chap 2. However, I'm stucked with the code in thymeleaf template. Would someone explain to me:
1. The only way to get access to the private field of an object - as far as I know - is thru constructor, getter, or setter. But in the code it just simply point to the field of the object by using ${ingredient.id} or *{name} for the selected object w/o any getters. How can this be? Would so help me please?? :[
2. I'm still very confused about when to use th:value and when to use th:field. Anyone, please  (
Thank you very much for reading my post. Any help or explanation would be really appreciate. Thanks
|