Skip to content

Instantly share code, notes, and snippets.

@tmoreira2020
Created March 21, 2013 12:53
Show Gist options
  • Save tmoreira2020/5212792 to your computer and use it in GitHub Desktop.
Save tmoreira2020/5212792 to your computer and use it in GitHub Desktop.
ListType
<%
int listTypeId = ParamUtil.getInteger(request, name, BeanParamUtil.getInteger(bean, request, listTypeFieldName));
List<ListType> listTypeModels = ListTypeServiceUtil.getListTypes(listType);
for (ListType listTypeModel : listTypeModels) {
%>
<aui:option selected="<%= listTypeId == listTypeModel.getListTypeId() %>" value="<%= listTypeModel.getListTypeId() %>"><liferay-ui:message key="<%= listTypeModel.getName() %>" /></aui:option>
<%
}
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment