Author: viktor_volkov
Date: 2007-11-05 05:53:27 -0500 (Mon, 05 Nov 2007)
New Revision: 3748
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml
Log:
Adding components to ModalPanel in Richpanels application
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml 2007-11-05
10:13:01 UTC (rev 3747)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml 2007-11-05
10:53:27 UTC (rev 3748)
@@ -1,68 +1,36 @@
-<f:subview id="modalPanelSubviewID"
-
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:f="http://java.sun.com/jsf/core"
+<f:subview id="modalPanelSubviewID"
+
xmlns:rich="http://richfaces.org/rich"
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:rich="http://richfaces.org/rich">
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:c="http://java.sun.com/jstl/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:form id="MPform">
- <rich:modalPanel id="MPid" minHeight="#{modalPanel.minHeight}"
- minWidth="#{modalPanel.minWidth}" height="#{modalPanel.height}"
- width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
- resizeable="#{modalPanel.resizeable}" keepVisualState=""
visualOptions="" >
+ <rich:modalPanel id="MP_Calendar" height="500"
width="500"
+ moveable="true" resizeable="true" keepVisualState=""
visualOptions="">
<f:facet name="header">
- <h:outputText value="Heder goes here..." />
+ <h:outputText value="Calendar" />
+ <h:outputLink
+ action="Richfaces.hideModalPanel('MPform:MP_Calendar');return
false;"
+ value="Close">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
</f:facet>
- <h:outputText value="This is Modal Panel example"
styleClass="text1" />
- <f:verbatim>
- <br />
- <br />
- </f:verbatim>
+ <ui:include src="/Calendar/Calendar.xhtml" />
<h:outputLink
- onclick="Richfaces.hideModalPanel('MPform:MPid');return false;"
+ onclick="Richfaces.hideModalPanel('MPform:MP_Calendar');return
false;"
value="Close">
<f:verbatim>Close</f:verbatim>
</h:outputLink>
</rich:modalPanel>
- <a onclick="Richfaces.showModalPanel('MPform:MPid');"
href="#">Show
- MP</a>
+ <a onclick="Richfaces.showModalPanel('MPform:MP_Calendar');return
false;" href="#">Show
+ Calendar</a>
<rich:spacer height="20px"></rich:spacer>
- <h:panelGrid columns="2">
-
- <h:outputText value="Width:" />
- <h:inputText value="#{modalPanel.width}">
- <a4j:support event="onchange"
reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Height:" />
- <h:inputText value="#{modalPanel.height}">
- <a4j:support event="onchange"
reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="minWidth:" />
- <h:inputText value="#{modalPanel.minWidth}">
- <a4j:support event="onchange"
reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="minHeight:" />
- <h:inputText value="#{modalPanel.minHeight}">
- <a4j:support event="onchange"
reRender="MPform:MPid"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Resizeable:" />
- <h:selectBooleanCheckbox value="#{modalPanel.resizeable}">
- <a4j:support event="onclick"
reRender="MPform:MPid"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Moveable:" />
- <h:selectBooleanCheckbox value="#{modalPanel.moveable}">
- <a4j:support event="onclick"
reRender="MPform:MPid"></a4j:support>
- </h:selectBooleanCheckbox>
-
- </h:panelGrid>
</h:form>
</f:subview>