A user in Oracle UI Shell Functional Pattern thread asked me on a step by step guide on how to re-size the space taken by the Legal area at the bottom part of the UI Shell, thus I came up with this post.
If you wanted to modify some layout of the Oracle Dynamic Tabs template, you can do the following:
- Copy the oracle-page-templates-ext.jar from %MiddlewareHome%\jdeveloper\adfv\jlib\ folder
- Create a new folder in drive C like C:\temp and paste the copied jar.
- Extract the contents of the jar.
- Open command prompt and navigate to the C:\temp folder.
- Enter the following command:
jar xf oracle-page-templates-ext.jar
- If the jar command cannot be recognized, then you need to add the java bin folder path into the "Path" system variables. Ex. "C:\Oracle\Middleware\jdk160_14_R27.6.5-32\bin;"
- Delete the jar that we have copied into the temp directory. We do this so that we can easily repack a jar later.
- In windows explorer, browse the "dynamicTabShell.jspx" file in "C:\temp\oracle\ui\pattern\dynamicShell" directory
- Right click the file and click "open with...". Open it with JDeveloper.
- Modify the bottom height of the panelStretchLayout component highlighted in the following screen shot. Modify the size from the default "50px" to the value you desired like for example "15px".
- Save your modification.
- Repackage the file in a jar. Open a command prompt navigate to the temp folder we created earlier then run the following command:
jar cfM0 oracle-page-templates.jar *0 (Zero)
You can give the jar a different name if you like.
- Modify libraries and classpath.
- Open your application in JDeveloper.
- Right-click your ViewController project and click project properties.
- Remove the Oracle Extended Page Templates in the classpath entries.
- Add the jar file that we created in the step above.
- Run your application. In my case I applied it to the accompanying UIShellSherman_v02 sample app of the UI Shell.
For more information about unpacking and packaging jar files, see the following links: