Author: tkuprevich
Date: 2008-08-05 05:03:27 -0400 (Tue, 05 Aug 2008)
New Revision: 9907
Modified:
trunk/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp
trunk/test-applications/jsp/src/main/webapp/pages/Select/SelectOneMenuPage.jsp
trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp 2008-08-05 08:46:31
UTC (rev 9906)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Select/Map.jsp 2008-08-05 09:03:27
UTC (rev 9907)
@@ -1,53 +1,78 @@
-<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ 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"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ 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" %>
+<%@page contentType="text/html; charset=UTF-8" %>
+
+<html>
<f:view>
-<html>
-<head>
-<title></title>
- <script type="text/javascript">
- function showEvent(elementID, value) {
- var oldObject = window.document.getElementById(elementID);
- var newObject = window.document.createElement('input');
- newObject.type = "text";
- newObject.size = oldObject.size;
- newObject.value = value;
- newObject.id = oldObject.id;
- //if(oldObject.size) newObject.size = oldObject.size;
- //if(oldObject.value) newObject.value = value;
- //if(oldObject.id) newObject.id = oldObject.id;
- //if(oldObject.name) newObject.name = oldObject.name;
- //if(oldObject.className) newObject.className = oldObject.className;
- oldObject.parentNode.replaceChild(newObject,oldObject);
- }
- </script>
-<link rel="stylesheet"
href="<%=request.getContextPath()%>/styles/styles.css"
type="text/css" />
-</head>
-<body>
- <jsp:include page="/pages/RichMenu/RichMenu.jsp" />
- <div id="divID" style="position: absolute; top:60px; left: 10px;
z-index: 1">
+ <head>
+ <f:loadBundle basename="message" var="msg"/>
+ <title></title>
+
+ <script type="text/javascript">
+ function showEvent(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ if (oldObject == null) return;
+ var newObject = window.document.createElement('input');
+ if (oldObject.type) newObject.type = oldObject.type;
+ if (oldObject.size) newObject.size = oldObject.size;
+ if (oldObject.value) newObject.value = value;
+ if (oldObject.id) newObject.id = oldObject.id;
+ oldObject.parentNode.replaceChild(newObject, oldObject);
+ }
+ </script>
+ <link rel="stylesheet"
href="<%=request.getContextPath()%>/styles/styles.css"
type="text/css"/>
+ </head>
+ <body>
+ <h:form id="formID">
+ <div id="divOpthID" align="right" style="z-index:
200">
+ <jsp:include page="/pages/RichMenu/RichMenu.jsp"/>
+ </div>
+ <div id="divID" style="position: absolute; top:60px; left:
10px; z-index: -1">
<jsp:include page="SelectOneMenuPage.jsp" />
</div>
- <div id="divID" style="position: absolute; top:60px; left: 10px;
z-index: 1">
- <jsp:include page="${richBean.pathComponent}" />
- </div>
- <h:form>
- <jsp:include page="${richBean.pathStraightforward}" />
- <jsp:include page="${richBean.pathProperty}" />
+ <rich:messages id="richMessagesID" ajaxRendered="true"
showSummary="true">
+ <f:facet name="errorMarker">
+ <h:graphicImage url="/pics/error.gif" />
+ </f:facet>
+
+ <f:facet name="fatalMarker">
+ <h:graphicImage url="/pics/fatal.gif" />
+ </f:facet>
+
+ <f:facet name="infoMarker">
+ <h:graphicImage url="/pics/info.gif" />
+ </f:facet>
+
+ <f:facet name="warnMarker">
+ <h:graphicImage url="/pics/warn.gif" />
+ </f:facet>
+
+ <f:facet name="passedMarker">
+ <h:graphicImage url="/pics/passed.gif" />
+ </f:facet>
+ </rich:messages>
+ <h:messages id="hMessagesID" showDetail="true"
showSummary="true"></h:messages>
+
+ <h:panelGrid id="richGridID" columns="1"
width="100%" rendered="true">
+ <h:panelGroup rendered="#{option.reComponent}">
+ <jsp:include page="${richBean.pathComponent}"/>
+ </h:panelGroup>
+ <a4j:log popup="false"
rendered="#{option.log}"></a4j:log>
+ <h:panelGroup rendered="#{option.reStraightforward}">
+ <jsp:include page="${richBean.pathStraightforward}"/>
+ </h:panelGroup>
+
+ <h:panelGroup rendered="#{option.reProperty}">
+ <jsp:include page="${richBean.pathProperty}"/>
+ </h:panelGroup>
+ </h:panelGrid>
+ </h:form>
+ <h:form id="infoFormID">
+ <jsp:include page="/pages/Info/Info.jsp"/>
</h:form>
- <rich:modalPanel id="eventInfoID" minHeight="550"
minWidth="200" moveable="true" resizeable="true"
style="overflow: true;">
- <f:facet name="header">
- <h:outputText value="Events ..." />
- </f:facet>
- <f:facet name="controls">
- <h:graphicImage value="/pics/error.gif"
onclick="Richfaces.hideModalPanel('eventInfoID');"/>
- </f:facet>
-
- <jsp:include page="/pages/Action/EventInfo.jsp" />
-
- </rich:modalPanel>
- <a4j:commandButton value="Show event"
onclick="Richfaces.showModalPanel('eventInfoID');return
false;"></a4j:commandButton>
-</body>
+ </body>
+</f:view>
</html>
-</f:view>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/pages/Select/SelectOneMenuPage.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/pages/Select/SelectOneMenuPage.jsp 2008-08-05
08:46:31 UTC (rev 9906)
+++
trunk/test-applications/jsp/src/main/webapp/pages/Select/SelectOneMenuPage.jsp 2008-08-05
09:03:27 UTC (rev 9907)
@@ -4,7 +4,7 @@
<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
<f:subview id="selectOneMenuPage">
- <h:panelGrid columns="7" cellpadding="20px"
cellspacing="30px">
+ <h:panelGrid columns="7" cellpadding="0px"
cellspacing="0px">
<h:selectOneMenu value="selectItem" >
<f:selectItem itemLabel="selectItem" itemValue="test" />
</h:selectOneMenu>
Modified: trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2008-08-05 08:46:31 UTC
(rev 9906)
+++ trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2008-08-05 09:03:27 UTC
(rev 9907)
@@ -20,7 +20,7 @@
<h:panelGrid columns="2" cellpadding="5px"
cellspacing="5px">
<h:commandLink value="RichFaces"
action="RichFaces"></h:commandLink>
<h:commandLink value="Div"
action="TestDiv"></h:commandLink>
- <h:commandLink value="Select"
action="Map"></h:commandLink>
+ <h:commandLink value="Select" action="Map"
disabled="true"></h:commandLink>
<h:commandLink value="Customize page"
action="CustomizePage"></h:commandLink>
</h:panelGrid>
</rich:panel>