Author: adubovsky
Date: 2008-07-17 04:01:23 -0400 (Thu, 17 Jul 2008)
New Revision: 9644
Modified:
trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp
Log:
changes in modalPanel
Modified: trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java 2008-07-17
07:55:19 UTC (rev 9643)
+++ trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java 2008-07-17
08:01:23 UTC (rev 9644)
@@ -1,5 +1,6 @@
package modalPanel;
+import javax.faces.component.html.HtmlSelectBooleanCheckbox;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
@@ -29,7 +30,6 @@
private String bindLabel;
private HtmlModalPanel htmlModalPanel;
-
public String getVisualOptions() {
return visualOptions;
}
@@ -268,4 +268,5 @@
ComponentInfo info = ComponentInfo.getInstance();
info.addField(htmlModalPanel);
}
+
}
Modified: trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-07-17
07:55:19 UTC (rev 9643)
+++ trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-07-17
08:01:23 UTC (rev 9644)
@@ -72,7 +72,7 @@
</h:panelGrid>
<br />
<h:outputText value="This is Modal Panel example"
styleClass="text1" />
- <h:selectOneMenu value="#{richBean.srcContainer}"
onchange="submit();">
+ <h:selectOneMenu value="#{richBean.srcContainer}" >
<f:selectItems value="#{richBean.listContainer}" />
</h:selectOneMenu>
@@ -86,25 +86,14 @@
<f:verbatim><br /><br /></f:verbatim>
<rich:spacer width="20" height="20"></rich:spacer>
- <a4j:commandButton value="submit"
onclick="submit"></a4j:commandButton>
- <h:outputLink
value="http://www.jboss.com/"><f:verbatim>Link</f:v...
+ <h:outputLink
value="http://localhost:8081/jsp/"><f:verbatim>http://localhost:8081/jsp/</f:verbatim></h:outputLink>
<f:verbatim><br /><br /></f:verbatim>
<a4j:commandLink
onclick="Richfaces.showModalPanel('modalPanel2ID');return false;"
value="show ModalPanel 2"></a4j:commandLink>
<f:verbatim><br /><br /></f:verbatim>
<h:outputLink onclick="Richfaces.hideModalPanel('modalPanelID');return
false;" ><f:verbatim>Close</f:verbatim></h:outputLink>
</rich:modalPanel>
- <rich:modalPanel id="modalPanel2ID"
- visualOptions="#{modalPanel.visualOptions}"
- left="#{modalPanel.left}" top="#{modalPanel.top}"
- minHeight="#{modalPanel.minHeight}" minWidth="#{modalPanel.minWidth}"
- moveable="true" resizeable="false"
- keepVisualState="#{modalPanel.keepVisualState}"
- rendered="#{modalPanel.rendered}" zindex="#{modalPanel.zindex}"
- autosized="true"
- shadowDepth="#{modalPanel.shadowDepth}"
- shadowOpacity="#{modalPanel.shadowOpacity}"
- showWhenRendered="#{modalPanel.showWhenRendered}" >
+ <rich:modalPanel id="modalPanel2ID" autosized="true"
resizeable="false">
<br />
<h:inputText value="input"></h:inputText>
<br />
@@ -116,10 +105,10 @@
</rich:pickList>
<br />
- <a4j:commandButton reRender="pickListTargetID" value="refresh
target"></a4j:commandButton>
+ <a4j:commandButton reRender="pickListID" value="refresh
target"></a4j:commandButton>
</rich:modalPanel>
- <rich:modalPanel id="modalPanel3ID" minHeight="100"
minWidth="200" moveable="true">
+ <rich:modalPanel id="modalPanel3ID" minHeight="100"
minWidth="200" moveable="true" autosized="true"
resizeable="false">
<f:facet name="header">
<h:outputText value="Events..." />
</f:facet>
@@ -130,6 +119,7 @@
<h:outputText value="Eventsaaaaaaaaaaaaaaaa ..." />
<rich:calendar popup="true" />
</rich:modalPanel>
+
<a onclick="Richfaces.showModalPanel('modalPanelID');"
href="#">show ModalPanel 1</a>
<br />
<a4j:commandLink
onclick="Richfaces.showModalPanel('modalPanel2ID');return false;"
value="show ModalPanel 2"></a4j:commandLink>
@@ -138,7 +128,9 @@
<h:graphicImage value="/pics/info.gif">
<rich:componentControl event="onclick" for="modalPanel3ID"
operation="show"></rich:componentControl>
</h:graphicImage>
- <f:verbatim><br /><br /></f:verbatim>
- <div id="idDiv1" style="position: relative; font-size: 50px; z-index:
2; color: navy" >z-index1</div>
- <div id="idDiv2" style="position: relative; font-size: 50px; z-index:
2; color: navy">z-index2</div>
+ <f:verbatim>
+ <br /><br />
+ <div id="idDiv1" align="center" style="position: relative;
font-size: 50px; z-index: 2; color: navy" >z-index1</div>
+ <div id="idDiv2" align="center" style="position: relative;
font-size: 50px; z-index: 2; color: navy">z-index2</div>
+ </f:verbatim>
</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp 2008-07-17
07:55:19 UTC (rev 9643)
+++
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanelProperty.jsp 2008-07-17
08:01:23 UTC (rev 9644)
@@ -73,14 +73,10 @@
</h:inputText>
<h:outputText value="autosized:" />
- <h:selectBooleanCheckbox value="#{modalPanel.autosized}"
- onchange="submit();">
- </h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{modalPanel.autosized}"
onchange="submit();" ></h:selectBooleanCheckbox>
<h:outputText value="resizeable:" />
- <h:selectBooleanCheckbox value="#{modalPanel.resizeable}"
- onchange="submit();">
- </h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{modalPanel.resizeable}"
onchange="submit();"></h:selectBooleanCheckbox>
<h:outputText value="Moveable:" />
<h:selectBooleanCheckbox value="#{modalPanel.moveable}">