Author: mvitenkov
Date: 2008-05-14 10:36:24 -0400 (Wed, 14 May 2008)
New Revision: 8577
Modified:
trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml
Log:
+applet
Modified: trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml 2008-05-14
14:11:50 UTC (rev 8576)
+++
trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml 2008-05-14
14:36:24 UTC (rev 8577)
@@ -10,7 +10,9 @@
<f:selectItems value="#{richBean.listContainer}" />
</h:selectOneMenu>
- <rich:modalPanel id="modalPanelID"
minHeight="#{modalPanel.minHeight}"
+ <rich:modalPanel id="modalPanelID"
+ left="#{modalPanel.left}"
+ top="#{modalPanel.top}" minHeight="#{modalPanel.minHeight}"
minWidth="#{modalPanel.minWidth}" height="#{modalPanel.height}"
width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
resizeable="#{modalPanel.resizeable}"
@@ -19,7 +21,8 @@
autosized="#{modalPanel.autosized}"
shadowDepth="#{modalPanel.shadowDepth}"
shadowOpacity="#{modalPanel.shadowOpacity}"
- showWhenRendered="#{modalPanel.showWhenRendered}"
+ showWhenRendered="#{modalPanel.showWhenRendered}"
+ headerClass="#{style.headerClass}"
styleClass="#{style.styleClass}"
onhide="#{event.onhide}" onmaskclick="#{event.onmaskclick}"
onmaskcontextmenu="#{event.onmaskcontextmenu}"
onmaskdblclick="#{event.onmaskdblclick}"
@@ -28,20 +31,19 @@
onmaskmouseout="#{event.onmaskmouseout}"
onmaskmouseover="#{event.onmaskmouseover}"
onmaskmouseup="#{event.onmaskmouseup}" onmove="#{event.onmove}"
- onresize="#{event.onresize}" onshow="#{event.onshow}">
+ onresize="#{event.onresize}" onshow="#{event.onshow}"
+ >
<f:facet name="header">
<h:outputText value="Heder goes here..." />
</f:facet>
<f:facet name="controls">
<h:graphicImage value="/pics/error.gif"
onclick="Richfaces.hideModalPanel('modalPanelID');return false;"
/>
- <h:form>
- <a4j:commandLink action="#"
- oncomplete="Richfaces.hideModalPanel('modalPanelID')"
value="close" />
- </h:form>
</f:facet>
<h:outputText value="This is Modal Panel example"
styleClass="text1" />
- <h:inputText value="#{modalPanel.inputTextTest}" />
+ <h:selectOneMenu value="#{richBean.srcContainer}"
onchange="submit();">
+ <f:selectItems value="#{richBean.listContainer}" />
+ </h:selectOneMenu>
<applet code="ArcTest.class" width="400" height="400"
@@ -51,6 +53,7 @@
Your browser is completely ignoring the <APPLET> tag!
</applet>
+ <h:inputText value="#{modalPanel.inputTextTest}" />
<h:selectOneListbox value="#{modalPanel.selectOneListboxTest}">
<f:selectItem itemLabel="1" itemValue="1" />
<f:selectItem itemLabel="2" itemValue="2" />
@@ -61,7 +64,8 @@
<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:verbatim>
</h:outputLink>
@@ -71,17 +75,60 @@
<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;"
value="Close">
<f:verbatim>Close</f:verbatim>
</h:outputLink>
-
- <ui:include src="${richBean.pathComponentContainer}" />
+
</rich:modalPanel>
-
+
+ <rich:modalPanel id="modalPanelID2">
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif"
+ onclick="Richfaces.hideModalPanel('modalPanelID2');return false;"
/>
+ <h:form>
+ <a4j:commandLink action="#"
+ oncomplete="Richfaces.hideModalPanel('modalPanelID2')"
value="close" />
+ </h:form>
+ </f:facet>
+ <h:inputText value="#{sb.property}" id="text" />
+ <rich:suggestionbox id="suggestionBoxId"
eventsQueue="myEventsQueue" ajaxSingle="#{sb.ajaxSingle}"
dir="#{sb.dir}"
+ rendered="#{sb.rendered}" requestDelay="#{sb.requestDelay}"
selfRendered="#{sb.selfRendered}" value="#{sb.value}"
for="text"
+ var="result" fetchValue="#{result.text}"
suggestionAction="#{sb.autocomplete}" width="#{sb.width}"
height="#{sb.height}"
+ border="#{sb.border}" zindex="#{sb.zindex}"
rules="#{sb.rules}" cellpadding="#{sb.cellpadding}"
+ cellspacing="#{sb.cellspacing}" first="#{sb.first}"
minChars="#{sb.minchars}" tokens="#{sb.tokens}"
bgcolor="#{sb.bgColor}"
+ focus="#{sb.forcus}" title="#{result.text}"
summary="summary" shadowOpacity="#{sb.shadowOpacity}"
+ shadowDepth="#{sb.shadowDepth}" selectValueClass="mousemove"
frequency="#{sb.frequency}" nothingLabel="nothingLabel work! "
+ entryClass="#{style.entryClass}" popupClass="#{style.popupClass}"
popupStyle="#{style.popupStyle}" style="#{style.style}"
styleClass="#{style.styleClass}"
selectedClass="#{style.selectedClass}"
rowClasses="#{style.rowClasses}"
+ oncomplete="#{event.oncomplete}" onselect="#{event.onselect}"
onbeforedomupdate="#{event.onbeforedomupdate}"
onsubmit="#{event.onsubmit}">
+ <h:column>
+ <h:outputText value="#{result.city}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{result.contry}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{result.flag}" />
+ </h:column>
+ <h:column>
+ <h:outputLink
value="http://www.jboss.com/"><f:verbatim>Link</f:v...
+ </h:column>
+ </rich:suggestionbox>
+ </rich:modalPanel>
<a onclick="Richfaces.showModalPanel('modalPanelID');"
href="#">Show
MP</a>
+ <br/>
+ <a onclick="Richfaces.showModalPanel('modalPanelID2');"
href="#">Show
+ MP2</a>
<f:verbatim>
<br />