What if some entities should'n be deletable or insertable? Is there an easy way to get rid of the "new" button and trash can icon?
How to make an Entity updatable but not insertable or deletable in OpenXava?
91 views Asked by Gustavo At
1
What if some entities should'n be deletable or insertable? Is there an easy way to get rid of the "new" button and trash can icon?
If you're using XavaPro just remove the access to the new and delete actions for the role. Otherwise, you should create a controller with just the save action and define a module using it.
That is, in controllers.xml add:
And in application.xml define a module for your entity in this way: