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 bdc1a5a4
authored
Sep 01, 2013
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redirect from index.html to frontpage
1 parent
e772f104
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
24 deletions
code/MoyaWeb/WebContent/frontpage.xhtml
code/MoyaWeb/WebContent/index.xhtml
code/MoyaWeb/src/fi/codecrew/moya/web/helper/LayoutView.java
code/MoyaWeb/WebContent/frontpage.xhtml
0 → 100644
View file @
bdc1a5a
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
>
<h:head>
<title></title>
</h:head>
<h:body>
<ui:composition
template=
"#{sessionHandler.template}"
>
<f:metadata>
<f:event
type=
"preRenderView"
listener=
"#{pageOutputView.initIndexView}"
/>
</f:metadata>
<ui:define
name=
"content"
>
<h:outputLabel
rendered=
"#{sessionHandler.isInDevelopmentMode()}"
>
Development-tilassa.
Täällä voit huoletta rikkoa.
</h:outputLabel>
<ui:fragment
rendered=
"#{layoutView.manageContent}"
>
<h:link
value=
"#{i18n['layout.editContent']}"
outcome=
"/pages/manage"
>
<f:param
name=
"pagename"
value=
"#{layoutView.pagepath}"
/>
</h:link>
<br
/>
</ui:fragment>
<ui:repeat
var=
"cont1"
value=
"#{pageOutputView.contents}"
>
<h:outputText
value=
"#{cont1.content}"
escape=
"false"
/>
</ui:repeat>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/MoyaWeb/WebContent/index.xhtml
View file @
bdc1a5a
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
>
<h:head>
<meta
http-equiv=
"refresh"
content=
"1;url=frontpage.jsf"
/>
<script
type=
"text/javascript"
>
window
.
location
.
href
=
"frontpage.jsf"
</script>
<title></title>
</h:head>
<h:body>
<ui:composition
template=
"#{sessionHandler.template}"
>
<f:metadata>
<f:event
type=
"preRenderView"
listener=
"#{pageOutputView.initIndexView}"
/>
</f:metadata>
<ui:define
name=
"content"
>
<h:outputLabel
rendered=
"#{sessionHandler.isInDevelopmentMode()}"
>
Development-tilassa.
Täällä voit huoletta rikkoa.
</h:outputLabel>
<ui:fragment
rendered=
"#{layoutView.manageContent}"
>
<h:link
value=
"#{i18n['layout.editContent']}"
outcome=
"/pages/manage"
>
<f:param
name=
"pagename"
value=
"#{layoutView.pagepath}"
/>
</h:link>
<br
/>
</ui:fragment>
<ui:repeat
var=
"cont1"
value=
"#{pageOutputView.contents}"
>
<h:outputText
value=
"#{cont1.content}"
escape=
"false"
/>
</ui:repeat>
</ui:define>
</ui:composition>
Redirecting to
<a
href=
"frontpage.jsf"
>
Frontpage
</a>
</h:body>
</html>
\ No newline at end of file
code/MoyaWeb/src/fi/codecrew/moya/web/helper/LayoutView.java
View file @
bdc1a5a
...
...
@@ -156,8 +156,7 @@ public class LayoutView {
LanEventProperty
logo
=
eventbean
.
getProperty
(
LanEventPropertyKey
.
EVENT_LOGO
);
if
(
logo
!=
null
)
{
if
(
logo
.
getByteMime
()
==
null
)
{
if
(
logo
.
getByteMime
()
==
null
||
logo
.
getByteValue
()
==
null
)
{
headertext
=
logo
.
getTextvalue
();
}
else
{
headerimage
=
new
DefaultStreamedContent
(
new
ByteArrayInputStream
(
logo
.
getByteValue
()),
logo
.
getByteMime
());
...
...
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