/** * Discover if the given ViewId is mapped by any {@link UrlMapping} specified in the current configuration. * <p> * <b>Note:</b>This will not match if a #{dynamicView.id} method is configured. * * @return True if the ViewId is mapped, false if not. */ public boolean isViewMapped(String viewId) { if (viewId != null) { viewId = viewId.trim(); for (UrlMapping mapping : mappings) { if (viewId.equals(mapping.getViewId()) || (viewId.startsWith("/") && viewId.substring(1).equals(mapping.getViewId()))) { return true; } } } return false; }
/** * Return the current viewId to which the current request will be forwarded * to JSF. */ public String getCurrentViewId() { if (getCurrentMapping() != null) { return currentMapping.getViewId(); } return ""; }
/** * Return the current viewId to which the current request will be forwarded * to JSF. */ public String getCurrentViewId() { if (getCurrentMapping() != null) { return currentMapping.getViewId(); } return ""; }
/** * Return the current viewId to which the current request will be forwarded * to JSF. */ public String getCurrentViewId() { if (getCurrentMapping() != null) { return currentMapping.getViewId(); } return ""; }
/** * Return the current viewId to which the current request will be forwarded * to JSF. */ public String getCurrentViewId() { if (getCurrentMapping() != null) { return currentMapping.getViewId(); } return ""; }
/** * Discover if the given ViewId is mapped by any {@link UrlMapping} specified in the current configuration. * <p> * <b>Note:</b>This will not match if a #{dynamicView.id} method is configured. * * @return True if the ViewId is mapped, false if not. */ public boolean isViewMapped(String viewId) { if (viewId != null) { viewId = viewId.trim(); for (UrlMapping mapping : mappings) { if (viewId.equals(mapping.getViewId()) || (viewId.startsWith("/") && viewId.substring(1).equals(mapping.getViewId()))) { return true; } } } return false; }
/** * Discover if the given ViewId is mapped by any {@link UrlMapping} specified in the current configuration. * <p> * <b>Note:</b>This will not match if a #{dynamicView.id} method is configured. * * @return True if the ViewId is mapped, false if not. */ public boolean isViewMapped(String viewId) { if (viewId != null) { viewId = viewId.trim(); for (UrlMapping mapping : mappings) { if (viewId.equals(mapping.getViewId()) || (viewId.startsWith("/") && viewId.substring(1).equals(mapping.getViewId()))) { return true; } } } return false; }
/** * Discover if the given ViewId is mapped by any {@link UrlMapping} specified in the current configuration. * <p> * <b>Note:</b>This will not match if a #{dynamicView.id} method is configured. * * @return True if the ViewId is mapped, false if not. */ public boolean isViewMapped(String viewId) { if (viewId != null) { viewId = viewId.trim(); for (UrlMapping mapping : mappings) { if (viewId.equals(mapping.getViewId()) || (viewId.startsWith("/") && viewId.substring(1).equals(mapping.getViewId()))) { return true; } } } return false; }
QueryString mappingViewQueryString = QueryString.build(mapping.getViewId()); for (String mappingViewParam : mappingViewQueryString.getParameterMap().keySet()) { qs.removeParameter(mappingViewParam);
String viewId = mapping.getViewId(); if (mapping.isDynaView())
String viewId = mapping.getViewId(); if (mapping.isDynaView())
String viewId = mapping.getViewId(); log.trace("Forwarding mapped request [" + url.toURL() + "] to resource [" + viewId + "]"); if (url.toURL().equals(viewId))