Exception Handling Tapestry modify page
；， ；tapestry，，，，。 Therefore, I would be abnormal for the two sets of screen design, a set of services in the development phase, called the design period of abnormal screen; the other is for end-users to see, called the run-time anomaly screen; design period abnormal screen completely abnormal tapestry default screen, and run-time exception handling anomalies in the design phase of information into the log file, and to display customized information to users anomaly, so the page can be very simple, his message is displayed.
To this end, the need to modify the default configuration Tapestry, modify the default page of the exception handling.
，Exception.htmlException.javaMyException.htmlMyException.java，MyException.html<span jwcid="@RequestDisplay"/>。 1. The org \ apache \ tapestry \ pages \ copy all the files to your project, modify Exception.java renamed Exception.html and MyException.html and MyException.java, delete MyException.html behind his <span jwcid = "@ RequestDisplay" /> can be.
2. Can also be the basis of the above two steps, on the other abnormal screen to customize and modify.
3. Hivemind.xml to add the following code:
| <contribution configuration-id="tapestry.InfrastructureOverrides"> |
<property name="exceptionPageName" value="MyException"/>
<property name="staleSessionPageName" value="MyStaleSession"/>
<property name="staleLinkPageName" value="MyStaleLink"/>
tapestry & hivemind Articles
- Tapestry Developer's Guide (6)
- Tapestry Developer's Guide (5)
- Tapestry Developer's Guide (3)
- Tapestry Developer's Guide (2)
- Tapestry Developer's Guide (1)
- Tapestry sub-page to identify and resolve issues
- 5 Cart tapestry, let us try to do some small
- tapestry Cart 4, the purchase of the amount of statistics
- 3 Cart tapestry to buy fruit
- 2 Cart tapestry, fruit shop
- 1 Cart tapestry, landing
- Wap Application Development Tapestry (Original)
- tapestry environmental structures
- Tapestry4 refused the injection (Inject) function
- Tapestry template technology into
- tapestry of research and application of binding
- Tapestry framework to expand research
- Exception Handling Tapestry modify page
- Tapestry data format conversion and storage of the study between the 2
- Tapestry data format conversion and storage of the study between 1
Can't Find What You're Looking For?
Rating: Not yet rated