18271828182918301831183218331834183518361837
{ if (buffer.length() > 0) { buffer.prepend(PATH_SEPARATOR); } buffer.prepend(c.getId()); } return buffer.toString(); } /**
397398399400401402403404405406407
{ PrependingStringBuffer buffer = new PrependingStringBuffer(); Url filterPrefixUrl = Url.parse(filterPrefix, getCharset()); for (int i = 0; i < filterPrefixUrl.getSegments().size() - 1; ++i) { buffer.prepend("../"); } return buffer.toString(); } @Override
277278279280281282283284285286287
} PrependingStringBuffer buffer = new PrependingStringBuffer(url); for (int i = 0; i < getBaseUrl().getSegments().size() - 1; ++i) { buffer.prepend("../"); } buffer.prepend(request.getPrefixToContextPath()); return buffer.toString();
280281282283284285286287288289290
for (int i = 0; i < getBaseUrl().getSegments().size() - 1; ++i) { buffer.prepend("../"); } buffer.prepend(request.getPrefixToContextPath()); return buffer.toString(); } private static String choose(String value, String fallback1, String fallback2)
357358359360361362363364365366367
360361362363364365366367368369370
for (int i = 0; i < getBaseUrl().getSegments().size() - 1; ++i) { buffer.prepend("../"); } buffer.prepend(request.getPrefixToContextPath()); return buffer.toString(); } /**
18151816181718181819182018211822182318241825
final PrependingStringBuffer buffer = new PrependingStringBuffer(32); for (Component c = this; c != null; c = c.getParent()) { if (buffer.length() > 0) { buffer.prepend(PATH_SEPARATOR); } buffer.prepend(c.getId()); } return buffer.toString(); }
18171818181918201821182218231824182518261827
20602061206220632064206520662067206820692070
String id = component.getId(); final PrependingStringBuffer inputName = new PrependingStringBuffer(id.length()); Component c = component; while (true) { inputName.prepend(id); c = c.getParent(); if (c == null || (c instanceof Form<?> && ((Form<?>)c).isRootForm()) || c instanceof Page) { break;
20672068206920702071207220732074207520762077
if (c == null || (c instanceof Form<?> && ((Form<?>)c).isRootForm()) || c instanceof Page) { break; } inputName.prepend(Component.PATH_SEPARATOR); id = c.getId(); } /* * having input name "submit" causes problems with JavaScript, so we create a unique string