Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Sonar Fixes
[aaf/authz.git]
/
auth
/
auth-gui
/
src
/
main
/
java
/
org
/
onap
/
aaf
/
auth
/
gui
/
Controls.java
diff --git
a/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Controls.java
b/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Controls.java
index
3bec540
..
270b13d
100644
(file)
--- a/
auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Controls.java
+++ b/
auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Controls.java
@@
-28,6
+28,7
@@
import org.onap.aaf.misc.xgen.Cache;
import org.onap.aaf.misc.xgen.html.HTMLGen;
public class Controls extends NamedCode {
import org.onap.aaf.misc.xgen.html.HTMLGen;
public class Controls extends NamedCode {
+ public static final String INPUT = "input";
public Controls() {
super(false,"controls");
}
public Controls() {
super(false,"controls");
}
@@
-35,10
+36,10
@@
public class Controls extends NamedCode {
@Override
public void code(final Cache<HTMLGen> cache, final HTMLGen hgen) throws APIException, IOException {
hgen.incr("form","method=post")
@Override
public void code(final Cache<HTMLGen> cache, final HTMLGen hgen) throws APIException, IOException {
hgen.incr("form","method=post")
- .incr(
"input"
, true, "type=checkbox", "name=vehicle", "value=Bike").text("I have a bike").end()
+ .incr(
INPUT
, true, "type=checkbox", "name=vehicle", "value=Bike").text("I have a bike").end()
.text("Password: ")
.text("Password: ")
- .incr(
"input"
, true, "type=password", "id=password1").end()
- .tagOnly(
"input"
, "type=submit", "value=Submit")
+ .incr(
INPUT
, true, "type=password", "id=password1").end()
+ .tagOnly(
INPUT
, "type=submit", "value=Submit")
.end();
}
.end();
}