Commit c586a8ac by Juho Juopperi

fix jsf errors

1 parent 5730f5af
...@@ -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.executeLoginAction}" value="#{i18n['login.submit']}" />
</c:when> </c:when>
<c:otherwise> <c:otherwise>
......
...@@ -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;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!