| java.lang.Object org.apache.turbine.util.FormMessages
FormMessages | public class FormMessages (Code) | | Used for adding and accessing messages that relate to a specific
form and field. Allows to query for messages by form name and
field name. Used together with FormMessage class.
author: Neeme Praks version: $Id: FormMessages.java 534527 2007-05-02 16:10:59Z tv $ |
Method Summary | |
public FormMessage[] | getFormMessages(String formName) Gets all form messages for a given form.
Parameters: formName - A String with the form name. | public FormMessage[] | getFormMessages(String formName, String fieldName) Get form messages for a given form and field.
Parameters: formName - A String with the form name. Parameters: fieldName - A String with the field name. | public void | setMessage(String formName, String fieldName, long returnCode) Sets a message for a field of a form. | public void | setMessage(String formName, String fieldName, String messageName) Sets a message for a field of a form. |
FormMessages | public FormMessages()(Code) | | Constructor.
|
getFormMessages | public FormMessage[] getFormMessages(String formName)(Code) | | Gets all form messages for a given form.
Parameters: formName - A String with the form name. A FormMessage[]. |
getFormMessages | public FormMessage[] getFormMessages(String formName, String fieldName)(Code) | | Get form messages for a given form and field.
Parameters: formName - A String with the form name. Parameters: fieldName - A String with the field name. A FormMessage[]. |
setMessage | public void setMessage(String formName, String fieldName, long returnCode)(Code) | | Sets a message for a field of a form. The message is given as
a long representing a return code.
Parameters: formName - A String with the form name. Parameters: fieldName - A String with the field name. Parameters: returnCode - A long with the return code. |
setMessage | public void setMessage(String formName, String fieldName, String messageName)(Code) | | Sets a message for a field of a form. The message is given as
a String.
Parameters: formName - A String with the form name. Parameters: fieldName - A String with the field name. Parameters: messageName - A String with the message. |
|
|