| 209 | |
| 210 | The default view is chosen in a fallback cascade, which is: |
| 211 | |
| 212 | 1. <prefix>/<resource-name>_<component-name>_<method>.html |
| 213 | 2. <prefix>/<resource-name>_<method>.html |
| 214 | 3. <prefix>/<method>.html |
| 215 | 4. <method>.html |
| 216 | |
| 217 | where: |
| 218 | |
| 219 | - '''prefix''' is the application prefix of the resource name (e.g. "pr") |
| 220 | - '''resource-name''' is the name of the resource (e.g. "person") |
| 221 | - '''component-name''' is the name of the component resource (e.g. "address", only if the request targets a component resource) |
| 222 | - '''method''' is one of: |
| 223 | - display |
| 224 | - list |
| 225 | - list_create (to be deprecated) |
| 226 | - create |
| 227 | - update |
| 228 | - delete |
| 229 | - search |
| 230 | |
| 231 | Example: |
| 232 | |
| 233 | {{{ |
| 234 | http://localhost:8000/eden/pr/person/create.html |
| 235 | }}} |
| 236 | |
| 237 | is looking for one of '''pr/person_create.html'', '''pr/create.html'' or finally ''create.html'' as default view. |
| 238 | |
| 239 | If none of these is found, "default.html" serves as catch-all fallback. |