JHeadstart Tip: Which Previously Generated Pages Can Be Deleted?

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
Modified JSPX Files: Here you can see that the files that are generated by JHeadstart Application Generator in this run have their names shown in italic font. The files that are in plain font are apparently not touched, and are possibly superfluous.<br>
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).

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Java EE Consultants - JHeadstart, ADF, JSF

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today