JHeadstart Tip: Which Previously Generated Pages Can Be Deleted?
By Sandra Muller on Sep 01, 2006
If you change the Group Layout properties in your Application Definition, JHeadstart might not generate certain JSF files anymore. It is good practice to clean up files that are not used anymore.
For example, if you change the Layout Style from "table-form" to "form", the table page is not generated anymore. If you had already generated that table page in an earlier run, that JSPX file is still in your project, but not part of your application page flow anymore.
If you want to get rid of these superfluous JSF pages, you can do the following:
- Run the JHeadstart 10.1.3 Application Generator
- Don't save all files yet
- Go to the Navigator of JDeveloper 10.1.3, to the folder where the pages are generated
- Check which page names are not italic
In the picture above you can see an example: Departments2Table.jspx is not generated anymore because the detail
group Departments2 now has Same Page = "true" (so its contents appear
on Employees.jspx), and EmployeesTable.jspx is not generated anymore because the Layout Style of the Employees group changed from "table-form" to "form". So, unless these pages are used elsewhere, you can now delete them.
A similar trick can be applied to the Page Definition files, and the Faces-Config files.
If you have multiple JHeadstart Application Definitions, we recommend that you generate the files for each of the Application Definitions into separate folders (you can specify this at the Service level), so that you can easily see to which Application Definition a file belongs. That way you can still apply the above technique. Using such a folder structure also helps when defining Working Sets in JDeveloper 10.1.3 (for viewing a subset of the files in a certain JDeveloper project).