Package com.webobjects.appserver

Examples of com.webobjects.appserver.WOComponent


    /**
     * Overridden because the action bound should not return null.
     */
    @Override
    public WOComponent queryAction() {
        WOComponent nextPage = super.queryAction();
        if(nextPage == null) {
            nextPage = context().page();
        }
        return nextPage;
    }
View Full Code Here


    /**
     * Overridden because the action bound should not return null.
     */
    @Override
    public WOComponent selectAction() {
        WOComponent nextPage = super.selectAction();
        if (ERXValueUtilities.booleanValueWithDefault(d2wContext().valueForKey("returnOnSelect"), false)) {
          nextPage = returnAction();
        }
        if(nextPage == null) {
            nextPage = context().page();
View Full Code Here

        }
        return nextPage;
    }
   
    public WOComponent editObjectInRelationship(){
        WOComponent result = null;
        if(browserSelections != null && browserSelections.count() == 1) {
            String editConfigurationName = (String)d2wContext().valueForKey("editConfigurationName");
            EditPageInterface epi;
            if(editConfigurationName != null && editConfigurationName.length() > 0) {
                epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed(editConfigurationName,session());
View Full Code Here

        _invoke = (WOAssociation)associations.objectForKey("invoke");
    }

    @Override
    public void appendToResponse(WOResponse aResponse, WOContext aContext)  {
        WOComponent aComponent = aContext.component();
        _invoke.valueInComponent(aComponent);
    }
View Full Code Here

        _invoke.valueInComponent(aComponent);
    }

    @Override
    public void takeValuesFromRequest(WORequest aRequest, WOContext aContext)  {
        WOComponent aComponent = aContext.component();
        _invoke.valueInComponent(aComponent);
    }
View Full Code Here

        _invoke.valueInComponent(aComponent);
    }

    @Override
    public WOActionResults invokeAction(WORequest aRequest, WOContext aContext)  {
        WOComponent aComponent = aContext.component();
        _invoke.valueInComponent(aComponent);
        return null;
    }
View Full Code Here

        d2wcontext.setTask(s);
        EOEntity eoentity = s1 != null ? EOModelGroup.defaultGroup().entityNamed(s1) : null;
        if (eoentity == null && s1 != null && !s1.equals("") && !s1.equals("*all*")) { throw new IllegalArgumentException(
                "Could not find entity named " + s1); }
        d2wcontext.setEntity(eoentity);
        WOComponent wocomponent = WOApplication.application().pageWithName(d2wcontext.pageName(), wocontext);
        if (wocomponent instanceof D2WComponent) {
            ((D2WComponent) wocomponent).setLocalContext(d2wcontext);
        }
        return wocomponent;
    }
View Full Code Here

        newContext.takeValueForKey("printerFriendly", "forcedSubTask");
        newContext.takeValueForKey(context.valueForKey("pageName"), "existingPageName");
        newContext.takeValueForKey(context.valueForKey("subTask"), "existingSubTask");
        newContext.takeValueForKey(context.valueForKey("pageConfiguration"), "pageConfiguration");
        newContext.takeValueForKey(context.entity(), "entity");
        WOComponent result = WOApplication.application().pageWithName((String) newContext.valueForKey("pageName"), session.context());
        ((D2WPage) result).setLocalContext(newContext);
        return result;
    }
View Full Code Here

        newContext.takeValueForKey("csv", "forcedSubTask");
        newContext.takeValueForKey(context.valueForKey("pageName"), "existingPageName");
        newContext.takeValueForKey(context.valueForKey("subTask"), "existingSubTask");
        newContext.takeValueForKey(context.valueForKey("pageConfiguration"), "pageConfiguration");
        newContext.takeValueForKey(context.entity(), "entity");
        WOComponent result = WOApplication.application().pageWithName((String) newContext.valueForKey("pageName"), session.context());
        ((D2WPage) result).setLocalContext(newContext);
        return result;
    }
View Full Code Here

        myCheckRules();
        D2WContext newContext = ERD2WContext.newContext(session);
        newContext.setTask(task);
        newContext.setEntity(_entityNamed(entityName, session));
        newContext.takeValueForKey(subtask, "subTask");
        WOComponent result = WOApplication.application().pageWithName((String) newContext.valueForKey("pageName"), session.context());
        ((D2WPage) result).setLocalContext(newContext);
        return result;
    }
View Full Code Here

TOP

Related Classes of com.webobjects.appserver.WOComponent

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.