Author: mvitenkov
Date: 2008-05-20 09:26:27 -0400 (Tue, 20 May 2008)
New Revision: 8655
Modified:
trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
Log:
modalPanel binding
Modified: trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp 2008-05-20
12:52:30 UTC (rev 8654)
+++ trunk/test-applications/jsp/src/main/webapp/CustomizePage/CustomizePage.jsp 2008-05-20
13:26:27 UTC (rev 8655)
@@ -7,22 +7,54 @@
<html>
<f:view>
<head>
- <f:loadBundle basename="message" var="msg" />
- <title></title>
-
- <link rel="stylesheet"
href="<%=request.getContextPath()%>/styles/styles.css"
type="text/css" />
</head>
<body>
- <h:panelGroup binding="#{pTComponent.component}">
+ <rich:modalPanel id="modalPanel2ID" minHeight="100"
minWidth="200"
+ resizeable="true" keepVisualState="true"
showWhenRendered="true" binding="#{modalPanel.myModalPanel}">
- <f:attribute name="var" value="body" />
+ <h:outputLink
+ onclick="Richfaces.hideModalPanel('modalPanel2ID');return false;"
+ value="Close">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+ <br />
+ <h:form>
+ <h:inputText value="#{sb.property}" id="text" />
+ <rich:suggestionbox id="suggestionBoxId"
+ suggestionAction="#{sb.autocomplete}" frame="below"
+ value="#{sb.value}" for="text" var="result"
width="500" height="500"
+ fetchValue="#{result.text}" minChars="#{sb.minchars}"
+ tokens="#{sb.tokens}" param="param:#{result.text}"
+ eventsQueue="myEventsQueue" ajaxSingle="#{sb.ajaxSingle}"
+ dir="#{sb.dir}" rendered="#{sb.rendered}">
+ <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>
+
+ </rich:suggestionbox>
+ <br />
+ <h:commandButton actionListener="#{modalPanel.checkBinding}"
+ value="Binding[Modal Panel]"></h:commandButton>
+ <h:outputText value="#{modalPanel.bindLabel}"></h:outputText>
+ </h:form>
+ </rich:modalPanel>
+
+
+
<h:form id="test">
- <rich:inputNumberSlider ></rich:inputNumberSlider>
+ <rich:inputNumberSlider></rich:inputNumberSlider>
+
+
+ <a onclick="Richfaces.showModalPanel('modalPanel2ID');"
href="#">Show
+ MP</a>
+
</h:form>
- </h:panelGroup>
-
- <h:outputText value="#{pttc}"
escape="true"></h:outputText>
-
</body>
</f:view>
</html>