Interface FieldValidationSupport

    • Method Detail

      • toClient

        java.lang.String toClient​(java.lang.Object value,
                                  ComponentResources componentResources,
                                  FieldTranslator<java.lang.Object> translator,
                                  NullFieldStrategy nullFieldStrategy)
        A wrapper around Translator.toClient(Object) that first fires a "toclient" event on the component to see if it can perform the conversion. If the value is null, then no event is fired and the translator is not invoked, the return value is simply null.
        Parameters:
        value - to be converted to a client-side string, which may be null
        componentResources - used to fire events on the component
        translator - used if the component does not provide a non-null value
        nullFieldStrategy - used to convert a null server side value to an appropriate client side value
        Returns:
        the translated value or null if the value is null
        See Also:
        Translator.toClient(Object)