/src/main/java/com/googlecode/struts2yuiplugin/components/XHRComponent.java

http://struts2yuiplugin.googlecode.com/ · Java · 33 lines · 12 code · 6 blank · 15 comment · 0 complexity · cc127734d3cb4d312c9bdeaa48009943 MD5 · raw file

  1. package com.googlecode.struts2yuiplugin.components;
  2. import org.apache.struts2.views.annotations.StrutsTagAttribute;
  3. /**
  4. * Properties common to components that perform XHR operations
  5. */
  6. public interface XHRComponent {
  7. /**
  8. * An alterative javascript callback function for the YUI Connection Manager response
  9. */
  10. @StrutsTagAttribute(description = "An alternative javascript callback for the YUI Connection Manager's response", required = false)
  11. void setCallback(String callback);
  12. /**
  13. * The ID Of the form to include in the request
  14. */
  15. @StrutsTagAttribute(description = "The ID of the form to include in the request", required = false)
  16. void setFormId(String formId);
  17. /**
  18. * If optional the href to send the request to. I not provided, the form's action will used
  19. */
  20. @StrutsTagAttribute(description = "The URL to make the request to if not than the form's action", required = false, rtexprvalue = true)
  21. void setHref(String href);
  22. /**
  23. * HTTP method to use when HREF is specified. Default is GET
  24. */
  25. @StrutsTagAttribute(description = "The HTTP method to use", required = false, defaultValue = "GET")
  26. void setMethod(String method);
  27. }