/** @return the componentid (e.g.) o_c32645732 */ public StringOutput getCId() { StringOutput sb = new StringOutput(16); sb.append("o_c").append(vc.getDispatchID()); return sb; }
/** * @param prefix e.g. abc for "abc647547326" and so on * @return an prefixed id (e.g. f23748932) which is unique in the current render tree. */ public StringOutput getId(String prefix) { StringOutput sb = new StringOutput(16); sb.append("o_s").append(prefix).append(vc.getDispatchID()); return sb; }
public static String getId(String prefix, VelocityContainer vc) { StringOutput sb = StringOutputPool.allocStringBuilder(24); sb.append("o_s").append(prefix).append(vc.getDispatchID()); return StringOutputPool.freePop(sb); }