-
Notifications
You must be signed in to change notification settings - Fork 17
Debugging a theme
The WComponents JAVA examples (module wcomponents-examples) allows client side debugging of live samples with proper form submissions etc. This is required for some aspects of theme development, especially debugging CSS, write-state, submission and AJAX issues.
The examples are run using the wcomponents-examples-lde module. This module may be configured with a local_app.properties file to set some useful debugging options. The following configuration properties allow you to use the debug versions of the JavaScript and CSS within the WComponents examples.
bordertech.wcomponents.debug.enabled=true
# The next line is required for v1.3.x and earlier
# bordertech.wcomponents.debug.clientSide.enabled=true
The WComponent example application will use the bundled theme. This is the WComponent default theme and is almost certainly not what you want to test. These run time properties are used to set a different theme:
# Point to a localy built theme
# or theme not on the class path
bordertech.wcomponents.theme.content.path=/theme/
bordertech.wcomponents.lde.theme.dir=/PATH/TO/theme/target/classes/theme
# OR point to a theme on the class path
bordertech.wcomponents.theme.name=MY_THEME
You can set a session session timeout using bordertech.wcomponents.lde.session.inactive.interval for example 86400 will set a timeout of one day.
The JavaScript in wcomponents-theme is tested by the Intern. How to do it is detailed in Theme testing.
- Creating a theme
- Theme creation step by step gives a quick overview of creating a simple theme.
- Theme server config
- Theme testing
- Accessibility