Skip to content

Instantly share code, notes, and snippets.

@rjrudin
rjrudin / dhf5-test-resources.gradle
Created July 23, 2019 16:19
Deploying test resources for a DHF 5 application
/**
* The below tasks are used for deploying and undeploying test resources for a DHF 5 application. Just copy everything below
* this comment into the build.gradle file in your DHF application - no properties need to be set for these tasks to work.
*
* The task "hubDeployTestResources" will deploy test versions of your staging and final databases and app servers. You
* can customize these tasks if you don't like the resource names and ports that are used by them. Note that mlDeploy
* does not depend on this task by default - you'll need to invoke it in order to create test resources.
*
* The task "hubUndeployTestResources" will undeploy any test resources that were created. mlUndeploy does depend on
* this task as there's typically no downside to undeploying these resources - if they don't exist, the task will
@dmccreary
dmccreary / table-pagination.xml
Last active January 29, 2020 14:55
XForms table pagination with Orbeon. In this example the Prev and Next buttons are disable by binding rules.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<head>
<title>XForms 2 Row Repeat Test Using nodeset and id for Repeat</title>
<xf:model>
<xf:instance xmlns="" id="save-data">
<data>
<row>
<first-name>Dan</first-name>
<last-name>McCreary</last-name>
<phone-ext>111</phone-ext>