com.ibm.commerce.struts

Class AjaxComponentServiceAction

  • java.lang.Object
    • org.apache.struts.action.Action
      • com.ibm.commerce.struts.AjaxAction
        • com.ibm.commerce.struts.AjaxComponentServiceAction


  • public class AjaxComponentServiceAction
    extends com.ibm.commerce.struts.AjaxAction
    The Ajax Component Service Action class provides a Struts Action implementation that can be used to invoke a component service for an Ajax style request. The configured parameter must be of the form "id.clientMethod" where "id" is the configured component ID and "clientMethod" is the web friendly method on the component client facade that will be used to invoke the component service. The client facade must be configured in the struts-config.xml file using the ComponentPlugIn plug-in implementation.

    The following example demonstrates a possible component client facade configuration:

     <plug-in className="com.ibm.commerce.struts.ComponentPlugIn">
       <set-property property="componentId" value="order"/>
       <set-property property="clientFacadeClassName" value="com.ibm.commerce.order.facade.client.OrderFacadeClient"/>
     </plug-in>
     

    This component facade declaration could then be referenced in an action mapping declaration:

     <action
         parameter="order.submitOrder"
         path="/AjaxSubmitOrder" type="com.ibm.commerce.struts.AjaxComponentServiceAction">
     </action>
     

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      AjaxComponentServiceAction()
      Construct new instance of the component service action.
    • Method Summary

      • Methods inherited from class com.ibm.commerce.struts.AjaxAction

        execute
      • Methods inherited from class org.apache.struts.action.Action

        execute, getServlet, setServlet
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AjaxComponentServiceAction

        public AjaxComponentServiceAction()
        Construct new instance of the component service action.