In this section we will customize the look and feel of the search screen as specified in the TimeTracker prototype.
The basic process for front-end customization is pretty simple. As you know, AndroMDA generates front-end elements (such as JSPs, style sheets and javascript) in the web\target\src directory. If you need to customize any of these elements, just copy them over to the web\src\main directory, maintaining the same tree structure. Now you can make any edits to these files. When you build your application again, maven will copy the artifacts from the src directory to the target directory, overwriting the automatically generated files. It will then proceed to build the war from the target directory. Thus you can have a mix for auto-generated and customized files in your war. Note that it is best to wait until a screen is functionally complete before starting to customize the look and feel - making functional changes after customization makes it difficult to syncronize the artifacts.
With this background, we are ready to customize our front-end. Note that customizations requires some knowledge of JSF and Facelets. We cannot possibly cover all these topics in this tutorial, so we will simply provide the customized files to you. Follow the steps below to customize the search screen and run the application:
#Temporary message until Approve Timecards page is defined approve.timecards.title=Approve Timecards # Overrides of AndroMDA generated messages time.tracker.home=Home # Custom messages search.criteria=Search Criteria search.results=Search Results
Congratulations! We are done with the search screen.
We will now secure our site using the Spring Security System. Click here to integrate with Spring Security.