Exemplo n.º 1
0
 /** @return the componentid (e.g.) o_c32645732 */
 public StringOutput getCId() {
   StringOutput sb = new StringOutput(16);
   sb.append("o_c").append(vc.getDispatchID());
   return sb;
 }
Exemplo n.º 2
0
 /**
  * @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;
 }
Exemplo n.º 3
0
 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);
 }