Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9321407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:50:52+00:00 2026-06-19T03:50:52+00:00

anyone know how to load a Zul from a Jar? I have a library

  • 0

anyone know how to load a Zul from a Jar?
I have a library project wich contains Zul.
currently i use createComponents(String uri, Component parent, Map arg) but i don’t know or can’t reference a uri in a jar.


I use 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);
}

does any know some problems with this method of creating new pages? Some binding problems or someting?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T03:50:53+00:00Added an answer on June 19, 2026 at 3:50 am

    Executions.createComponents will work with ZK Specific URI (refer to Inter-Application Communication) where “~./” in ZK Specific URI will get the file under “classpath/web/“, assume your zul page under “src/web/zul/pages” as below:

    zul page under src

    And you export the src folder as a jar, then you can create component with the zul file in jar as below:

    Executions.createComponents("~./zul/pages/zulInJar.zul", parent, null);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

anyone know any workaround of using uframe to load external uri ? currently when
Does anyone know a way to, in a storyboard, load a UIView's contents from
Stupid question, but does anyone know how to load google's jquery from an external
Anyone know how to autofocus on the CKEDITOR text area on page load? Currently
Does anyone know a library that would automatically load images as user scrolls down?
I have an Ontology written in OWL. Does anyone know I can load it
Anyone know if there is a standard way to create a List from an
Anyone know an example of phonegap with $.ajax() in github for Android? I have
does anyone know how to load contents of a file into a multilined TextBox
Does anyone know how to load the HTML element of https in asp.net? say..

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.