(Quick Reference)

f:with

Description

Places a bean in scope so that the bean attribute can be omitted on contained tags.

Example

<f:with bean="person">
    <f:field property="name"/>
    <f:field property="address.city"/>
</f:with>

Attributes

NameRequired?Description
beanyesThe bean whose property is being rendered. This can be the object itself or the name of a page-scope variable.
prefixStringA string (including the trailing period) that should be appended before the input name such as name="${prefix}propertyName". The label is also modified.