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 f4718ec8
authored
Mar 20, 2010
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
1 parent
dc848c79
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
63 deletions
code/LanBortalDatabase/src/fi/insomnia/bortal/model/EventSettings.java
code/LanBortalWeb/WebContent/resources/tools/user/list.xhtml
code/LanBortalWeb/WebContent/user/list.xhtml
code/LanBortalDatabase/src/fi/insomnia/bortal/model/EventSettings.java
View file @
f4718ec
...
@@ -27,9 +27,8 @@ import javax.persistence.Version;
...
@@ -27,9 +27,8 @@ import javax.persistence.Version;
@Table
(
name
=
"event_settings"
)
@Table
(
name
=
"event_settings"
)
@NamedQueries
(
{
@NamedQueries
(
{
@NamedQuery
(
name
=
"EventSettings.findAll"
,
query
=
"SELECT e FROM EventSettings e"
),
@NamedQuery
(
name
=
"EventSettings.findAll"
,
query
=
"SELECT e FROM EventSettings e"
),
@NamedQuery
(
name
=
"EventSettings.findByOrganisation"
,
query
=
"SELECT e FROM EventSettings e WHERE e.organisation = :organisation"
),
@NamedQuery
(
name
=
"EventSettings.findByOrganisation"
,
query
=
"SELECT e FROM EventSettings e WHERE organisation = :organisation"
),
@NamedQuery
(
name
=
"EventSettings.findByBundleCountry"
,
query
=
"SELECT e FROM EventSettings e WHERE e.bundleCountry = :bundlecountry"
)
})
@NamedQuery
(
name
=
"EventSettings.findByBundleCountry"
,
query
=
"SELECT e FROM EventSettings e WHERE bundleCountry = :bundleCountry"
)
})
public
class
EventSettings
implements
ModelInterface
{
public
class
EventSettings
implements
ModelInterface
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
code/LanBortalWeb/WebContent/resources/tools/user/list.xhtml
View file @
f4718ec
<?xml version='1.0' encoding='UTF-8' ?>
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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"
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:h=
"http://java.sun.com/jsf/html"
>
xmlns:h=
"http://java.sun.com/jsf/html"
<h:head>
xmlns:f=
"http://java.sun.com/jsf/core"
<title>
Facelet Title
</title>
xmlns:composite=
"http://java.sun.com/jsf/composite"
</h:head>
xmlns:ui=
"http://java.sun.com/jsf/facelets"
<h:body>
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
Hello from Facelets
xmlns:bortal=
"http://java.sun.com/jsf/composite/tools/user"
</h:body>
>
<composite:interface>
</composite:interface>
<composite:implementation>
<h:form>
<h:dataTable
border=
"1"
id=
"user"
value=
"#{userView.users}"
var=
"user"
>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Id"
/>
</f:facet>
<h:outputText
value=
"#{user.id}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Real name"
/>
</f:facet>
<h:outputText
value=
"#{user.firstnames}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Address"
/>
</f:facet>
<h:outputText
value=
"#{user.address}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Town"
/>
</f:facet>
<h:outputText
value=
"#{user.town}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Zip"
/>
</f:facet>
<h:outputText
value=
"#{user.zip}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Phone number"
/>
</f:facet>
<h:outputText
value=
"#{user.phone}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Sex"
/>
</f:facet>
<h:outputText
value=
"#{user.female}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Edit"
/>
</f:facet>
<h:commandButton
action=
"#{userView.edit()}"
value=
"Edit"
/>
</h:column>
</h:dataTable>
</h:form>
</composite:implementation>
</html>
</html>
code/LanBortalWeb/WebContent/user/list.xhtml
View file @
f4718ec
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<html
xmlns=
"http://www.w3.org/1999/xhtml"
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:bortal=
"http://java.sun.com/jsf/composite/tools/user"
xmlns:f=
"http://java.sun.com/jsf/core"
>
xmlns:f=
"http://java.sun.com/jsf/core"
>
<h:head>
<h:head>
<title></title>
<title></title>
...
@@ -13,58 +14,9 @@
...
@@ -13,58 +14,9 @@
<ui:define
name=
"title"
>
EditUser
</ui:define>
<ui:define
name=
"title"
>
EditUser
</ui:define>
<ui:define
name=
"header"
>
Edit user
</ui:define>
<ui:define
name=
"header"
>
Edit user
</ui:define>
<ui:define
name=
"content"
>
<ui:define
name=
"content"
>
<h:form>
<h:dataTable
border=
"1"
id=
"user"
value=
"#{userView.users}"
var=
"user"
>
<bortal:list
/>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Id"
/>
</f:facet>
<h:outputText
value=
"#{user.id}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Real name"
/>
</f:facet>
<h:outputText
value=
"#{user.firstnames}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Address"
/>
</f:facet>
<h:outputText
value=
"#{user.address}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Town"
/>
</f:facet>
<h:outputText
value=
"#{user.town}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Zip"
/>
</f:facet>
<h:outputText
value=
"#{user.zip}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Phone number"
/>
</f:facet>
<h:outputText
value=
"#{user.phone}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Sex"
/>
</f:facet>
<h:outputText
value=
"#{user.female}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Edit"
/>
</f:facet>
<h:commandButton
action=
"#{userView.edit()}"
value=
"Edit"
/>
</h:column>
</h:dataTable>
</h:form>
</ui:define>
</ui:define>
<ui:define
name=
"footer"
>
footer
</ui:define>
<ui:define
name=
"footer"
>
footer
</ui:define>
</ui:composition>
</ui:composition>
...
...
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