Hi,
I want to display a message box or something like this from the tbo.
How can I achieve this.
Thanks
You dont', and pretty much can't.
A TBO is a business object intended for business logic without a UI. If it's an error or some such then the TBO can save this in it's state and the UI driving it can pick this up.
What is the scenario you are trying to cater for with this requirement?
errors messages can be set in a TBO via java error features. But it will depend on the UI if the error is captured and if so what would happen. Recently I extended the doCheckout method and created a new DfException telling the user that checkouts were disabled.... worked for an Aspect so should also work for TBO.
succes messages would have to be saved in the object or posted to the users inbox.