Hi,
In a CRUD list, when I can see all objects of a type, I want to display all fields of each object, in the CRUD.table.
I can do that :
#{crud.table fields:['name', 'field1', 'field2'] }
#{crud.custom 'field1'}
${object.field1 ? 'Yes' : '-' }
#{/crud.custom}
#{crud.custom 'field2'}
${object.field2 ? 'Yes' : '-' }
#{/crud.custom}
#{/crud.table}
Now, when I add a new "field3" to the bean class, I have to update this template.
Is it possible to not specify all fields names ? Something like :
#{crud.table fields:['*'] }
#{crud.custom 'field1'}
${object.field1 ? 'Yes' : '-' }
#{/crud.custom}
#{crud.custom 'field2'}
${object.field2 ? 'Yes' : '-' }
#{/crud.custom}
#{/crud.table}
Or simply, is it possible to have all fields (or some specified fields) in the CRUD table ?
Thanks,
Xavier