This commit is contained in:
parent
5671656d5d
commit
92d83f4ac2
2 changed files with 2 additions and 6 deletions
|
@ -56,14 +56,9 @@ import freemarker.template.Configuration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AutocompleteController is used to generate autocomplete and select element content
|
* AutocompleteController is used to generate autocomplete and select element content
|
||||||
* through a Lucene search. The search logic is copied from AutocompleteController.
|
* through a Lucene search.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* rjy7 We should have a SearchController that is subclassed by both AutocompleteController
|
|
||||||
* and AjaxSearchController, so the methods don't all have to be copied into both places.
|
|
||||||
* The parent SearchController should extend FreeMarkerHttpServlet. Can only be done
|
|
||||||
* once AutocompleteController has been moved to FreeMarker.
|
|
||||||
*/
|
|
||||||
public class AutocompleteController extends FreeMarkerHttpServlet implements Searcher{
|
public class AutocompleteController extends FreeMarkerHttpServlet implements Searcher{
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -448,6 +448,7 @@ public class InputElementFormattingTag extends TagSupport {
|
||||||
out.print("<input "+classStr+" "+sizeStr+" type=\"text\" id=\""+getId()+"\" name=\""+getName()+"\" value=\""+valueStr+"\" />");
|
out.print("<input "+classStr+" "+sizeStr+" type=\"text\" id=\""+getId()+"\" name=\""+getName()+"\" value=\""+valueStr+"\" />");
|
||||||
if (definitionTags) { out.print("</dd>"); }
|
if (definitionTags) { out.print("</dd>"); }
|
||||||
out.println();
|
out.println();
|
||||||
|
// Handle hidden inputs where Javascript writes a value that needs to be returned with an invalid submission.
|
||||||
} else if( getType().equalsIgnoreCase("hidden")) {
|
} else if( getType().equalsIgnoreCase("hidden")) {
|
||||||
String valueStr = doValue(editConfig, editSub);
|
String valueStr = doValue(editConfig, editSub);
|
||||||
if (definitionTags) { out.print("<dd>"); }
|
if (definitionTags) { out.print("<dd>"); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue