Comments (3)
Hi,
you need to override error pages configuration on web.xml, as described here.
For your case it should be:
<error-page>
<error-code>403</error-code>
<location>/403.htm</location>
</error-page>
<error-page>
<exception-type>com.github.adminfaces.template.exception.AccessDeniedException</exception-type>
<location>/403.htm</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/404.htm</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/500.htm</location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/500.htm</location>
</error-page>
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/expired.htm</location>
</error-page>
<error-page>
<exception-type>javax.persistence.OptimisticLockException</exception-type>
<location>/optimistic.htm</location>
</error-page>
You'll also need to change loginPage and indexPage configuration in admin-config to respect the desired suffix, see here
I hope it helps.
from admin-showcase.
Do i need to add for an example 404.xhtml file in my webpages folder?
from admin-showcase.
No, only if you want to customize it.
from admin-showcase.
Related Issues (20)
- Add JavaMelody for monitoring
- Add SpringSecurity HOT 4
- Migrate to OpenShift V3 HOT 1
- Disable AdminFilter HOT 2
- Migrate from OpenShift to another cloud provider HOT 1
- Don't work in Tomcat 8 HOT 2
- Update to PrimeFaces 6.2
- Create a separated profile for tests
- Add right sidebar for layout setup as in AdminLTE HOT 1
- Add drag and drop sample
- Replace 'href' for outcome on showcase menu links
- Try start with swarm but dont working HOT 2
- Remove docs from showcase
- Responsive is not working properly when minimize and maximize the screen HOT 4
- Add mult level menu example
- showcase.war HOT 1
- Showcase unavailable HOT 2
- default value of controlsidebar from admin-config.properties not set correctly HOT 1
- Disable AdminFilter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from admin-showcase.