Package com.webobjects.appserver

Examples of com.webobjects.appserver.WOComponent


  }

  @Override
  public void appendToResponse(WOResponse response, WOContext context) {
    super.appendToResponse(response, context);
    WOComponent component = context.component();
    NSArray updateContainerIDs = (NSArray) _updateContainerIDs.valueInComponent(component);
    if (updateContainerIDs != null && updateContainerIDs.count() > 0) {
      AjaxUtils.appendScriptHeader(response);
      Enumeration updateContainerIDEnum = updateContainerIDs.objectEnumerator();
      while (updateContainerIDEnum.hasMoreElements()) {
View Full Code Here


            if (eoentity == null && entityName != null && !entityName.equals("")
                && !entityName.equals("*all*"))
                throw new IllegalArgumentException("Could not find entity named " + entityName);
            d2wContext().setTask(task);
            d2wContext().setEntity(eoentity);
            WOComponent wocomponent = WOApplication.application().pageWithName(d2wContext().pageName(), session().context());
            if (wocomponent instanceof D2WComponent)
                ((D2WComponent) wocomponent).setLocalContext(d2wContext());
            return wocomponent;
        }
View Full Code Here

        protected WOComponent pageForConfigurationNamed(String pageConfiguration) {
            D2WModel.defaultModel().checkRules();
            d2wContext().setDynamicPage(pageConfiguration);
            if (d2wContext().entity() == null || d2wContext().task() == null)
                throw new IllegalArgumentException("Either no entity or task for pc: " + pageConfiguration);
            WOComponent wocomponent = WOApplication.application().pageWithName(d2wContext().pageName(), session().context());
            if (wocomponent instanceof D2WComponent)
                ((D2WComponent) wocomponent).setLocalContext(d2wContext());
            return wocomponent;
        }
View Full Code Here

        @Override
        public WOComponent firstPage() {
            return runWithPageConfiguration((String)d2wContext().valueForKey("pageConfiguration"));
        }
        public WOComponent runWithPageConfiguration(String value) {
            WOComponent page = pageForConfigurationNamed(value);
            page.takeValueForKey(this, "nextPageDelegate");
            return page;
        }
View Full Code Here

            super();
        }
       
        @Override
        public WOComponent runWithPageConfiguration(String value) {
            WOComponent start = super.runWithPageConfiguration(value);
            start.takeValueForKey(object(), "object");
            return start;
        }
View Full Code Here

            super();
        }
       
        @Override
        public WOComponent runWithPageConfiguration(String value) {
            WOComponent start = super.runWithPageConfiguration(value);
            EOEnterpriseObject eo;
            EOEditingContext ec = ERXEC.newEditingContext();
            //this.log.debug("runWithPageConfiguration: pc <" + value + "> - " + d2wContext().entity());
            eo = EOUtilities.createAndInsertInstance(ec, d2wContext().entity().name());
            setObject(eo);
            start.takeValueForKey(object(), "object");
            return start;
        }
View Full Code Here

    super(name, associations, template);
  }

  @Override
  public NSData responseAsPdf(WOResponse response, WOContext context) {
    WOComponent component = context.component();
   
    NSMutableDictionary<String, Object> config = new NSMutableDictionary<String, Object>();
      for (Map.Entry<String, WOAssociation> entry : associations().entrySet()) {
        Object value = entry.getValue().valueInComponent(component);
        if (value != null) {
View Full Code Here

  }

  @Override
   public void appendAttributesToResponse(WOResponse woresponse, WOContext wocontext) {
     super.appendAttributesToResponse(woresponse, wocontext);
     WOComponent component = wocontext.component();
     StringBuilder style = new StringBuilder();
     if(_style != null) {
       String s = (String) _style.valueInComponent(component);
       if(s != null) {
         style.append(s);
View Full Code Here

     * <span class="ja">アクション実行</span>
     */
    public WOComponent invokeAction() {

            // Set the result of the link, either an action from the parent or a page
            WOComponent anActionResult = (WOComponent)_WOJExtensionsUtil.valueForBindingOrNull("action",this);

            if ((anActionResult==null) && hasBinding("pageName")) {
                    String aPageName = (String)_WOJExtensionsUtil.valueForBindingOrNull("pageName",this);
                    anActionResult = pageWithName(aPageName);
            }
View Full Code Here

    return options;
  }

  @Override
  public void appendToResponse(WOResponse response, WOContext context) {
    WOComponent component = context.component();
    String id;
    if (_idAssociation == null) {
      id = ERXWOContext.safeIdentifierName(context, false);
    }
    else {
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.