Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
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 f122103c
authored
Oct 21, 2013
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possible fix to template header image checking
1 parent
000c6fe8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
code/MoyaWeb/WebContent/resources/templates/template1/template.xhtml
code/MoyaWeb/src/fi/codecrew/moya/web/helper/LayoutView.java
code/MoyaWeb/WebContent/resources/templates/template1/template.xhtml
View file @
f122103
...
...
@@ -46,8 +46,8 @@
<img
src=
"#{request.contextPath}/resources/templates/insomnia2/img/devel_logo.png"
/>
</c:when>
<c:otherwise>
<p:graphicImage
rendered=
"#{
!empty layoutView.headeri
mage}"
value=
"#{layoutView.headerimage}"
/>
<ui:fragment
rendered=
"#{
empty layoutView.headeri
mage}"
>
<p:graphicImage
rendered=
"#{
layoutView.isHeaderI
mage}"
value=
"#{layoutView.headerimage}"
/>
<ui:fragment
rendered=
"#{
!layoutView.isHeaderI
mage}"
>
<h1>
<h:outputText
value=
"#{layoutView.headertext}"
/>
</h1>
...
...
code/MoyaWeb/src/fi/codecrew/moya/web/helper/LayoutView.java
View file @
f122103
...
...
@@ -150,6 +150,11 @@ public class LayoutView {
// return "";
// }
public
boolean
getIsHeaderImage
()
{
return
getHeaderimage
()
!=
null
;
}
public
StreamedContent
getHeaderimage
()
{
if
(
headertext
==
null
&&
headerimage
==
null
)
{
...
...
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