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

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

<%@page import="org.openxava.controller.meta.MetaControllers"%>
<%@page import="org.openxava.controller.meta.MetaController"%>
<%@page import="org.openxava.util.Is"%>
<%@page import="org.openxava.web.Ids"%>
<%@page import="org.openxava.util.Labels"%>
<%@page import="java.util.Collection"%>
<%@page import="org.openxava.controller.meta.MetaAction"%>
<%@page import="org.openxava.controller.meta.MetaSubcontroller"%>

<%@ include file="imports.jsp"%>




<%
org.openxava.controller.ModuleManager manager = (org.openxava.controller.ModuleManager) context.get(request, "manager", "org.openxava.controller.ModuleManager");
manager.setSession(session);
String controllerName = request.getParameter("controller");
MetaController metaController = MetaControllers.getMetaController(controllerName);
String image = request.getParameter("image");
if (Is.empty(image)) image = metaController.getImage();
String icon = request.getParameter("icon"); 
if (Is.empty(icon)) icon = metaController.getIcon();
String mode = request.getParameter("xava_mode"); 
if (mode == null) mode = manager.getModeName();
String argv = request.getParameter("argv");
if (Is.empty(argv)) argv = "";
// add the mode in the ids to fix problem on the split mode
String id = Ids.decorate(request, "sc-" + controllerName + "_" + mode);
String containerId = Ids.decorate(request, "sc-container-" + controllerName + "_" + mode);
String buttonId = Ids.decorate(request, "sc-button-" + controllerName + "_" + mode);
String imageId = Ids.decorate(request, "sc-image-" + controllerName + "_" + mode);
String aId = Ids.decorate(request, "sc-a-" + controllerName + "_" + mode);
String spanId = Ids.decorate(request, "sc-span-" + controllerName + "_" + mode);
%>

	
		
			 
			<% if (!Is.emptyString(icon) && (style.isUseIconsInsteadOfImages() || Is.emptyString(image))) { %>
			
			<% } else { %>
            
			<% } %>
			<%= Labels.get(controllerName)%>
			 
			
		
	
	
	
<% Collection actions = manager.getSubcontrollerMetaActions(controllerName); java.util.Iterator actionsIt = actions.iterator(); while(actionsIt.hasNext()){ MetaAction action = (MetaAction)actionsIt.next(); if (action.appliesToMode(mode)) { %> <% } } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy