Examples of Ajax


Examples of juzu.plugin.ajax.Ajax

        "jquery").deploy();

    //
    Map<String, ControllerHandler> table = new HashMap<String, ControllerHandler>();
    for (ControllerHandler cm : controllerPlugin.getDescriptor().getHandlers()) {
      Ajax ajax = cm.getMethod().getAnnotation(Ajax.class);
      if (ajax != null) {
        table.put(cm.getName(), cm);
      }
    }
View Full Code Here

Examples of org.openfaces.component.ajax.Ajax

    private AjaxRendererHelper helper = new AjaxRendererHelper();

    @Override
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        Ajax ajax = (Ajax) component;
        if (ajax.isStandalone())
            encodeStandaloneInvocationMode(context, ajax);
        else
            helper.encodeAutomaticInvocationMode(context, ajax);
    }
View Full Code Here

Examples of org.openfaces.component.ajax.Ajax

* @author Dmitry Pikhulya
*/
public class AjaxRendererHelper extends OUIClientActionRendererHelper {

    protected void encodeAdditionalScript(FacesContext context, ScriptBuilder javaScript, OUIClientAction clientAction) {
        Ajax ajax = (Ajax) clientAction;
        appendMissingParameters(context, ajax, javaScript);
    }
View Full Code Here

Examples of org.openfaces.component.ajax.Ajax

        Ajax ajax = (Ajax) clientAction;
        appendMissingParameters(context, ajax, javaScript);
    }

    protected String getClientActionScript(FacesContext context, OUIClientAction clientAction) {
        Ajax ajax = (Ajax) clientAction;
        AjaxInitializer initializer = new AjaxInitializer();
        ScriptBuilder script = new ScriptBuilder();
        script.functionCall("O$._ajaxReload",
                initializer.getRenderArray(context, ajax, ajax.getRender()),
                initializer.getAjaxParams(context, ajax)).semicolon();
        if (isDisableDefaultRequired(ajax))
            script.append("return false;");
        return script.toString();
    }
View Full Code Here

Examples of org.openfaces.component.ajax.Ajax

                applyButton.setValue("Apply");
            applyButton.getAttributes().put("onclick", new ScriptBuilder().O$(compositeFilter).dot().functionCall("apply").append(";return false;").toString());
            applyButton.encodeAll(context);

            String ajaxForApplyId = Components.generateIdWithSuffix(compositeFilter, "ajaxForApply");
            Ajax ajaxForApply = (Ajax) compositeFilter.findComponent(ajaxForApplyId);
            if (ajaxForApply == null) {
                ajaxForApply = new Ajax();
                ajaxForApply.setId(ajaxForApplyId);
                ajaxForApply.setExecute(new ArrayList<String>(Collections.singletonList(":" + compositeFilter.getClientId(context))));
                ajaxForApply.setRender(new ArrayList<String>(Collections.singletonList(_for)));
                ajaxForApply.setStandalone(true);
                compositeFilter.getChildren().add(ajaxForApply);
            }
            ajaxForApply.encodeAll(context);
        }


        renderInitScript(context, compositeFilter);
View Full Code Here

Examples of org.svnadmin.entity.Ajax

  public TreeFactory getTreeFactory() {
    return DefaultTreeFactory.getInstance();
  }

  public Ajax execute(Map<String, Object> parameters) {
    Ajax result = new Ajax();
    result.setContentType(CONTENTTYPE_HTML);
    result.setResult(this.getHTML(parameters));
    return result;
  }
View Full Code Here

Examples of org.svnadmin.entity.Ajax

              throw new ServletException("not found service. name = "+serviceName);
            }
           
            Map<String,Object> parameters = this.getRequestParameters(request);
           
            Ajax ajax=service.execute(parameters);
           
            response.setHeader("Cache-Control", "no-cache");
            response.setHeader("Pragma", "No-cache");
            response.setDateHeader("Expires", 1);
            if(ajax!=null){
              if(ajax.getContentType()!=null && !"".equals(ajax.getContentType())){
                response.setContentType(ajax.getContentType());
              }else{
                response.setContentType(DEFAULT_CONTENTTYPE);
              }
              if(ajax.getResult()!=null && !"".equals(ajax.getResult())){
                out = response.getWriter();
                out.println(ajax.getResult());
              }
            }
           
            //LOG.info(result);
        } catch (Exception e) {
View Full Code Here

Examples of ru.yandex.strictweb.scriptjava.base.ajax.Ajax

            }
        });
    }

    private static void initAjax() {
      Ajax.helper = new Ajax() {
        public String getLoadingImageUrl() {
          return "http://mbo.market.yandex.ru/js/yui/assets/skins/sam/wait.gif";
        }
       
        public void onError(Throwable exc) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.