org.mmbase.bridge.jsp.taglib.typehandler
Interface TypeHandler

All Known Implementing Classes:
AbstractTypeHandler, EnumHandler

public interface TypeHandler

Since:
MMBase-1.6
Version:
$Id: TypeHandler.java,v 1.9 2005/12/20 23:00:47 michiel Exp $
Author:
Gerard van de Looi
Warning: No Java Documentation Available.

Method Summary
 String checkHtmlInput(Node node, Field field, boolean errors)
          Produces a div, containing the error message for the current value, or the empty string if everything ok.
 String htmlInput(Node node, Field field, boolean search)
          Produces an form input field for the given Node, and Field.
 void init()
           
 void paramHtmlInput(ParamHandler handler, Field field)
           
 boolean useHtmlInput(Node node, Field field)
          returns true if setValue happened.
 String whereHtmlInput(Field field)
           
 Constraint whereHtmlInput(Field field, Query query)
           
 

Method Detail

htmlInput

public String htmlInput(Node node,
                        Field field,
                        boolean search)
                 throws JspTagException
Produces an form input field for the given Node, and Field.

Parameters:
search - if true, then a search field is produced.
Throws:
JspTagException

checkHtmlInput

public String checkHtmlInput(Node node,
                             Field field,
                             boolean errors)
                      throws JspTagException
Produces a div, containing the error message for the current value, or the empty string if everything ok.

Parameters:
errors - Whether to output the error messages (otherwises only invalidates form)
Throws:
JspTagException
Since:
MMBase-1.8

useHtmlInput

public boolean useHtmlInput(Node node,
                            Field field)
                     throws JspTagException
returns true if setValue happened.

Throws:
JspTagException

whereHtmlInput

public String whereHtmlInput(Field field)
                      throws JspTagException
Returns:
Piece of SQL. null if no constraint.
Throws:
JspTagException

paramHtmlInput

public void paramHtmlInput(ParamHandler handler,
                           Field field)
                    throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.7

whereHtmlInput

public Constraint whereHtmlInput(Field field,
                                 Query query)
                          throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.7

init

public void init()
Since:
MMBase-1.8


MMBase build 1.8.1.20060716