Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
[CompositeComponent] implicitly make ids of nested components unique #…
Browse files Browse the repository at this point in the history
  • Loading branch information
glebfox committed Oct 11, 2021
1 parent 3945020 commit 13007d5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import io.jmix.ui.sys.TestIdManager;
import io.jmix.ui.sys.event.UiEventsMulticaster;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
Expand Down Expand Up @@ -180,7 +181,7 @@ protected String getFullId(String id) {

protected String getPrefixId() {
if (prefixId == null) {
prefixId = UUID.randomUUID().toString();
prefixId = RandomStringUtils.randomAlphabetic(10);
}
return prefixId;
}
Expand Down

0 comments on commit 13007d5

Please sign in to comment.