Package com.webobjects.appserver

Examples of com.webobjects.appserver.WOComponent


        QueryPageInterface newQueryPage = D2W.factory().queryPageForEntityNamed(entityName, session());
        return (WOComponent) newQueryPage;
    }
   
    public WOComponent newObjectForEntityName(String entityName) {
        WOComponent nextPage = null;
        try {
            EditPageInterface epi = D2W.factory().editPageForNewObjectWithEntityNamed(entityName, session());
            epi.setNextPage(session().context().page());
            nextPage = (WOComponent) epi;
        } catch (IllegalArgumentException e) {
View Full Code Here


        } else {
            // no object was selected
            _state = QUERY;
        }

        WOComponent result = null;
        if(selectActionDelegate!=null){
            result = selectActionDelegate.nextPage(context().page());
        }
        return result;
    }
View Full Code Here

    public WOComponent returnAction() {
        if(((ERXSession)session()).javaScriptEnabled())
            updateEOsOrdering();    
        editingContext().saveChanges();
        editingContext().revert();
        WOComponent result = nextPageFromDelegate();
      if(result == null) {
        result = super.nextPage();
      }
        if (result != null) {
            return result;
View Full Code Here

        super(name, associations, children);
    }

    @Override
    public void appendToResponse(WOResponse response, WOContext context) {
        WOComponent component = context.component();

        String formName = (String)valueForBinding("formName", component);
        String formReference  = "this.form";
        if (formName != null) {
          formReference = "document." + formName;
View Full Code Here

        editingContext().dispose();
        return result;
    }

    public WOComponent newObjectAction() {
        WOComponent result;
        if (isEntityReadOnly()) {
            throw new IllegalStateException("You cannot create new instances of " + entity().name() + "; it is read-only.");
        } else {
            _state = NEW;
            EOEnterpriseObject eo = ERXEOControlUtilities.createAndInsertObject( editingContext(), destinationEntity().name());
View Full Code Here

        lpi.setDataSource(ds);
        lpi.setNextPage(previousPageFromRequest());
    }

    public WOActionResults dynamicPageForActionNamed(String anActionName) {
        WOComponent newPage = null;

        try {
            newPage = D2W.factory().pageForConfigurationNamed(anActionName, session());
        } catch (IllegalStateException ex) {
            // this will get thrown when a page simply isn't found. We don't really need to report it
View Full Code Here

  public Integer tzRawOffset() {
    return (Integer)((NSDictionary)zones.valueForKey(timeZoneId)).valueForKey(OFF_KEY);
  }

  public WOComponent timeDisplayNow() {
    WOComponent nextPage = pageWithName("TimeDisplayNow");
    nextPage.takeValueForKey(timeZoneId, "timeZoneID");
    return nextPage;
  }
View Full Code Here

    }
   
    // Actions
   
    public WOComponent logout() {
        WOComponent redirectPage = pageWithName("WORedirect");
        ((WORedirect) redirectPage).setUrl(D2W.factory().homeHrefInContext(context()));
        session().terminate();
        return redirectPage;
    }
View Full Code Here

        super(aContext);
    }

    public String manipulatedEntityName() {
        if (_manipulatedEntityName == null) {
            WOComponent currentPage = context().page();
            _manipulatedEntityName = D2W.entityNameFromPage(currentPage);
        }
        return _manipulatedEntityName;
    }
View Full Code Here

        QueryPageInterface newQueryPage = D2W.factory().queryPageForEntityNamed(_manipulatedEntityName, session());
        return (WOComponent) newQueryPage;
    }

    public WOComponent newObjectAction() {
        WOComponent nextPage = null;
        try {
            EditPageInterface epi = D2W.factory().editPageForNewObjectWithEntityNamed(_manipulatedEntityName, session());
            epi.setNextPage(context().page());
            nextPage = (WOComponent) epi;
        } catch (IllegalArgumentException e) {
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.