public static void compositeComponentReplace(final String componentType, final String templateFile, final Supplier<Widget> field, final Map<String, Element> dataFieldElements, final Map<String, DataFieldMeta> dataFieldMetas, final String fieldName) { try { compositeComponentReplace(componentType, templateFile, field.get(), dataFieldElements, dataFieldMetas, fieldName); } catch (final Throwable t) { throw new RuntimeException("There was an error initializing the @DataField " + fieldName + " in the @Templated " + componentType + ": " + t.getMessage(), t); } }
public static void compositeComponentReplace(final String componentType, final String templateFile, final Supplier<Widget> field, final Map<String, Element> dataFieldElements, final Map<String, DataFieldMeta> dataFieldMetas, final String fieldName) { try { compositeComponentReplace(componentType, templateFile, field.get(), dataFieldElements, dataFieldMetas, fieldName); } catch (final Throwable t) { throw new RuntimeException("There was an error initializing the @DataField " + fieldName + " in the @Templated " + componentType + ": " + t.getMessage(), t); } }