Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 42a59ade
authored
Oct 06, 2012
by
Tuukka Kivilahti, TKffTK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
can haz save
1 parent
20c3a322
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
21 deletions
code/LanBortalAuthModuleClient/.classpath
code/LanBortalTerminalWeb/.classpath
code/LanBortalTerminalWeb/.settings/org.eclipse.jdt.core.prefs
code/LanBortalWeb/WebContent/place/edit.xhtml
code/LanBortalWeb/WebContent/resources/cditools/user/edit.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/UserView.java
code/LanBortalAuthModuleClient/.classpath
View file @
42a59ad
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/
JavaSE-1.6
"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/
jdk1.7.0_05
"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
</attributes>
</attributes>
...
...
code/LanBortalTerminalWeb/.classpath
View file @
42a59ad
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpath>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.web.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1.2"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"j
ava
"
/>
<attribute
name=
"owner.project.facets"
value=
"j
st.web
"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.j
st.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1.2
"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.j
dt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_05
"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"j
st.web
"
/>
<attribute
name=
"owner.project.facets"
value=
"j
ava
"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.web.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"output"
path=
"build/classes"
/>
<classpathentry
kind=
"output"
path=
"build/classes"
/>
</classpath>
</classpath>
code/LanBortalTerminalWeb/.settings/org.eclipse.jdt.core.prefs
View file @
42a59ad
eclipse.preferences.version=1
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.compiler.source=1.6
code/LanBortalWeb/WebContent/place/edit.xhtml
View file @
42a59ad
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
</h:dataTable>
</h:dataTable>
</h:form>
</h:form>
<h:form
rendered=
"#{!empty placeView.place.group and
placeView.place.group.places.size() gt 0}
"
>
<h:form
rendered=
"#{!empty placeView.place.group and
not placeView.place.group.places.empty
"
>
<h:panelGrid
columns=
"2"
>
<h:panelGrid
columns=
"2"
>
<h:outputLabel
value=
"#{i18n['placegroup.name']}:"
/>
<h:outputLabel
value=
"#{i18n['placegroup.name']}:"
/>
<h:inputText
value=
"#{placeView.place.group.name}"
/>
<h:inputText
value=
"#{placeView.place.group.name}"
/>
...
...
code/LanBortalWeb/WebContent/resources/cditools/user/edit.xhtml
View file @
42a59ad
...
@@ -21,52 +21,52 @@
...
@@ -21,52 +21,52 @@
<h:panelGrid
columns=
"3"
>
<h:panelGrid
columns=
"3"
>
<h:outputLabel
rendered=
"#{!cc.attrs.creating}"
value=
"#{i18n['user.login']}:"
for=
"viewlogin"
/>
<h:outputLabel
rendered=
"#{!cc.attrs.creating}"
value=
"#{i18n['user.login']}:"
for=
"viewlogin"
/>
<h:outputText
rendered=
"#{!cc.attrs.creating}"
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
<h:outputText
rendered=
"#{!cc.attrs.creating}"
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
id=
"viewlogin"
value=
"#{userView.selectedUser.login}"
id=
"viewlogin"
value=
"#{userView.selectedUser.login}"
/>
/>
<h:message
rendered=
"#{!cc.attrs.creating}"
for=
"viewlogin"
/>
<h:message
rendered=
"#{!cc.attrs.creating}"
for=
"viewlogin"
/>
<h:outputLabel
rendered=
"#{cc.attrs.creating}"
value=
"#{i18n['user.login']}:"
for=
"login"
/>
<h:outputLabel
rendered=
"#{cc.attrs.creating}"
value=
"#{i18n['user.login']}:"
for=
"login"
/>
<h:inputText
size=
"45"
rendered=
"#{cc.attrs.creating}"
validator=
"#{userValidator.login}"
<h:inputText
size=
"45"
rendered=
"#{cc.attrs.creating}"
validator=
"#{userValidator.login}"
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
id=
"login"
value=
"#{userView.selectedUser.login}"
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
id=
"login"
value=
"#{userView.selectedUser.login}"
/>
/>
<h:message
rendered=
"#{cc.attrs.creating}"
for=
"login"
/>
<h:message
rendered=
"#{cc.attrs.creating}"
for=
"login"
/>
<h:outputLabel
value=
"#{i18n['user.nick']}:"
for=
"nick"
/>
<h:outputLabel
value=
"#{i18n['user.nick']}:"
for=
"nick"
/>
<h:inputText
size=
"45"
id=
"nick"
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
value=
"#{userView.selectedUser.nick}"
/>
<h:inputText
size=
"45"
id=
"nick"
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
value=
"#{userView.selectedUser.nick}"
/>
<h:message
for=
"nick"
/>
<h:message
for=
"nick"
/>
<h:outputLabel
value=
"#{i18n['user.email']}:"
for=
"email"
/>
<h:outputLabel
value=
"#{i18n['user.email']}:"
for=
"email"
/>
<h:inputText
validator=
"#{userValidator.validateEmail}"
size=
"45"
id=
"email"
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
<h:inputText
validator=
"#{userValidator.validateEmail}"
size=
"45"
id=
"email"
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
value=
"#{userView.selectedUser.email}"
value=
"#{userView.selectedUser.email}"
/>
/>
<h:message
for=
"email"
/>
<h:message
for=
"email"
/>
<h:outputLabel
value=
"#{i18n['user.firstNames']}:"
for=
"firstnames"
/>
<h:outputLabel
value=
"#{i18n['user.firstNames']}:"
for=
"firstnames"
/>
<h:inputText
size=
"45"
id=
"firstnames"
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
<h:inputText
size=
"45"
id=
"firstnames"
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
value=
"#{userView.selectedUser.firstnames}"
value=
"#{userView.selectedUser.firstnames}"
/>
/>
<h:message
for=
"firstnames"
/>
<h:message
for=
"firstnames"
/>
<h:outputLabel
value=
"#{i18n['user.lastName']}:"
for=
"lastname"
/>
<h:outputLabel
value=
"#{i18n['user.lastName']}:"
for=
"lastname"
/>
<h:inputText
size=
"45"
id=
"lastname"
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
<h:inputText
size=
"45"
id=
"lastname"
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
value=
"#{userView.selectedUser.lastname}"
value=
"#{userView.selectedUser.lastname}"
/>
/>
<h:message
for=
"lastname"
/>
<h:message
for=
"lastname"
/>
<h:outputLabel
value=
"#{i18n['user.address']}:"
for=
"address"
/>
<h:outputLabel
value=
"#{i18n['user.address']}:"
for=
"address"
/>
<h:inputText
size=
"45"
id=
"address"
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
<h:inputText
size=
"45"
id=
"address"
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
value=
"#{userView.selectedUser.address}"
value=
"#{userView.selectedUser.address}"
/>
/>
<h:message
for=
"address"
/>
<h:message
for=
"address"
/>
<h:outputLabel
value=
"#{i18n['user.zipCode']}:"
for=
"zip"
/>
<h:outputLabel
value=
"#{i18n['user.zipCode']}:"
for=
"zip"
/>
<h:inputText
size=
"45"
id=
"zip"
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
value=
"#{userView.selectedUser.zip}"
/>
<h:inputText
size=
"45"
id=
"zip"
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
value=
"#{userView.selectedUser.zip}"
/>
<h:message
for=
"zip"
/>
<h:message
for=
"zip"
/>
<h:outputLabel
value=
"#{i18n['user.town']}:"
for=
"town"
/>
<h:outputLabel
value=
"#{i18n['user.town']}:"
for=
"town"
/>
<h:inputText
size=
"45"
id=
"town"
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
value=
"#{userView.selectedUser.town}"
/>
<h:inputText
size=
"45"
id=
"town"
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
value=
"#{userView.selectedUser.town}"
/>
<h:message
for=
"town"
/>
<h:message
for=
"town"
/>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</h:selectOneMenu>
</h:selectOneMenu>
-->
-->
<h:outputLabel
value=
"#{i18n['user.sex']}:"
for=
"sex"
/>
<h:outputLabel
value=
"#{i18n['user.sex']}:"
for=
"sex"
/>
<h:selectOneRadio
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
id=
"sex"
<h:selectOneRadio
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
id=
"sex"
value=
"#{userView.selectedUser.gender}"
value=
"#{userView.selectedUser.gender}"
>
>
<f:selectItem
id=
"undefined"
itemLabel=
"#{i18n['user.sex.UNDEFINED']}"
itemValue=
"UNDEFINED"
/>
<f:selectItem
id=
"undefined"
itemLabel=
"#{i18n['user.sex.UNDEFINED']}"
itemValue=
"UNDEFINED"
/>
...
@@ -106,14 +106,14 @@
...
@@ -106,14 +106,14 @@
<h:message
rendered=
"#{cc.attrs.creating}"
for=
"passwordcheck"
/>
<h:message
rendered=
"#{cc.attrs.creating}"
for=
"passwordcheck"
/>
<h:outputLabel
rendered=
"#{sessionHandler.superadmin}"
value=
"#{i18n['user.superadmin']}:"
for=
"superadmin"
/>
<h:outputLabel
rendered=
"#{sessionHandler.superadmin}"
value=
"#{i18n['user.superadmin']}:"
for=
"superadmin"
/>
<h:selectBooleanCheckbox
disabled=
"#{!cc.attrs.creating and !userView.canSave
()
}"
<h:selectBooleanCheckbox
disabled=
"#{!cc.attrs.creating and !userView.canSave}"
rendered=
"#{sessionHandler.superadmin}"
id=
"superadmin"
value=
"#{userView.selectedUser.superadmin}"
rendered=
"#{sessionHandler.superadmin}"
id=
"superadmin"
value=
"#{userView.selectedUser.superadmin}"
/>
/>
<h:message
rendered=
"#{sessionHandler.superadmin}"
for=
"superadmin"
/>
<h:message
rendered=
"#{sessionHandler.superadmin}"
for=
"superadmin"
/>
<h:commandButton
rendered=
"#{cc.attrs.creating or userView.canSave
()
}"
id=
"commitbtn"
<h:commandButton
rendered=
"#{cc.attrs.creating or userView.canSave}"
id=
"commitbtn"
action=
"#{cc.attrs.commitaction}"
value=
"#{cc.attrs.commitvalue}"
action=
"#{cc.attrs.commitaction}"
value=
"#{cc.attrs.commitvalue}"
/>
/>
</h:panelGrid>
</h:panelGrid>
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/UserView.java
View file @
42a59ad
...
@@ -260,7 +260,7 @@ public class UserView extends GenericCDIView {
...
@@ -260,7 +260,7 @@ public class UserView extends GenericCDIView {
return
user
;
return
user
;
}
}
public
boolean
c
anSave
()
{
public
boolean
isC
anSave
()
{
return
canSave
;
return
canSave
;
}
}
...
...
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