Package de.innovationgate.wgpublisher.webtml.utils

Examples of de.innovationgate.wgpublisher.webtml.utils.AjaxActionDefinition


                        // the sessionflag is handled and removed in root-tag
                        request.getSession().setAttribute(sessionKey + ".event.SessionWasNew", new Boolean(true));
                    }

                    // create action definition
                    AjaxActionDefinition actionDef = new AjaxActionDefinition(formaction, ajaxcallid);
                    actionDef.setTmlformSessionKey(sessionKey);
                    if (ajaxgraydiv != null && !ajaxgraydiv.equals("#null#")) {
                        actionDef.setGraydiv(Boolean.valueOf(ajaxgraydiv).booleanValue());
                    }
                    if (ajaxmode != null && !ajaxmode.equals("#null#")) {
                        actionDef.setMode(ajaxmode);
                    }

                    // render response
                    response.setContentType("text/html");
                    PrintWriter out = response.getWriter();
                    out.write("<script type=\"text/javascript\">");
                    out.write("parent.WGA.ajax.formCallback(" + actionDef.toJavaScriptObject() + ");");
                    out.write("</script>");
                }
            }
            catch (FileUploadException e) {
                getCore().getLog().error("Error parsing multipart-data from ajaxcall: " + e.getMessage());
View Full Code Here


                       
        String id = (String) this.getOption(Include.OPTION_AJAX_DIVTAG_ID);       
        String strAction = actionLink.getJavascriptLink(getCore(), getStatus().getRelevantForm());
   
       
        AjaxActionDefinition actionDef = new AjaxActionDefinition(strAction, id);
       
        //F00004242
        if (ajaxMode != null && ajaxMode.equalsIgnoreCase(ActionBase.AJAX_MODE_NO_PORTLET_REFRESH)) {
            actionDef.setGraydiv(false);
            actionDef.setMode(ActionBase.AJAX_MODE_NO_PORTLET_REFRESH);            
        }
       
       
        return "WGA.ajax.action(" + actionDef.toJavaScriptObject() + ")";                  
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.wgpublisher.webtml.utils.AjaxActionDefinition

Copyright © 2018 www.massapicom. 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.