...
- A recent OFBiz build which includes https://issues.apache.org/jira/browse/OFBIZ-528 committed. COULD ANYONE TELL ME WHAT SVN REVISION THIS WAS?This should be any SVN tag from 533448 upwards.
- JDK 1.5, with JAVA_HOME environment variable set correctly
- Comfortable with configuring a J2EE webapp via web.xml
- A webapp (either your own or one of OFBiz's) already working, that you are happy to mess around with as a sandbox
- Comfortable with creating your own OFBiz component and using ofbiz-component.xml
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>
|
...