All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.xava.propertyActions.jsp Maven / Gradle / Ivy

There is a newer version: 7.4.3
Show newest version
<%@ include file="imports.jsp"%>

<%@page import="org.openxava.model.meta.MetaProperty"%>


<%@page import="org.openxava.web.Ids"%>

<% 
boolean lastSearchKey = "true".equals(request.getParameter("lastSearchKey"));
boolean editable = "true".equals(request.getParameter("editable"));
String viewObject = request.getParameter("viewObject");
viewObject = (viewObject == null || viewObject.equals(""))?"xava_view":viewObject;
org.openxava.view.View view = (org.openxava.view.View) context.get(request, viewObject);
String propertyKey = Ids.undecorate(request.getParameter("propertyKey")); 
String propertyName = request.getParameter("propertyName");
MetaProperty p = view.getMetaProperty(propertyName);
if (lastSearchKey) {	
	String referencedModel = p.getMetaModel().getName();
%>
	<% if (view.isSearch() && editable) {%>	

	<% } %>
	<% if (view.isCreateNew() && editable) {%>

	<% } %>
	<% if (view.isModify() && editable) {%>
	
	<% } %>
	<% if (editable) {%>
	
	<% } %>
<% 
}
if (editable){
	for (java.util.Iterator itActions = view.getActionsNamesForReference(lastSearchKey).iterator(); itActions.hasNext();) {
		String action = (String) itActions.next();
%>
 
<%
	}
}

for (java.util.Iterator itActions = view.getActionsNamesForProperty(p, editable).iterator(); itActions.hasNext();) {
	String action = (String) itActions.next();
%>

<%
}
%>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy