[richfaces-svn-commits] JBoss Rich Faces SVN: r2615 - trunk/test-applications/jsp/src/main/webapp/Div.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Aug 30 10:27:28 EDT 2007


Author: ayanul
Date: 2007-08-30 10:27:28 -0400 (Thu, 30 Aug 2007)
New Revision: 2615

Modified:
   trunk/test-applications/jsp/src/main/webapp/Div/Div.jsp
Log:
update

Modified: trunk/test-applications/jsp/src/main/webapp/Div/Div.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Div/Div.jsp	2007-08-30 14:26:49 UTC (rev 2614)
+++ trunk/test-applications/jsp/src/main/webapp/Div/Div.jsp	2007-08-30 14:27:28 UTC (rev 2615)
@@ -2,81 +2,61 @@
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
 <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-<f:view>
+
+
+
 	<html>
 	<head>
 	<title></title>
 	</head>
-
-	<body>
-	<h:form id="divTestID">
-		<div id="div_1_ID" style="position: relative; left:#{divBean.left[0]}; top:#{divBean.top[0]}">
-			<div id="div_2_ID" style="position: absolute; left:#{divBean.left[1]}; top:#{divBean.top[1]}">
-				<jsp:include page="${divBean.src}" />
+	<body >
+	<jsp:useBean id="tDivID" scope="session" class="div.DivBean"/>
+		<%	String res = request.getParameter("srcSelect");
+			int index;
+			if(res == null)
+				index = 0;
+			else index = Integer.valueOf(res);
+			%>
+		<div id="div_1_ID" style="position: relative; left:400px; top:400px; border-color: red, 2px;">
+			<div id="div_2_ID" style="position: absolute; left:-380px; top:-380px; color: blue, 2px;">
+				<jsp:include page="<%= tDivID.getSrc()[Integer.valueOf(index)] %>" /> 
 			</div>
 		</div>
-	</h:form>
-	<h:form id="forvDivOpthID">
-		<div id="divOpthID" style="position:relative" align="right">
-			<h:panelGrid columns="2">
-				<h:outputText value="Select component:" />
-				<h:selectOneMenu value="#{divBean.src}">
-					<f:selectItem itemValue="/Calendar/Calendar.jsp" itemLabel="Calendar" />
-					<f:selectItem itemValue="/DataFilterSlider/DataFilterSlider.jsp" itemLabel="Data Filter Slider" />
-					<f:selectItem itemValue="/DataScroller/DS.jsp" itemLabel="Date Scroller" />
-					<f:selectItem itemValue="/DradAndDrop/DragAndDrop.jsp" itemLabel="Drag And Drop" />
-					<f:selectItem itemValue="/DropDownMenu/DDMenu.jsp" itemLabel="Drop Down Menu" />
-					<f:selectItem itemValue="/Effect/Effect.jsp" itemLabel="Effect" />
-					<f:selectItem itemValue="/Gmap/Gmap.jsp" itemLabel="Gmap" />
-					<f:selectItem itemValue="/inputNumberSlider/inputNumberSlider.jsp" itemLabel="Input Number Slider" />
-					<f:selectItem itemValue="/inputNumberSpinner/inputNumberSpinner.jsp" itemLabel="Input Number Spinner" />
-					<f:selectItem itemValue="/Insert/Insert.jsp" itemLabel="Insert" />
-					<f:selectItem itemValue="/Message/Message.jsp" itemLabel="Message" />
-					<f:selectItem itemValue="/ModalPanel/ModalPanel.jsp" itemLabel="Modal Panel" />
-					<f:selectItem itemValue="/Paint2D/Paint2D.jsp" itemLabel="Paint2D" />
-					<f:selectItem itemValue="/Panel/Panel.jsp" itemLabel="Panel" />
-					<f:selectItem itemValue="/Panel/panel2.jsp" itemLabel="Panel2" />
-					<f:selectItem itemValue="/PanelBar/PanelBar.jsp" itemLabel="Panel Bar" />
-					<f:selectItem itemValue="/PanelMenu/PanelMenu.jsp" itemLabel="Panel Menu" />
-					<f:selectItem itemValue="/Separator/Separator.jsp" itemLabel="Separator" />
-					<f:selectItem itemValue="/SimpleTogglePanel/SimpleTogglePanel.jsp" itemLabel="Simple Toggle Panel" />
-					<f:selectItem itemValue="/Spacer/Spacer.jsp" itemLabel="Spacer" />
-					<f:selectItem itemValue="/SuggestionBox/SuggestionBox.jsp" itemLabel="Suggestion Box" />
-					<f:selectItem itemValue="/TabPanel/TabPanel.jsp" itemLabel="Tab Panel" />
-					<f:selectItem itemValue="/TogglePanel/TogglePanel.jsp" itemLabel="Toggle Panel" />
-					<f:selectItem itemValue="/ToolBar/ToolBar.jsp" itemLabel="Tool Bar" />
-					<f:selectItem itemValue="/Tooltip/Tooltip.jsp" itemLabel="Tooltip" />
-					<f:selectItem itemValue="/Tree/Tree.jsp" itemLabel="Tree" />
-					<f:selectItem itemValue="/VirtualEarth/VirtualEarth.jsp" itemLabel="Virtual Earth" />
-				</h:selectOneMenu>
-				
-				<h:commandLink value="Submit" action="submit();"></h:commandLink>
-				<f:verbatim></f:verbatim>
-				
-				<h:outputText value="div 1 left:" />
-				<h:inputText value="#{divBean.left[0]}" >
-					<a4j:support event="onchange" action="submit();"></a4j:support>
-				</h:inputText>
-	
-				<h:outputText value="div 1 top:" />
-				<h:inputText value="#{divBean.top[0]}" >
-					<a4j:support event="onchange" action="submit();"></a4j:support>
-				</h:inputText>
-	
-				<h:outputText value="div 2 left:" />
-				<h:inputText value="#{divBean.left[1]}" >
-					<a4j:support event="onchange" action="submit();"></a4j:support>
-				</h:inputText>
-				
-	
-				<h:outputText value="div 2 top:" />
-				<h:inputText value="#{divBean.top[1]}" >
-					<a4j:support event="onchange" action="submit();"></a4j:support>
-				</h:inputText>
-			</h:panelGrid>
-			<h:commandLink value="Back" action="main"></h:commandLink>
-		</div>
-	</h:form>
+
+		<div id="divTestOpthn" align="right">
+			<%= "Current: " + tDivID.getSrc()[Integer.valueOf(index)] %>
+			<form action="/jsp/Div/Div.jsf" method="get">
+				<SELECT NAME="srcSelect">
+				<option value="0">Calendar</option>
+				<option value="1">DataFilterSlider</option>
+				<option value="2">Date Scroller</option>
+				<option value="3">Drag And Drop</option>
+				<option value="4">Drop Down Menu</option>
+				<option value="5">Effect</option>
+				<option value="6">Gmap</option>
+				<option value="7">Input Number Slider</option>
+				<option value="8">Input Number Spinner</option>
+				<option value="9">Insert</option>
+				<option value="10">Message</option>
+				<option value="11">Modal Panel</option>
+				<option value="12">Paint2D</option>
+				<option value="13">Panel</option>
+				<option value="14">Panel2</option>
+				<option value="15">Panel Bar</option>
+				<option value="16">Panel Menu</option>
+				<option value="17">Separator</option>
+				<option value="18">Simple Toggle Panel</option>
+				<option value="19">Spacer</option>
+				<option value="20">Suggestion Box</option>
+				<option value="21">Tab Panel</option>
+				<option value="22">Toggle Panel</option>
+				<option value="23">Tool Bar</option>
+				<option value="24">Tooltip</option>
+				<option value="25">Tree</option>
+				<option value="26">Virtual Earth</option>
+				</SELECT>
+				<input type="submit" value="Submit" />
+			</form>
+		</div> 
 	</body>
 	</html>
-</f:view>
\ No newline at end of file




More information about the richfaces-svn-commits mailing list