String result = _cycle.getUniqueId(filteredId);
String result = _cycle.getUniqueId(filteredId);
/** * Invoked when rewinding a form to re-initialize the _allocatedIds and _elementIdAllocator. * Converts a string passed as a parameter (and containing a comma separated list of ids) back * into the allocateIds property. In addition, return the state of the ID allocater back to * where it was at the start of the render. * * @see #buildAllocatedIdList() * @since 3.0 */ private void reinitializeIdAllocatorForRewind() { _cycle.initializeIdState(_cycle.getParameter(SEED_IDS)); String allocatedFormIds = _cycle.getParameter(FORM_IDS); String[] ids = TapestryUtils.split(allocatedFormIds); for (int i = 0; i < ids.length; i++) _allocatedIds.add(ids[i]); // Now, reconstruct the initial state of the // id allocator. String extraReservedIds = _cycle.getParameter(RESERVED_FORM_IDS); ids = TapestryUtils.split(extraReservedIds); for (int i = 0; i < ids.length; i++) { _cycle.getUniqueId(ids[i]); } }
/** * Invoked when rewinding a form to re-initialize the _allocatedIds and _elementIdAllocator. * Converts a string passed as a parameter (and containing a comma separated list of ids) back * into the allocateIds property. In addition, return the state of the ID allocater back to * where it was at the start of the render. * * @see #buildAllocatedIdList() * @since 3.0 */ private void reinitializeIdAllocatorForRewind() { _cycle.initializeIdState(_cycle.getParameter(SEED_IDS)); String allocatedFormIds = _cycle.getParameter(FORM_IDS); String[] ids = TapestryUtils.split(allocatedFormIds); for (int i = 0; i < ids.length; i++) _allocatedIds.add(ids[i]); // Now, reconstruct the initial state of the // id allocator. String extraReservedIds = _cycle.getParameter(RESERVED_FORM_IDS); ids = TapestryUtils.split(extraReservedIds); for (int i = 0; i < ids.length; i++) { _cycle.getUniqueId(ids[i]); } }
protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
/** * Overriden from {@link AbstractFormComponent} to handle cases where * we're not being wrapped by a {@link IForm} component. * * <p>This is basically a copy of the same method implemented in {@link AbstractComponent}.</p> */ protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
/** * Overriden from {@link AbstractFormComponent} to handle cases where * we're not being wrapped by a {@link IForm} component. * * <p>This is basically a copy of the same method implemented in {@link AbstractComponent}.</p> */ protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
linkComponent); String formName = cycle.getUniqueId("LinkForm");