@Override public String getContainerClientId(FacesContext context) { String clientId = super.getContainerClientId(context); String _rowKey = getRowKey(); if (_rowKey == null) { return clientId; } else { StringBuilder builder = SharedStringBuilder.get(context, SB_GET_CONTAINER_CLIENT_ID); return builder.append(clientId).append(UINamingContainer.getSeparatorChar(context)).append(rowKey).toString(); } }
@Override public String getContainerClientId(FacesContext facesContext) { if (facesContext == null) { throw new NullPointerException("context"); } if (null == containerClientId) { containerClientId = super.getContainerClientId(facesContext); final Integer rowKey = getRowKey(); if (rowKey != null) { containerClientId = containerClientId + separatorChar + rowKey; // Using StringJoiner is to slow //containerClientId = StringJoiner.on(separatorChar).join(Arrays.asList(containerClientId, rowKey.toString())).toString(); } } return containerClientId; }
@Override public String getContainerClientId(FacesContext facesContext) { if (facesContext == null) { throw new NullPointerException("context"); } if (null == containerClientId) { containerClientId = super.getContainerClientId(facesContext); final Integer rowKey = getRowKey(); if (rowKey != null) { containerClientId = containerClientId + separatorChar + rowKey; // Using StringJoiner is to slow //containerClientId = StringJoiner.on(separatorChar).join(Arrays.asList(containerClientId, rowKey.toString())).toString(); } } return containerClientId; }
@Override public String getContainerClientId(FacesContext faces) { String id = super.getContainerClientId(faces); if (_index >= 0) { id = _getBuffer().append(id).append(UINamingContainer.getSeparatorChar(faces)).append(_index).toString(); } return id; }
@Override public String getContainerClientId(FacesContext faces) { String id = super.getContainerClientId(faces); if (_index >= 0) { id = _getBuffer().append(id).append(UINamingContainer.getSeparatorChar(faces)).append(_index).toString(); } return id; }
@Override public String getContainerClientId(FacesContext facesContext) { if (facesContext == null) { throw new NullPointerException("context"); } if (null == containerClientId) { containerClientId = super.getContainerClientId(facesContext); final Integer rowKey = getRowKey(); if (rowKey != null) { containerClientId = containerClientId + separatorChar + rowKey; // Using StringJoiner is to slow //containerClientId = StringJoiner.on(separatorChar).join(Arrays.asList(containerClientId, rowKey.toString())).toString(); } } return containerClientId; }
@Override public String getContainerClientId(FacesContext context) { String clientId = super.getContainerClientId(context); String _rowKey = this.getRowKey(); if (_rowKey == null) { return clientId; } else { StringBuilder builder = SharedStringBuilder.get(context, SB_GET_CONTAINER_CLIENT_ID); return builder.append(clientId).append(UINamingContainer.getSeparatorChar(context)).append(rowKey).toString(); } }
@Override public String getContainerClientId(FacesContext context) { //MYFACES-2744 UIData.getClientId() should not append rowIndex, instead use UIData.getContainerClientId() String clientId = super.getContainerClientId(context); int rowIndex = getRowIndex(); if (rowIndex == -1) { return clientId; } StringBuilder bld = _getSharedStringBuilder(context); return bld.append(clientId).append(context.getNamingContainerSeparatorChar()).append(rowIndex).toString(); }
@Override public String getContainerClientId(FacesContext context) { //MYFACES-2744 UIData.getClientId() should not append rowIndex, instead use UIData.getContainerClientId() String clientId = super.getContainerClientId(context); int index = getIndex(); if (index == -1) { return clientId; } StringBuilder sb = SharedStringBuilder.get(context, STRING_BUILDER_KEY); return sb.append(clientId).append(context.getNamingContainerSeparatorChar()).append(index).toString(); }
@Override public String getContainerClientId(FacesContext facesContext) { if (facesContext == null) { throw new NullPointerException("context"); } if (null == containerClientId) { containerClientId = super.getContainerClientId(facesContext); Object rowKey = getRowKey(); if (rowKey != null) { String rowKeyString = getRowKeyAsString(facesContext, rowKey); containerClientId = SEPARATOR_CHAR_JOINER.join(containerClientId, rowKeyString); } } return containerClientId; }
@Override public String getContainerClientId(FacesContext facesContext) { if (facesContext == null) { throw new NullPointerException("context"); } if (null == containerClientId) { containerClientId = super.getContainerClientId(facesContext); Object rowKey = getRowKey(); if (rowKey != null) { String rowKeyString = getRowKeyAsString(facesContext, rowKey); containerClientId = SEPARATOR_CHAR_JOINER.join(containerClientId, rowKeyString); } } return containerClientId; }
@Override public String getContainerClientId(FacesContext facesContext) { if (facesContext == null) { throw new NullPointerException("context"); } if (null == containerClientId) { containerClientId = super.getContainerClientId(facesContext); Object rowKey = getRowKey(); if (rowKey != null) { String rowKeyString = getRowKeyAsString(facesContext, rowKey); containerClientId = SEPARATOR_CHAR_JOINER.join(containerClientId, rowKeyString); } } return containerClientId; }
public String getContainerClientId(FacesContext ctx) { if (isPrependId()) { return super.getContainerClientId(ctx); } UIComponent parentNamingContainer = _ComponentUtils.findParentNamingContainer(this, false); if (parentNamingContainer != null) { return parentNamingContainer.getContainerClientId(ctx); } return null; }
@Override public String getContainerClientId(FacesContext ctx) { if (isPrependId()) { return super.getContainerClientId(ctx); } UIComponent parentNamingContainer = _ComponentUtils.findParentNamingContainer(this, false); if (parentNamingContainer != null) { return parentNamingContainer.getContainerClientId(ctx); } return null; }
/** * <p>Override the {@link UIComponent#getContainerClientId} to allow * users to disable this form from prepending its <code>clientId</code> to * its descendent's <code>clientIds</code> depending on the value of * this form's {@link #isPrependId} property.</p> */ public String getContainerClientId(FacesContext context) { if (this.isPrependId()) { return super.getContainerClientId(context); } else { UIComponent parent = this.getParent(); while (parent != null) { if (parent instanceof NamingContainer) { return parent.getContainerClientId(context); } parent = parent.getParent(); } } return null; }
/** * <p>Override the {@link UIComponent#getContainerClientId} to allow * users to disable this form from prepending its <code>clientId</code> to * its descendent's <code>clientIds</code> depending on the value of * this form's {@link #isPrependId} property.</p> */ @Override public String getContainerClientId(FacesContext context) { if (this.isPrependId()) { return super.getContainerClientId(context); } else { UIComponent parent = this.getParent(); while (parent != null) { if (parent instanceof NamingContainer) { return parent.getContainerClientId(context); } parent = parent.getParent(); } } return null; }
/** * <p>Override the {@link UIComponent#getContainerClientId} to allow * users to disable this form from prepending its <code>clientId</code> to * its descendent's <code>clientIds</code> depending on the value of * this form's {@link #isPrependId} property.</p> */ @Override public String getContainerClientId(FacesContext context) { if (this.isPrependId()) { return super.getContainerClientId(context); } else { UIComponent parent = this.getParent(); while (parent != null) { if (parent instanceof NamingContainer) { return parent.getContainerClientId(context); } parent = parent.getParent(); } } return null; }
/** * <p>Override the {@link UIComponent#getContainerClientId} to allow * users to disable this form from prepending its <code>clientId</code> to * its descendent's <code>clientIds</code> depending on the value of * this form's {@link #isPrependId} property.</p> */ public String getContainerClientId(FacesContext context) { if (this.isPrependId()) { return super.getContainerClientId(context); } else { UIComponent parent = this.getParent(); while (parent != null) { if (parent instanceof NamingContainer) { return parent.getContainerClientId(context); } parent = parent.getParent(); } } return null; }
/** * <p>Override the {@link UIComponent#getContainerClientId} to allow * users to disable this form from prepending its <code>clientId</code> to * its descendent's <code>clientIds</code> depending on the value of * this form's {@link #isPrependId} property.</p> */ public String getContainerClientId(FacesContext context) { if (this.isPrependId()) { return super.getContainerClientId(context); } else { UIComponent parent = this.getParent(); while (parent != null) { if (parent instanceof NamingContainer) { return parent.getContainerClientId(context); } parent = parent.getParent(); } } return null; }
/** * <p> * Override the {@link UIComponent#getContainerClientId} to allow users to disable this form * from prepending its <code>clientId</code> to its descendent's <code>clientIds</code> * depending on the value of this form's {@link #isPrependId} property. * </p> */ @Override public String getContainerClientId(FacesContext context) { if (isPrependId()) { return super.getContainerClientId(context); } UIComponent parent = getParent(); while (parent != null) { if (parent instanceof NamingContainer) { return parent.getContainerClientId(context); } parent = parent.getParent(); } return null; }