Author: ilya_shaikovsky
Date: 2010-05-30 05:57:40 -0400 (Sun, 30 May 2010)
New Revision: 17395
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/resources/rich/messages.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/simple.xhtml
Log:
outputPanel samples fixed
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/resources/rich/messages.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/resources/rich/messages.xhtml 2010-05-30
09:51:44 UTC (rev 17394)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/resources/rich/messages.xhtml 2010-05-30
09:57:40 UTC (rev 17395)
@@ -21,7 +21,7 @@
<h:outputStylesheet name="rich/css/messages.css" />
<a4j:outputPanel ajaxRendered="true" layout="none">
<h:messages layout="#{cc.attrs.layout}"
- showSummary="true" style="#{cc.attrs.style}"
+ showSummary="true" style="color:red; #{cc.attrs.style}"
styleClass="rich-message #{cc.attrs.styleClass}" />
</a4j:outputPanel>
</composite:implementation>
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml 2010-05-30
09:51:44 UTC (rev 17394)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml 2010-05-30
09:57:40 UTC (rev 17395)
@@ -30,8 +30,10 @@
</h:panelGrid>
<rich:messages/>
</h:panelGrid>
- <a4j:commandButton value="Submit" type="button"
action="#{userBean.store}" render="out"/>
- <h:outputText value="#{userBean.recordStatus}" id="out"/>
+ <a4j:commandButton value="Submit" type="button"
action="#{userBean.store}" execute="@form"/>
+ <a4j:outputPanel ajaxRendered="true">
+ <h:outputText value="#{userBean.recordStatus}" id="out"
rendered="#{facesContext.maximumSeverity == null}"/>
+ </a4j:outputPanel>
</rich:panel>
</h:form>
</ui:composition>
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/simple.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/simple.xhtml 2010-05-30
09:51:44 UTC (rev 17394)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/simple.xhtml 2010-05-30
09:57:40 UTC (rev 17395)
@@ -34,7 +34,7 @@
<f:verbatim>
This code does not work as expected. The expected echo text does not
appear
- below even the condition for <code>'renderer'</code>
returns <code>true</code>.
+ below even the condition for <code>'rendered'</code>
returns <code>true</code>.
Also, the error message does not appear when the length of the text
reaches the limit.
</f:verbatim>
<f:verbatim>
@@ -64,7 +64,7 @@
<a4j:outputPanel layout="block">
<h:form>
- <a4j:outputPanel layout="block">
+ <a4j:outputPanel layout="block"
ajaxRendered="true">
<h:message for="text2" style="color:red"
/>
</a4j:outputPanel>
Show replies by date