The on deploy event handler, which provides classes the opportunity to deploy static resources when the Click application is initialized.
For example:
public void onDeploy(ServletContext servletContext) throws IOException { ClickUtils.deployFile (servletContext, "/com/mycorp/control/custom.js", "click"); }
Please note: a common problem when overriding onDeploy in subclasses is forgetting to call
super.onDeploy. Consider carefully whether you should call
super.onDeploy or not.
Click also supports an alternative deployment strategy which relies on packaging resource (stylesheets, JavaScript, images etc.) following a specific convention. See the section
Deploying Custom Resources for further details.
@param servletContext the servlet context