1 2 | <h1>View Cart</h1> <a href="${flowExecutionUrl}&_eventId=submit">Submit</a> |
1 2 | <h1>Order</h1> <a href="${flowExecutionUrl}&_eventId=confirm">Confirm</a> |
1 2 | <h1>Order Confirmed</h1> <a href="${flowExecutionUrl}&_eventId=returnToIndex">Return to index</a> |
1 2 | <h1>Hello!</h1><br/> <a href="shopping.do">View Cart</a> |
1 2 3 | <transition on="submit"> <evaluate expression="validator.validate()" /> </transition> |
1 2 3 4 5 6 | <view-state id="viewCart" view="viewCart" > <on-render> <evaluate expression="productService.getProducts()" result="viewScope.products"/> </on-render> </view-state> |
1 2 3 4 | <action-state id="addToCart"> <evaluate expression="cart.addItem(productService.getProduct(productId))"/> <transition to="productAdded"/> </action-state> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |