Fórumok
SessionMessages between portlets
Fernando O, módosítva 13 év-val korábban
SessionMessages between portlets
New Member Bejegyzések: 19 Csatlakozás dátuma: 2010.07.20. Legújabb bejegyzések
Hi everybody!!
I've a task and I don't know very well how can I do it.
We have a portlet in every page and we want to show the SessionMessages and the SessionErrors realeased by other portlets, in this one.
For example. I have a portlet to add some templates, if the addition is correct:
otherwise:
In the other portlet (the one that I've in every page) y want to capture those messages:
But this doesn't work. Do you have any idea about how can I solve it?
Another way that I'm looking is using inter portlet comunication IPC and send directly the message but I think it must be another easier way using SessionMessages/SessionErrors and <liferay-ui:success/>/<liferay-ui:error/>
Tanks in advance for your help.
-fernando-
I've a task and I don't know very well how can I do it.
We have a portlet in every page and we want to show the SessionMessages and the SessionErrors realeased by other portlets, in this one.
For example. I have a portlet to add some templates, if the addition is correct:
SessionMessages.add(actionRequest, "everithing-right");
otherwise:
SessionErrors.add(actionRequest, "errors-in-the-process");
In the other portlet (the one that I've in every page) y want to capture those messages:
<liferay-ui:success key="everithing-right" message="everithing-right" />
<liferay-ui:error key="errors-in-the-process" message="errors-in-the-process" />
But this doesn't work. Do you have any idea about how can I solve it?
Another way that I'm looking is using inter portlet comunication IPC and send directly the message but I think it must be another easier way using SessionMessages/SessionErrors and <liferay-ui:success/>/<liferay-ui:error/>
Tanks in advance for your help.
-fernando-