Does anyone know how to download Zul from Jar? I have a library project that contains Zul. I am currently using createComponents (String uri, Component parent, Map arg), but I do not know or cannot link to the uri in the bank.
I am using now:
public static Component createComponentsFromJar(final String path, final Component parent, final Map<?,?> arg) throws IOException { final InputStream resourceAsStream = ComponentHelper.class.getClassLoader().getResourceAsStream(path); final PageDefinition pageDefinition = Executions.getCurrent().getPageDefinitionDirectly(new InputStreamReader(resourceAsStream), "zul"); resourceAsStream.close(); return Executions.createComponents(pageDefinition, parent, arg); }
Are there any problems with this method of creating new pages? Some binding problems or questions?
source share