Foren

A new and simple way of action redirection for liferay 6.2?

yang wang, geändert vor 7 Jahren.

A new and simple way of action redirection for liferay 6.2?

Junior Member Beiträge: 80 Beitrittsdatum: 24.08.15 Neueste Beiträge
Hi,
I have saw someone use below code to implement redirection after action.
<portlet:actionurl var="someActionURL" name="someActionName">
	<portlet:param name="[b]&quot;redirect&quot;[/b]" value="${someRedirectionURL}" />
</portlet:actionurl>


I have test it and it works well.
Since I have not found any official documents about this method, I am wondering if it's reliable?

Thanks.
thumbnail
Olaf Kock, geändert vor 7 Jahren.

RE: A new and simple way of action redirection for liferay 6.2?

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
yang wang:
I have saw someone use below code to implement redirection after action.


Go with David's recommendation on your other post
yang wang, geändert vor 7 Jahren.

RE: A new and simple way of action redirection for liferay 6.2?

Junior Member Beiträge: 80 Beitrittsdatum: 24.08.15 Neueste Beiträge
Just like David's recommendation, it's common place for action to redirect(change) portlet render template(not the whole page contains the portlet). This way is simpler than using mvcPath or something alike.
yang wang, geändert vor 7 Jahren.

RE: A new and simple way of action redirection for liferay 6.2?

Junior Member Beiträge: 80 Beitrittsdatum: 24.08.15 Neueste Beiträge
see my another post.