Share

How to do Actions menu in Liferay

In this section we will see how to add set of "actions" embedded within the search container in every row. The following code snippet is responsible for rendering the actions menu button  


<liferay-ui:icon-menu>
    <liferay-ui:icon image="edit" message="Update Status"  url="<%=updateStatusURL%>" />
    <liferay-ui:icon image="permissions" message="Update Worklog" url="<%=updateWorklogURL%>" />
 </liferay-ui:icon-menu>          
 
 







This is two step process
  Define render url
  Create a actions menu

In the above snippet i defined a two render urls named updateStatusURL and updateWorklogURL.So when i click on Update Status action menu button it will navigate to the repective page defined in updateStatusURL render url variable. Same thing will happen for Update Worklog also.