org.springframework.binding.form
Interface FieldFaceSource

All Known Implementing Classes:
CachingFieldFaceSource, MessageSourceFieldFaceSource

public interface FieldFaceSource

Interface to be implemented by objects that can resolve a FieldFace for a field path and optionaly a given context.

Author:
Oliver Hutchison, Mathias Broekelmann
See Also:
MessageSourceFieldFaceSource

Method Summary
 FieldFace getFieldFace(String field)
          Return the FieldFace for the field.
 FieldFace getFieldFace(String field, Object context)
          Return the FieldFace for the given field name and a context.
 

Method Detail

getFieldFace

FieldFace getFieldFace(String field)
Return the FieldFace for the field.

Parameters:
field - the form field
Returns:
the FieldFace for the given field (never null).

getFieldFace

FieldFace getFieldFace(String field,
                       Object context)
Return the FieldFace for the given field name and a context.

Parameters:
field - the field name
context - optional context for the field face
Returns:
the FieldFace for the given field (never null).
Throws:
IllegalArgumentException - if field is null or empty


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.