Examples of Flash


Examples of org.j2cms.model.config.Flash

  }
 
  @Test public void save(){
   
    for(int i=1;i<6;i++){
      Flash flash = new Flash();
      flash.setTitle("图片"+i);
      flash.setImageURL("/template/j2cms/images/imageNews/"+i+".jpg");
      flash.setLinkURL("http://www.yetnet.cn");
      flashService.save(flash);
    }
   
  }
View Full Code Here

Examples of play.mvc.Scope.Flash

//        }
//        return l;
//    }

    private void keepFlash_() {
        Flash f = Flash.current();
        if (f != null) f.keep();
    }
View Full Code Here

Examples of play.mvc.Scope.Flash

   * this takes place before the flash and session save in the ActionInvoker
   */
  @Override
  public void onActionInvocationResult(Result result) {
//    logDuration("onActionInvocationResult");
    Flash fl = Flash.current();
    if (RenderResultCache.shouldIgnoreCacheInCurrentAndNextReq()) {
      fl.put(RenderResultCache.READ_THRU_FLASH, "yes");
    } else {
      fl.remove(RenderResultCache.READ_THRU_FLASH);
      fl.discard(RenderResultCache.READ_THRU_FLASH);
    }

    // always reset the flag since the thread may be reused for another
    // request processing
    RenderResultCache.setIgnoreCacheInCurrentAndNextReq(false);
View Full Code Here

Examples of play.mvc.Scope.Flash

  /**
   * this takes place before the flash and session save in the ActionInvoker
   */
  @Override
  public void onActionInvocationResult(Result result) {
    Flash fl = Flash.current();
    if (RenderResultCache.shouldIgnoreCacheInCurrentAndNextReq()) {
      fl.put(RenderResultCache.READ_THRU_FLASH, "yes");
    } else {
      fl.remove(RenderResultCache.READ_THRU_FLASH);
      fl.discard(RenderResultCache.READ_THRU_FLASH);
    }

    // always reset the flag since the thread may be reused for another
    // request processing
    RenderResultCache.setIgnoreCacheInCurrentAndNextReq(false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.