on 06-25-2015 4:54 PM
Hi,
In B2B can some one explain how form.getCartEntries() is getting the values in "/cart/addGrid" in the add tocartcontroller. Where actually the form.setcatentries() is used.I am trying to add multiple products to ct once. I understood that the on change of qty in the Grid, the functions from focusin, focusout were invoked to enable or disable the Add to cart button from acc.productorderform.js.I saw this toJSON: function(gridForm, skipZeroQuantity) {}, which is responsible for having the values in cartEntries but not able to understand the complete flow.I have multiple text boxes for productId and qty. with the code available for orderform ,guide me how can I retrieve form.getCartEntries() values in my custom controller.
This is handled by the spring framework for you.
Read through this and it becomes clear: http://viralpatel.net/blogs/spring-3-mvc-handling-forms/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.