Customize Your Applet
Follow these steps to customize the Oxygen XML Author Component Java applet:
- Follow this set of instructions to setup the sample
project and look for the Java sources (these can be customized to fit your requirements)
of the sample applet implementation;
Note
The Java source files are located in thesrcfolder of theoxygen-sample-appletmodule. - Look inside
web-resources/sharepoint/author-component-dita.aspxand the associated*.jsresources, to see how the applet is embedded in the page and how it can be controlled using JavaScript (to set and get XML content from it). - Edit the
default.propertiesconfiguration to specify your custom certificate information, used to sign the applet libraries. Also, specify the code base from where the applet resources will be downloaded. - The sample Applet
target/jnlp/author-component-dita.jnlpfile contains the list of used libraries. This list is automatically generated from the Maven dependencies of the project. The sample frameworks and options JAR archives are located in thebundle-frameworksandbundle-optionsmodules of the sample project.Note
The JNLP file and the associated resources and libraries must be deployed on a non-SharePoint web server. Otherwise, the applet will not be loaded. - Use the Maven command
mvn packageto pack the component. More information are available here. The resulting applet distribution is copied in thetarget/jnlp/directory. From now on, you can copy the applet files on your web server.