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 c586a8ac
authored
Oct 06, 2012
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix jsf errors
1 parent
5730f5af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
code/LanBortalWeb/WebContent/resources/cditools/login/login.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/AuthView.java
code/LanBortalWeb/WebContent/resources/cditools/login/login.xhtml
View file @
c586a8a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<c:when
test=
"#{not empty cc.attrs.isOneliner}"
>
<c:when
test=
"#{not empty cc.attrs.isOneliner}"
>
<h:inputText
styleClass=
"form"
id=
"linelogin"
value=
"#{authView.login}"
/>
<h:inputText
styleClass=
"form"
id=
"linelogin"
value=
"#{authView.login}"
/>
<h:inputSecret
styleClass=
"form"
id=
"linepwd"
value=
"#{authView.password}"
/>
<h:inputSecret
styleClass=
"form"
id=
"linepwd"
value=
"#{authView.password}"
/>
<h:commandButton
styleClass=
"button"
id=
"onelinesubmit"
action=
"#{authView.executeLogin
()
}"
value=
"#{i18n['login.submit']}"
/>
<h:commandButton
styleClass=
"button"
id=
"onelinesubmit"
action=
"#{authView.executeLogin
Action
}"
value=
"#{i18n['login.submit']}"
/>
</c:when>
</c:when>
<c:otherwise>
<c:otherwise>
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/AuthView.java
View file @
c586a8a
...
@@ -59,12 +59,12 @@ public class AuthView extends GenericCDIView {
...
@@ -59,12 +59,12 @@ public class AuthView extends GenericCDIView {
}
}
public
String
executeLogin
()
{
public
void
executeLogin
()
{
bootStrapBean
.
saneDefaults
();
bootStrapBean
.
saneDefaults
();
if
(
login
==
null
||
password
==
null
||
login
.
isEmpty
()
||
password
.
isEmpty
())
{
if
(
login
==
null
||
password
==
null
||
login
.
isEmpty
()
||
password
.
isEmpty
())
{
return
null
;
return
;
}
}
HttpServletRequest
request
=
getRequest
();
HttpServletRequest
request
=
getRequest
();
...
@@ -100,6 +100,11 @@ public class AuthView extends GenericCDIView {
...
@@ -100,6 +100,11 @@ public class AuthView extends GenericCDIView {
}
}
return
;
}
public
String
executeLoginAction
()
{
executeLogin
();
return
null
;
return
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