com.silverpeas.form.displayers
Class JdbcRefFieldDisplayer
java.lang.Object
com.silverpeas.form.displayers.AbstractFieldDisplayer<JdbcRefField>
com.silverpeas.form.displayers.JdbcRefFieldDisplayer
- All Implemented Interfaces:
- FieldDisplayer<JdbcRefField>
public class JdbcRefFieldDisplayer
- extends AbstractFieldDisplayer<JdbcRefField>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcRefFieldDisplayer
public JdbcRefFieldDisplayer()
display
public void display(PrintWriter out,
JdbcRefField field,
FieldTemplate template,
PagesContext pagesContext)
throws FormException
- Description copied from interface:
FieldDisplayer
- Prints the HTML value of the field. The value format may be adapted to a local language. The
fieldName must be used to name the html form input. Never throws an Exception but log a
silvertrace and writes an empty string when :
- the field type is not a managed type.
- Throws:
FormException
displayScripts
public void displayScripts(PrintWriter out,
FieldTemplate template,
PagesContext pagesContext)
throws IOException
- Description copied from interface:
FieldDisplayer
- Prints the javascripts which will be used to control the new value given to the named field.
The error messages may be adapted to a local language. The FormField gives the field type and
constraints. The FormField gives the local labeld too. Never throws an Exception but log a
silvertrace and writes an empty string when :
- the fieldName is unknown by the
template.
- the field type is not a managed type.
- Throws:
IOException
getNbHtmlObjectsDisplayed
public int getNbHtmlObjectsDisplayed(FieldTemplate template,
PagesContext pagesContext)
- Description copied from interface:
FieldDisplayer
- Return the number of HTML Objects displayed by the displayer.
- Returns:
- the number of HTML Objects displayed by the displayer.
isDisplayedMandatory
public boolean isDisplayedMandatory()
update
public List<String> update(String value,
JdbcRefField field,
FieldTemplate template,
PagesContext pagesContext)
throws FormException
- Description copied from interface:
FieldDisplayer
- Updates the value of the field. The fieldName must be used to retrieve the HTTP parameter from
the request. @throw FormException if the field type is not a managed type. @throw FormException
if the field doesn't accept the new value.
- Returns:
-
- Throws:
FormException
Copyright © 2016 Silverpeas. All Rights Reserved.