Class AjaxIssueAction

java.lang.Object
webwork.action.ActionSupport
All Implemented Interfaces:
OperationContext, ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class AjaxIssueAction extends BaseEditAction
A webwork action to produce JSON with field edit html. This is an action and not a REST resource mainly because our fields API is still so heavily tied to webwork. All methods on this action should return JSON content.

Note that validation failure logic has been overridden to ensure an action view is not returned as the response is rendered directly.

Since:
5.0
See Also:
  • Constructor Details

  • Method Details

    • doDefault

      public String doDefault() throws Exception
      NOTE:
      Overrides:
      doDefault in class webwork.action.ActionSupport
      Throws:
      Exception
    • doValidation

      protected void doValidation()
      Overrides:
      doValidation in class webwork.action.ActionSupport
    • validate

      protected void validate() throws webwork.action.ResultException
      Nasty hack to prevent webwork from returning HTML.
      Overrides:
      validate in class webwork.action.ActionSupport
      Throws:
      webwork.action.ResultException - if validation failed, however Action.NONE validation result is used so no HTML is returned
    • doExecute

      protected String doExecute() throws Exception
      Overrides:
      doExecute in class webwork.action.ActionSupport
      Throws:
      Exception
    • getJson

      public String getJson()
    • isSingleFieldEdit

      public boolean isSingleFieldEdit()
    • setSingleFieldEdit

      public void setSingleFieldEdit(boolean singleFieldEdit)
    • isPrefetch

      public boolean isPrefetch()
    • setPrefetch

      public void setPrefetch(boolean prefetch)
    • setLoadFields

      public void setLoadFields(boolean loadFields)
    • setSkipScreenCheck

      public void setSkipScreenCheck(boolean skipScreenCheck)
    • setShouldUpdateCurrentProject

      public void setShouldUpdateCurrentProject(boolean shouldUpdateCurrentProject)
    • shouldUpdateCurrentProject

      public boolean shouldUpdateCurrentProject()