classafFormBean::SkinCtx

sys::Obj
  afFormBean::SkinCtx

Passed to InputSkins to provide all the information they need to render a form field.

bean

Source

Obj? bean

beanInvalid

Source

Bool beanInvalid()

Returns true if the bean is invalid; that is, if any field is in error.

errMsg

Source

Str? errMsg()

Returns the error message associated with this field.

field

Source

const Field field

fieldInvalid

Source

Bool fieldInvalid()

Returns true if the field has an error message.

input

Source

HtmlInput input()

Returns the @HtmlInput facet on the field.

label

Source

Str label()

Returns the preferred display label associated with the field.

msg

Source

Str? msg(Str key)

Returns the message (if any) associated with the given key.

name

Source

Str name()

Returns the name of the field. Safe for use as a CSS class name.

toClient

Source

Str toClient(Obj? value)

Converts the given value to a string using the preferred ValueEncoder.

value

Source

Str value()

Returns the preferred string value to be rendered in the <input>.