Class XmlSearchForm

    • Method Detail

      • displayScripts

        public void displayScripts​(javax.servlet.jsp.JspWriter jw,
                                   PagesContext pagesContext)
        Prints the javascripts which will be used to control the new values given to the data record fields. The error messages may be adapted to a local language. The RecordTemplate gives the field type and constraints. The RecordTemplate gives the local label too. Never throws an Exception but log a silvertrace and writes an empty string when :
        • a field is unknown by the template.
        • a field has not the required type.
        Specified by:
        displayScripts in interface Form
        Overrides:
        displayScripts in class AbstractForm
        Parameters:
        jw - the JSP writer into which the javascript is written.
        pagesContext - the JSP page context.
      • toString

        public String toString​(PagesContext pagesContext,
                               DataRecord record)
        Prints the HTML layout of the dataRecord using the RecordTemplate to extract labels and extra informations. The value formats may be adapted to a local language. Never throws an Exception but log a silvertrace and writes an empty string when :
        • a field is unknown by the template.
        • a field has not the required type.
      • display

        public void display​(javax.servlet.jsp.JspWriter jw,
                            PagesContext pageContext,
                            DataRecord record)
        Description copied from class: AbstractForm
        Prints this form into the specified JSP writer according to the specified records of data that populate the form fields.
        Specified by:
        display in interface Form
        Specified by:
        display in class AbstractForm
        Parameters:
        jw - the JSP writer.
        pageContext - the JSP page context.
        record - the record the data records embbed the form fields.