view gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 16:4ef6e4e9ef15

Intergate the new Pageinfrastructure into the old Layout gnv/trunk@99 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 16 Sep 2009 14:02:29 +0000
parents 4ebe57b170d3
children d7e5a929fc34
line wrap: on
line source

<%@page import="java.util.Collection"%>
<%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%>
<%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%>
<%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
<%@page import="java.util.Iterator"%>
<%Object ui = request.getAttribute("ui");
  String action = (ui == null ? "selectArtifactFactory.do" : "next.do");
%>
<div id="basefilter">
	<form id="fisSelectionForm" action="<%=action%>" method="post">
	   <fieldset>
	
	<%
	  
	  SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
	  Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
	  if (artifactFactories != null && ui == null){
	%>
	       <select name="artifactFactory">
	<%
	      Iterator<ArtifactObject> it = artifactFactories.iterator();
	      while (it.hasNext()){
	          ArtifactObject ao = it.next();
	      
	%>
	    
	           <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option>
	<%
	      }
	%>
	       </select>
	<%
	}
	%>
	
	    
	    <%=ui != null ? ui.toString() : "" %>
	    
	       <input type="submit" value="Ausw�hlen" />
	    </fieldset>
	</form>
</div>

http://dive4elements.wald.intevation.org