Author: nbelaevski
Date: 2008-07-15 10:21:35 -0400 (Tue, 15 Jul 2008)
New Revision: 9612
Modified:
trunk/samples/functions-demo/src/main/webapp/pages/index.jsp
trunk/samples/functions-demo/src/main/webapp/pages/index.xhtml
Log:
findComponent function added to demo
Modified: trunk/samples/functions-demo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/functions-demo/src/main/webapp/pages/index.jsp 2008-07-15 14:17:11 UTC
(rev 9611)
+++ trunk/samples/functions-demo/src/main/webapp/pages/index.jsp 2008-07-15 14:21:35 UTC
(rev 9612)
@@ -9,7 +9,7 @@
<f:view>
<f:subview id="view">
<h:form id="myForm">
- <h:inputText id="input" />
+ <h:inputText id="input" value="abc" />
</h:form>
</f:subview>
@@ -19,6 +19,8 @@
<br />
<h:outputText value="#{fn:component('input')}" />
<br />
+ <h:outputText value="#{fn:findComponent('input').value}" />
+ <br />
</f:view>
</body>
</html>
Modified: trunk/samples/functions-demo/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/samples/functions-demo/src/main/webapp/pages/index.xhtml 2008-07-15 14:17:11 UTC
(rev 9611)
+++ trunk/samples/functions-demo/src/main/webapp/pages/index.xhtml 2008-07-15 14:21:35 UTC
(rev 9612)
@@ -8,7 +8,7 @@
<f:view>
<f:subview id="view">
<h:form id="myForm">
- <h:inputText id="input" />
+ <h:inputText id="input" value="abc"/>
</h:form>
</f:subview>
@@ -18,5 +18,7 @@
<br />
<h:outputText value="#{fn:component('input')}" />
<br />
+ <h:outputText value="#{fn:findComponent('input').value}" />
+ <br />
</f:view>
</html>
\ No newline at end of file