rosco [4:28 PM]
So it looks like I should make the validateXxx methods return a TranslatableString, and let Isis work its magic with that. However, we implemented an ApplicationTenancyEvaluator for EcpCrm, in which we override the disables() and hides() methods of this interface, which return Strings. How do I handle this, do I call toString() on the TranslatableString before returning it, or will that break translations?
danhaywood [5:25 PM]
Yes, that ought to work.
rosco [5:26 PM]
Is there a difference for the validateXxx() methods in returning a TranslatableString or returning a toString()
danhaywood [5:26 PM]
In general they can return either. Same for hideXxx and disableXxx
[5:27 PM]
That ApplicationTenancyEvaluator interface is in error really, ought to have been more general.
[5:27 PM]
(I'll raise a ticket to look into).
rosco [4:28 PM] So it looks like I should make the validateXxx methods return a TranslatableString, and let Isis work its magic with that. However, we implemented an ApplicationTenancyEvaluator for EcpCrm, in which we override the disables() and hides() methods of this interface, which return Strings. How do I handle this, do I call toString() on the TranslatableString before returning it, or will that break translations?
danhaywood [5:25 PM] Yes, that ought to work.
rosco [5:26 PM] Is there a difference for the validateXxx() methods in returning a TranslatableString or returning a toString()
danhaywood [5:26 PM] In general they can return either. Same for hideXxx and disableXxx [5:27 PM] That ApplicationTenancyEvaluator interface is in error really, ought to have been more general. [5:27 PM] (I'll raise a ticket to look into).