org.apache.wicket.markup.html.WebPage.getRequest()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中org.apache.wicket.markup.html.WebPage.getRequest()方法的一些代码示例,展示了WebPage.getRequest()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebPage.getRequest()方法的具体详情如下:
包路径:org.apache.wicket.markup.html.WebPage
类名称:WebPage
方法名:getRequest

WebPage.getRequest介绍

暂无

代码示例

代码示例来源:origin: apache/wicket

/**
   * Prevents page from get dirty inside an AJAX request.
   */
  @Override
  public final void dirty(boolean isInitialization)
  {
    Request request = getRequest();
    if (isInitialization == false && request instanceof WebRequest &&
      ((WebRequest)request).isAjax())
    {
      return;
    }
    super.dirty(isInitialization);
  }
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
   * Prevents page from get dirty inside an AJAX request.
   */
  @Override
  public final void dirty(boolean isInitialization)
  {
    Request request = getRequest();
    if (isInitialization == false && request instanceof WebRequest &&
      ((WebRequest)request).isAjax())
    {
      return;
    }
    super.dirty(isInitialization);
  }
}

代码示例来源:origin: micromata/projectforge

private void internalLogin(final WebPage page, final PFUserDO user)
{
 final UserContext userContext = new UserContext(PFUserDO.createCopyWithoutSecretFields(user),
   getUserGroupCache());
 ((MySession) page.getSession()).login(userContext, page.getRequest());
 UserFilter.login(WicketUtils.getHttpServletRequest(page.getRequest()), userContext);
}

代码示例来源:origin: org.opensingular/singular-form-wicket

@Override
protected void respond(AjaxRequestTarget target) {
  IRequestParameters requestParameters = webPage.getRequest().getRequestParameters();
  String text = requestParameters.getParameterValue(INNER_TEXT).toString();
  Integer index = requestParameters.getParameterValue(INDEX).toInt();
  String selected = requestParameters.getParameterValue(SELECTED).toString();
  RichTextAction richTextAction = viewSupplier.get().getTextActionList().get(index);
  if (richTextAction != null) {
    if (richTextAction.getForm().isPresent()) {
      configureModal(target, text, index, selected, richTextAction);
    } else {
      RichTextContext richTextContext = returnRichTextContextInitialized(richTextAction, selected, text);
      richTextAction.onAction(richTextContext, Optional.empty());
      changeValueRichText(target, richTextContext, richTextAction.getType());
    }
  }
}

代码示例来源:origin: micromata/projectforge

+ ":"
  + userService.getStayLoggedInKey(user.getId()));
cookieService.addStayLoggedInCookie(WicketUtils.getHttpServletRequest(page.getRequest()), WicketUtils.getHttpServletResponse(page.getResponse()), cookie);

相关文章