Hi Carlo,
Let me add that, as you found out, with the current version of
Portofino you need to override the setupForm and setupTableForm
methods (respectively for the detail form and the search results form)
in order to perform this kind of customizations. This requires copying
(and maintaining!) several lines of code from Portofino. With the next
version, we are going to address this issue by refactoring both
methods and exposing appropriate hooks for users to customize the
setup of the forms.
Please note, also, that if you programmatically remove the primary key
from the table form, you'll have to manually setup the link to the
detail view on one of the other columns, because the code as it is now
does not recognize that situation and will not include the link
automatically.
Cheers,
Alessio