Is there any way to create an annotation that would mark a field’s value as 
something that ought to be detached?  That is, instead of:

private IModel<User> userModel;

                @Override
                public void onDetach() {
                                super.onDetach();
                                if (userModel != null)
                                                userModel.detach();
                }

I would like to be able to write simply:

                @Detach
private IModel<User> userModel;

Has anyone tried this?

Boris

Reply via email to