NextApp Echo
App Container 1.0.5

nextapp.echoservlet
Class HtmlElements

java.lang.Object
  extended bynextapp.echoservlet.HtmlElements

public class HtmlElements
extends java.lang.Object

A utility class that provides methods for creating commonly used HTML elements.


Constructor Summary
private HtmlElements()
          Non-instantiable class
 
Method Summary
static Element createHiddenField(java.lang.String name, java.lang.String value)
          Creates a hidden form field with the provided name and value.
static Element createScriptInclude(Connection conn, Service service)
          Creates a script element to include an external script file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlElements

private HtmlElements()
Non-instantiable class

Method Detail

createHiddenField

public static Element createHiddenField(java.lang.String name,
                                        java.lang.String value)
Creates a hidden form field with the provided name and value.

Parameters:
name - The name of the form field.
value - The initial value of the form field. If the value is null, the hidden field will be rendered without a "value" attribute. If a value is provided, it must be in application/x-www-form-urlencoded MIME format.
Returns:
The generated hidden form field.

createScriptInclude

public static Element createScriptInclude(Connection conn,
                                          Service service)
Creates a script element to include an external script file.

Parameters:
conn - The connection to which the document will be rendered.
service - The service containing the JavaScript code to be included.
Returns:
An <script> element that will include the JavaScript code.

NextApp Echo
App Container 1.0.5