/** * Gets the path to this component relative to its containing page, i.e. without leading page * id. * * @return The path to this component relative to the page it is in */ @Override public final String getPageRelativePath() { return Strings.afterFirstPathComponent(getPath(), PATH_SEPARATOR); }
/** * Gets the path to this component relative to its containing page, i.e. without leading page * id. * * @return The path to this component relative to the page it is in */ @Override public final String getPageRelativePath() { return Strings.afterFirstPathComponent(getPath(), PATH_SEPARATOR); }
/** * Gets the path to this component relative to the page it is in. * * @return The path to this component relative to the page it is in */ public final String getPageRelativePath() { return Strings.afterFirstPathComponent(getPath(), PATH_SEPARATOR); }
/** * Gets the path to this component relative to the page it is in. * * @return The path to this component relative to the page it is in */ public final String getPageRelativePath() { return Strings.afterFirstPathComponent(getPath(), PATH_SEPARATOR); }
public static String hintPathFor(Component component) { final String fullHintPath = fullHintPathFor(component); final String firstPathComponent = Strings.afterFirstPathComponent(fullHintPath, Component.PATH_SEPARATOR); return firstPathComponent; }
public static String hintPathFor(Component component) { final String fullHintPath = fullHintPathFor(component); final String firstPathComponent = Strings.afterFirstPathComponent(fullHintPath, Component.PATH_SEPARATOR); return firstPathComponent; }
String path2 = Strings.afterFirstPathComponent(path, Component.PATH_SEPARATOR);
String path2 = Strings.afterFirstPathComponent(path, Component.PATH_SEPARATOR);
final String path2 = Strings.afterFirstPathComponent(path, Component.PATH_SEPARATOR);
/** {@inheritDoc} */ @Override protected String addPageInfo(String url, PageInfo pageInfo) { if (pageInfo == null) { return url; } else { // Insert the page info at the and of the path and before the querystring. if (url.indexOf('?') == -1) { return url + getBeginSeparator() + pageInfo.toString() + getEndSeparator(); } else { return Strings.firstPathComponent(url, '?') + getBeginSeparator() + pageInfo.toString() + getEndSeparator() + '?' + Strings.afterFirstPathComponent(url, '?'); } } }
final String path2 = Strings.afterFirstPathComponent(path, Component.PATH_SEPARATOR);
final String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath, Component.PATH_SEPARATOR); if (Strings.isEmpty(pageRelativeComponentPath))
final String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath, Component.PATH_SEPARATOR); if (Strings.isEmpty(pageRelativeComponentPath))
final RequestParameters requestParameters) String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath, Component.PATH_SEPARATOR); Component component = null;
final RequestParameters requestParameters) String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath, Component.PATH_SEPARATOR); Component component = null;
final String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath, Component.PATH_SEPARATOR); Component component = page.get(pageRelativeComponentPath);
Component comp = page.get(Strings.afterFirstPathComponent(componentPath, Component.PATH_SEPARATOR)); param.append(Component.PATH_SEPARATOR);
final String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath, Component.PATH_SEPARATOR); Component component = page.get(pageRelativeComponentPath);