Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Detail SVN tag number which includes bsh-2.04

...

  1. A recent OFBiz build which includes https://issues.apache.org/jira/browse/OFBIZ-528Image Removed committed.  COULD ANYONE TELL ME WHAT SVN REVISION THIS WAS?This should be any SVN tag from 533448 upwards.
  2. JDK 1.5, with JAVA_HOME environment variable set correctly
  3. Comfortable with configuring a J2EE webapp via web.xml
  4. A webapp (either your own or one of OFBiz's) already working, that you are happy to mess around with as a sandbox
  5. Comfortable with creating your own OFBiz component and using ofbiz-component.xml
  6. Wiki Markup
    \[Part 3 only\] Familiarity with the [Spring Framework|http://springframework.org], at least ApplicationContext and WebApplicationContext

...

2. Paste the following code into it: 

Code Block
 <?page title="Incredible Browser"?> <!-- sets browser window title -->

<window title="Incredible Window"> <!-- creates a window within body -->
 Click here: <button label="Yes here!"/>
</window>

...

3.  Now visualize it in your browser via the obvious URL (just as if it were a JSP).   So far, clicking the button does nothing so let's put in a bit of interactivity.  Alter your ZUL to look like the following...

Code Block
 <?page title="Incredible Browser"?> <!-- sets browser window title -->

<window title="Incredible Window"> <!-- creates a window within body -->
 <zscript> <!--  ONE -->
  clickCount = 0;   //TWO
  clickIt()
  {
	 clickCount++;  //register the click
	 countLabel.value = "Clicks: " + clickCount; //update the screen to show new value  THREE
  }
 </zscript>
 Click here: <button label="Yes here!" onClick="clickIt()"/>
 <label id="countLabel" value="Clicks: ${clickCount}"/> <!--  FOUR --></window>

...