Struts Actions AjaxComponentServiceAction
Maybe your like
Pages
- Home
- WCS configuration !
- Websphere Commerce Client's list B2B B2C
- SQL - WCS
Friday, February 28, 2014
Struts actions AjaxComponentServiceAction !!
This is not your usual forward mapping to a JSP or an action mapping to a command This is an example of calling a component service from an ajax style request and this must be define a struts action in struts-config-ext.xml. Plese find below a snippet. <action parameter="member.updateAddressForPerson" path="/AjaxPersonChangeServiceAddressUpdate" type="com.ibm.commerce.struts.AjaxComponentServiceAction"> <set-property property="authenticate" value="0:0"/> <set-property property="https" value="0:0"/> <set-property property="csrfProtected" value="0:0"/> </action> e.g. Service actions above can be used in refresh areas example below. After completion of the command, the struts action forwards the JSP file that generates a JSON , with response property containing success or failure details. wc.service.declare({ id: "AjaxUpdateAddressForPerson", actionId: "AjaxUpdateAddressForPerson", url: getAbsoluteURL() + "AjaxPersonChangeServiceAddressUpdate", formId: "" /** * hides all the messages and the progress bar * @param (object) serviceResponse The service response object, which is the * JSON object returned by the service invocation */ ,successHandler: function(serviceResponse) { AddressHelper.updateOrderAfterAddressUpdate(); MessageHelper.hideAndClearMessage(); cursor_clear(); } /** * display an error message * @param (object) serviceResponse The service response object, which is the * JSON object returned by the service invocation */ ,failureHandler: function(serviceResponse) { if (serviceResponse.errorMessage) { MessageHelper.displayErrorMessage(serviceResponse.errorMessage); } else { if (serviceResponse.errorMessageKey) { MessageHelper.displayErrorMessage(serviceResponse.errorMessageKey); } } cursor_clear(); } }), Reference: For more information on checkout controls, please review IBM infocenter. Labels: AjaxComponentServiceAction2 comments:
Termochimeneas de leñaNovember 10, 2020 at 12:35 AMMe encanta todo lo que cuentas en el post, es muy interesante y me encantaría que explicaras más sobre el tema.
ReplyDeleteReplies- Reply
ABOGADOS ACCIDENTE TRAFICO ALBACETENovember 10, 2020 at 1:08 AMMuy chulo el artículo, contiene información muy interesante, gracias por tu interés
ReplyDeleteReplies- Reply
Total Pageviews
Search My Blog
Blog Archive
- ► 2016 (5)
- ► June (1)
- ► May (1)
- ► February (2)
- ► January (1)
- ► 2015 (12)
- ► October (1)
- ► September (1)
- ► May (3)
- ► April (2)
- ► March (3)
- ► January (2)
- ► 2013 (17)
- ► November (3)
- ► October (3)
- ► July (4)
- ► June (1)
- ► April (2)
- ► March (1)
- ► February (1)
- ► January (2)
- ► 2012 (28)
- ► December (1)
- ► November (4)
- ► September (4)
- ► August (2)
- ► July (1)
- ► June (2)
- ► May (2)
- ► April (2)
- ► March (3)
- ► February (5)
- ► January (2)
- ► 2011 (37)
- ► December (2)
- ► November (1)
- ► October (4)
- ► September (4)
- ► August (5)
- ► July (5)
- ► June (1)
- ► May (3)
- ► April (4)
- ► March (1)
- ► February (3)
- ► January (4)
- ► 2010 (24)
- ► November (6)
- ► October (4)
- ► August (2)
- ► July (6)
- ► June (2)
- ► March (1)
- ► January (3)
- ► 2009 (1)
- ► December (1)
Developers LifeLine
- Top App Development Company, San Diego
- Cross Reference bean tables commands
- Test Java Code Online
- Eclipse Platform Tips
- Regex Tester
- Funny 404 errors
- Excel to SQL online tool
- URL Encoding
- JSON Validator
- Online XML Validation
- Generate HTML escape CHARS
Subscribe To
Top Comments
Loading...Tag » Com.ibm.commerce.struts.ajax Action
-
AjaxComponentServiceAction
-
Package Com.ruts
-
Client Library Enablement For Struts
-
Implementing AjaxAction Based Commands - Wcs
-
Introduction To The Struts Framework With WebSphere Commerce
-
February 2014 - Amazing World Of Commerce
-
STRUTS Action-mapping Properties - WCS Tips
-
The AJAX Handler Will Be /AjaxPPTGiftCardsBalanceEnquiry - Wcs
-
[PDF] WebSphere Commerce Best Practices In Web 2.0 Store
-
[PDF] WebSphere Commerce Line-of-Business Tooling Customization
-
Wcs | Commerce Blog
Termochimeneas de leña