How to display flash messages in portlet


setFlash works in controller with view

but not works in portlet?

why and how to modify this?

I have one view page in components/views and its action ie rendercontent a file in components

I set setflash in rendercontent in components that file

and getflash in view but not works ?

why how to modify

any idea would be appreciated.

Sorry it works i used getFlash instead of setFlash