This page last changed on Feb 17, 2006 by [email protected].
Tag - renderBean
|
At the idea stage, not yet implemented! |
Description
The displayBean tag displays a bean in the scope with different possible views:
- a default display view of an instance of a domain class (with a simple table with labels right-aligned, and associated values in the left column)
- a form view with a table like above, pre-filled if the bean is in the current scope, or void for a creation, with the right widgets for each type of bean property (checkbox, date picker, text area, etc...)
- a third optional but interesting view could be a mix of the two above with something like edit-in-place table which would replace the values with input widgets when clicking on the value label
Parameters
- view - the type of the view, being one of "table", "form", "edit-in-place"
- form - the name of the form containing the values of the properties of the bean (not needed in the "table" view)
- bean - the name of the bean in the scope to display
- domain-class - the class name of the bean to display
Example
<g:renderBean view="table" form="formName" bean="beanName" domain-class="MyBean" />
|