Out of the box it:
- renders a field using a UI element appropriate for the property type. Constraints are used to set maximum lengths etc.
- automatically renders
- renders “required” indicators if the field is nullable:false and/or blank:false
- renders errors adjacent to the field that had the error
- renders the current value as appropriate
Here’s an example of how you can render all this for a bunch of bean properties:
<bean:withBean beanName="form"> <bean:field property="firstName"> <bean:field property="lastName"> <bean:field property="company"> <bean:field property="email"> </bean:withBean>
You can find more elaborate examples as well as instructions for use on the plugin page.
Diese Beiträge könnten Sie noch interessieren:
- MBCalendar
- JUnitMax: Bei jedem Speichern testen!
- Java resource bundle Editor für Eclipse
- Pretty cool Eclipse plugin for editing resource bundles
- VMWare will SpringSource kaufen
Berater, Coach und Trainer für effektive Produktentwicklung