Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 46ee0435
authored
Oct 23, 2012
by
Riku Silvola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
err_id
1 parent
84419f03
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
code/LanBortalWeb/WebContent/error.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/web/ErrorPageView.java
code/LanBortalWeb/WebContent/error.xhtml
View file @
46ee043
...
...
@@ -6,12 +6,19 @@
<title></title>
</h:head>
<h:body>
<br/>
<center>
<img
src=
"#{request.contextPath}/resources/media/error.jpg"
/>
<h1>
LOL, ERROR!
</h1>
<br/>
<c:if
test=
"#{sessionHandler.isInDevelopmentMode() eq false}"
>
<h:outputText
escape=
"false"
style=
"color: red;"
value=
"ERR##{errorPageView.time}"
/>
</c:if>
<br/><br/>
</center>
<c:when
test=
"#{sessionHandler.isInDevelopmentMode()}"
>
<h:outputText
escape=
"false"
value=
"#{errorPageView.stackTrace}"
/>
</c:when>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/src/fi/insomnia/bortal/web/ErrorPageView.java
View file @
46ee043
package
fi
.
insomnia
.
bortal
.
web
;
import
javax.ejb.EJB
;
import
javax.enterprise.context.ConversationScoped
;
import
javax.enterprise.context.RequestScoped
;
import
javax.faces.application.FacesMessage
;
import
javax.faces.context.FacesContext
;
...
...
@@ -20,6 +18,7 @@ import java.io.PrintWriter;
import
java.io.Serializable
;
import
java.io.StringWriter
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -45,4 +44,8 @@ public class ErrorPageView {
}
public
Long
getTime
(){
return
Calendar
.
getInstance
().
getTimeInMillis
();
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment