Author: mvitenkov
Date: 2008-07-02 08:57:33 -0400 (Wed, 02 Jul 2008)
New Revision: 9388
Modified:
trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml
trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml 2008-07-02
12:50:25 UTC (rev 9387)
+++ trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml 2008-07-02
12:57:33 UTC (rev 9388)
@@ -9,7 +9,7 @@
<rich:message for="#{message.msg}" tooltip="#{message.tooltip}"
showDetail="#{message.showDetail}"
showSummary="#{message.showSummary}" passedLabel="No Error"
errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
- infoLabelClass="infoLabel" warnLabelClass="fatalLabel"
title="#{message.title}">
+ infoLabelClass="infoLabel" warnLabelClass="fatalLabel"
title="#{message.title}" id="messageID">
<f:facet name="errorMarker">
@@ -40,7 +40,7 @@
showSummary="#{message.showSummary}" passedLabel="No Error"
errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
infoLabelClass="infoLabel" warnLabelClass="fatalLabel"
warnMarkerClass="markerWarn" infoMarkerClass="markerInfo"
errorMarkerClass="markerError" fatalMarkerClass="markerFatal"
errorClass="errorClass" fatalClass="fatalClass"
- warnClass="warnClass" infoClass="infoClass"
labelClass="labelClass" styleClass="class"
title="#{message.title}">
+ warnClass="warnClass" infoClass="infoClass"
labelClass="labelClass" styleClass="class"
title="#{message.title}" id="messagesID">
<f:facet name="errorMarker">
<h:graphicImage url="/pics/error.gif" />
</f:facet>
Modified: trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml 2008-07-02
12:50:25 UTC (rev 9387)
+++
trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml 2008-07-02
12:57:33 UTC (rev 9388)
@@ -82,4 +82,21 @@
<h:commandButton value="submit" />
<a4j:commandButton value="submit ajax" />
</h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getFor(message)"
reRender="findID1"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID1">
+ <h:outputText value="#{rich:findComponent('messageID').for}"
/>
+ </rich:column>
+ <rich:column>
+ <a4j:commandLink value="getRendererType(messages)"
reRender="findID2"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID2">
+ <h:outputText
value="#{rich:findComponent('messagesID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file