Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5
Interface NullFieldStrategy

All Known Implementing Classes:
  DefaultNullFieldStrategy, ZeroNullFieldStrategy

    public interface NullFieldStrategy

Defines a strategy, used by `Field` components such as `TextField`, to handle the case where either the server-side value to be sent (as a string) to the client, or the client-side string passed back up to the server, is null or blank.

See Also:
  `NullFieldStrategySource`

Method Summary
`java.lang.String` | `replaceFromClient()` Provides a replacement value for a null or blank string passed from the client to the server as part of a form submission.
`java.lang.Object` | `replaceToClient()` Provides a replacement value for null, when converting the server-side object to a client-side string.

Method Detail

### replaceToClient

    java.lang.Object replaceToClient()

  Provides a replacement value for null, when converting the server-side object to a client-side string. The replacement value, if non-null, will be passed to `Translator.toClient(Object)`.

### replaceFromClient

    java.lang.String replaceFromClient()

  Provides a replacement value for a null or blank string passed from the client to the server as part of a form submission. This replacement value will be passed to `Translator.parseClient(Field, String, String)` as if it were the value supplied by the user.

  Returns:
    replacement value (this must not be null)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.