Package org.opencustomer.framework.webapp.action

Examples of org.opencustomer.framework.webapp.action.JumpBean


   
    @Override
    protected ActionForward getActionForward(ActionMapping mapping, HttpServletRequest request, HttpServletResponse response)
    {
        if(request.getAttribute(Globals.JUMP_KEY) != null) {
            JumpBean jump = (JumpBean)request.getAttribute(Globals.JUMP_KEY);
           
            PanelStack panelStack = Panel.getPanelStack(request);
            if(panelStack.peek(2).getType().equals(Panel.Type.EDIT)) {
                EditPanel panel = (EditPanel)panelStack.peek(2);
               
                return Panel.getForward(panel.getAction(Action.Type.SAVE).getAction(), request);
            } else if(panelStack.peek(2).getType().equals(Panel.Type.LIST)) {
               
                return jump.getForward();
            }
           
        }

       
View Full Code Here


        if(request.getAttribute("external_company_id") != null) {
            return mapping.findForward("jumpCompany");
        } else if(request.getAttribute("external_person_id") != null) {
            return mapping.findForward("jumpPerson");
        } else if(request.getAttribute(Globals.JUMP_KEY) != null) {
            JumpBean jump = (JumpBean)request.getAttribute(Globals.JUMP_KEY);
            return jump.getForward();
        } else {
            return null;
        }
    }
View Full Code Here

        } else if(form.getDoJumpReference().isSelected()) {
            if (log.isDebugEnabled())
                log.debug("jump reference");

            JobVO job = (JobVO)getPanel().getEntity();
            JumpBean jump = null;
           
            if(job.getReferencedPerson() != null) {
                jump = new JumpBean(job.getReferencedPerson(), new ActionForward(Panel.getForward("/crm/person/edit", request)));
            } else if(job.getReferencedCompany() != null) {
                jump = new JumpBean(job.getReferencedCompany(), new ActionForward(Panel.getForward("/crm/company/edit", request)));
            }

            if(jump != null) {
                request.setAttribute(Globals.JUMP_KEY, jump);
                return Panel.getForward(getPanel().getAction(Action.Type.SAVE).getAction(), request);
View Full Code Here

        Integer extPersonId = (Integer) request.getAttribute("external_person_id");
        if (extPersonId != null)
            setId(extPersonId.intValue());
       
        if(request.getAttribute(Globals.JUMP_KEY) != null) {
            JumpBean jump = (JumpBean) request.getAttribute(Globals.JUMP_KEY);
            if(jump.getEntity() instanceof PersonVO) {
                setId(jump.getEntity().getId());
            }
        }
    }
View Full Code Here

        if(request.getAttribute("external_person_id") != null)
            return mapping.findForward("jumpPerson");
        else if(request.getAttribute("external_company_id") != null)
            return mapping.findForward("jumpCompany");
        else if(request.getAttribute(Globals.JUMP_KEY) != null) {
            JumpBean jump = (JumpBean)request.getAttribute(Globals.JUMP_KEY);
            return jump.getForward();
        } else
            return null;
    }
View Full Code Here

        Integer extCompanyId = (Integer) request.getAttribute("external_company_id");
        if (extCompanyId != null)
            setId(extCompanyId.intValue());
       
        if(request.getAttribute(Globals.JUMP_KEY) != null) {
            JumpBean jump = (JumpBean) request.getAttribute(Globals.JUMP_KEY);
            if(jump.getEntity() instanceof CompanyVO) {
                setId(jump.getEntity().getId());
            }
        }

    }
View Full Code Here

TOP

Related Classes of org.opencustomer.framework.webapp.action.JumpBean

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.