org.apache.wicket.request.Request.getRequestParameters()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(8.2k)|赞(0)|评价(0)|浏览(198)

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

Request.getRequestParameters介绍

暂无

代码示例

代码示例来源:origin: org.odlabs.wiquery/wiquery-jquery-ui

@Override
public final void call(AjaxRequestTarget target, Component source)
{
  IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters();
  String[] selectedItems = req.getParameterValue("selectedItems").toString("").split(",");
  List<Component> selectedComponents = new ArrayList<Component>();
  for (String curId : selectedItems)
    if (!curId.isEmpty())
      selectedComponents.add(findComponentById(curId));
  selection(target, source, selectedComponents);
}

代码示例来源:origin: org.wicketstuff.wiquery/wiquery-jquery-ui

@Override
public final void call(AjaxRequestTarget target, Component source)
{
  IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters();
  String[] selectedItems = req.getParameterValue("selectedItems").toString("").split(",");
  List<Component> selectedComponents = new ArrayList<>();
  for (String curId : selectedItems)
    if (!curId.isEmpty())
      selectedComponents.add(findComponentById(curId));
  selection(target, source, selectedComponents);
}

代码示例来源:origin: org.opensingular/singular-server-commons

@Override
protected boolean isActive() {
  return RequestCycle.get()
      .getRequest()
      .getRequestParameters()
      .getParameterValue(ActionContext.ITEM_PARAM_NAME)
      .toString("")
      .equals(this.title);
}

代码示例来源:origin: com.github.svenmeier.wicket-dnd/wicket-dnd

private Component getDrag(Request request)
{
  String drag = request.getRequestParameters().getParameterValue("drag").toString();
  return MarkupIdVisitor.getComponent((MarkupContainer)component, drag);
}

代码示例来源:origin: org.wicketstuff/wicketstuff-openlayers3

@Override
protected void respond(AjaxRequestTarget target) {
  IRequestParameters params = RequestCycle.get().getRequest().getRequestParameters();
  String viewJson = params.getParameterValue("view").toString();
  ViewEvent viewEvent = null;
  JsonElement viewParsed = new JsonParser().parse(viewJson);
  if(!(viewParsed instanceof JsonNull)) {
    viewEvent = new ViewEvent(viewParsed.getAsJsonObject());
  }
  handleViewEvent(target, viewEvent);
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core

/**
 * Gets the value of a request parameter
 *
 * @param name the name of the parameter
 * @return a {@link StringValue}
 */
public static StringValue getRequestParameterValue(String name)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final IRequestParameters parameters = requestCycle.getRequest().getRequestParameters();
  return parameters.getParameterValue(name);
}

代码示例来源:origin: org.opensingular/singular-requirement-module

@Override
protected boolean isActive() {
  return RequestCycle.get()
      .getRequest()
      .getRequestParameters()
      .getParameterValue(ActionContext.ITEM_PARAM_NAME)
      .toString("")
      .equals(this.title);
}

代码示例来源:origin: org.wicketstuff/wicketstuff-gmap3

@Override
protected void respond(final AjaxRequestTarget target)
{
  final Request request = RequestCycle.get().getRequest();
  final String overlayId = request.getRequestParameters().getParameterValue("overlay.overlayId").toString().replace("overlay", "");
  final String event = request.getRequestParameters().getParameterValue("overlay.event").toString();
  final GOverlay overlay = overlays.get(overlayId);
  if (overlay != null)
  {
    overlay.onEvent(target, GEvent.valueOf(event));
  }
}

代码示例来源:origin: org.wicketstuff/wicketstuff-openlayers

@Override
protected void onEvent(AjaxRequestTarget target)
{
  Request request = RequestCycle.get().getRequest();
  String lon = request.getRequestParameters().getParameterValue("lon").toString();
  String lat = request.getRequestParameters().getParameterValue("lat").toString();
  LonLat lonLat = new LonLat(Double.parseDouble(lon), Double.parseDouble(lat));
  onClick(lonLat, target);
}

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

@Override
protected void respond(AjaxRequestTarget target)
{
  String result = getComponent().getRequest().getRequestParameters().getParameterValue("result").toOptionalString();
  if ("success".equals(result)) {
    onDownloadSuccess(target);
  } else if ("failed".equals(result)) {
    onDownloadFailed(target);
  }
  onDownloadCompleted(target);
}

代码示例来源:origin: ro.fortsoft.wicket.dashboard/wicket-dashboard-core

@Override
protected void respond(AjaxRequestTarget target) {
  String jsonData = getComponent().getRequest().getRequestParameters().getParameterValue(JSON_DATA).toString();
  Item[] items = getItems(jsonData);
  Map<String, WidgetLocation> locations = new HashMap<String, WidgetLocation>();
  for (Item item : items) {
    WidgetLocation location = new WidgetLocation(item.column, item.sortIndex);
    locations.put(item.widget, location);
  }
  
  onSort(target, locations);
}

代码示例来源:origin: webanno/webanno

@Override
protected void respond(AjaxRequestTarget target)
{
  onParameterArrival(RequestCycle.get().getRequest().getRequestParameters(), target);
  if (this.components != null) {
    addComponentsToBeRendered(target);
  }
}

代码示例来源:origin: org.wicketstuff/wicketstuff-gmap2

@Override
  protected void updateOnAjaxCall(AjaxRequestTarget target, GEvent overlayEvent)
  {
    Request request = RequestCycle.get().getRequest();
    latLng = GLatLng.parse(request.getRequestParameters()
      .getParameterValue("overlay.latLng")
      .toString());
  }
}

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

@Override
protected void respond(final AjaxRequestTarget target)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final String val = requestCycle.getRequest()
    .getRequestParameters()
    .getParameterValue(settings.getParameterName())
    .toOptionalString();
  onRequest(val, requestCycle);
}

代码示例来源:origin: org.wicketstuff.wiquery/wiquery-jquery-ui

@Override
public final void call(AjaxRequestTarget target, Component source)
{
  IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters();
  Component dropped = findComponentById(req.getParameterValue("droppedId").toString());
  drop(target, source, dropped);
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

@Override
  protected void respond(final AjaxRequestTarget target) {
    final IRequestParameters parameters = RequestCycle.get().getRequest().getRequestParameters();
    numberOfValidFiles = parameters.getParameterValue("numberOfValidFiles").toInt(0);
    numberOfSelectedFiles = parameters.getParameterValue("numberOfSelectedFiles").toInt(0);
    FileUploadWidget.this.onSelectionChange(target);
  }
});

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

@Override
protected void respond(final AjaxRequestTarget target) {
  final IRequestParameters requestParameters = RequestCycle.get().getRequest().getRequestParameters();
  final int numberOfUploadedFiles = requestParameters.getParameterValue("numberOfFiles").toInt(0);
  final boolean error = requestParameters.getParameterValue("error").toBoolean(false);
  onNotify(target, numberOfUploadedFiles, error);
  onNotify(numberOfUploadedFiles);
}

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

@Override
protected final void onTimer(AjaxRequestTarget target)
{
  stop(target);
  RequestCycle requestCycle = RequestCycle.get();
  IRequestParameters requestParameters = requestCycle.getRequest().getRequestParameters();
  WebClientInfo clientInfo = newWebClientInfo(requestCycle);
  clientInfo.getProperties().read(requestParameters);
  Session.get().setClientInfo(clientInfo);
  onClientInfo(target, clientInfo);
}

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

@Override
protected final void onTimer(AjaxRequestTarget target)
{
  stop(target);
  RequestCycle requestCycle = RequestCycle.get();
  IRequestParameters requestParameters = requestCycle.getRequest().getRequestParameters();
  WebClientInfo clientInfo = newWebClientInfo(requestCycle);
  clientInfo.getProperties().read(requestParameters);
  Session.get().setClientInfo(clientInfo);
  onClientInfo(target, clientInfo);
}

代码示例来源:origin: org.wicketstuff.wiquery/wiquery-jquery-ui

@Override
public final void call(AjaxRequestTarget target, Component source)
{
  IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters();
  int sortIndex = req.getParameterValue("sortIndex").toInt(-1);
  Component sortItem = findComponentById(req.getParameterValue("sortItemId").toString());
  Component sortSender = findComponentById(
    req.getParameterValue("sortSenderId").toString());
  call(target, source, sortIndex, sortItem, sortSender);
}

相关文章