Skip to content

Commit

Permalink
Merge pull request #48 from hrj/i28_url_input
Browse files Browse the repository at this point in the history
support input type=url
  • Loading branch information
hrj committed Dec 31, 2014
2 parents d4adfd3 + 13abe32 commit 071730d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected FormInput[] getFormInputs() {
if (type == null) {
return new FormInput[] { new FormInput(name, this.getValue()) };
} else {
if ("text".equals(type) || "password".equals(type) || "hidden".equals(type) || "".equals(type)) {
if ("text".equals(type) || "password".equals(type) || "hidden".equals(type) || "url".equals(type) || "".equals(type)) {
return new FormInput[] { new FormInput(name, this.getValue()) };
} else if ("submit".equals(type)) {
// It's done as an "extra" form input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ private final static BaseInputControl createInputControl(final HTMLBaseInputElem
return new InputTextControl(markupElement);
}
type = type.toLowerCase();
if ("text".equals(type) || (type.length() == 0)) {
if ("text".equals(type) || "url".equals(type) || (type.length() == 0)) {
return new InputTextControl(markupElement);
} else if ("hidden".equals(type)) {
return null;
Expand Down

0 comments on commit 071730d

Please sign in to comment.