Author: abelevich
Date: 2007-07-26 05:23:23 -0400 (Thu, 26 Jul 2007)
New Revision: 1863
Modified:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
Log:
extended demo app
Modified: trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css
===================================================================
--- trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css 2007-07-26
08:44:05 UTC (rev 1862)
+++ trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css 2007-07-26
09:23:23 UTC (rev 1863)
@@ -2,6 +2,10 @@
padding: 0px 10px;
}
+.rich-messages-label{
+ padding: 0px 10px
+}
+
.rich-message-marker{
}
Modified:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
===================================================================
---
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-26
08:44:05 UTC (rev 1862)
+++
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-26
09:23:23 UTC (rev 1863)
@@ -10,81 +10,160 @@
</head>
- <h:form>
-
- <h:selectOneMenu id="select" value="">
- <f:selectItem itemValue="error" itemLabel="error"/>
- <f:selectItem itemValue="fatal" itemLabel="fatal"/>
- <f:selectItem itemValue="warn" itemLabel="warning"/>
- <f:selectItem itemValue="info" itemLabel="info"/>
- <f:selectItem itemValue="passed" itemLabel="passed"/>
- <f:validator validatorId="SelectValidator"/>
- </h:selectOneMenu>
- <h:commandButton value="submit" />
- <a4j:commandButton value="submit ajax" />
-
+ <h:form>
+
+ <table>
+ <tbody>
+ <tr>
+ <td> <h:outputText value="Rich Message Demo"/>
</td>
+ </tr>
+ <tr>
+ <td>
+ <h:selectOneMenu id="select1" value="">
+ <f:selectItem itemValue="error"
itemLabel="error"/>
+ <f:selectItem itemValue="fatal"
itemLabel="fatal"/>
+ <f:selectItem itemValue="warn"
itemLabel="warning"/>
+ <f:selectItem itemValue="info" itemLabel="info"/>
+ <f:selectItem itemValue="passed"
itemLabel="passed"/>
+ <f:validator validatorId="SelectValidator"/>
+ </h:selectOneMenu>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:selectOneMenu id="select2" value="">
+ <f:selectItem itemValue="error"
itemLabel="error"/>
+ <f:selectItem itemValue="fatal"
itemLabel="fatal"/>
+ <f:selectItem itemValue="warn"
itemLabel="warning"/>
+ <f:selectItem itemValue="info" itemLabel="info"/>
+ <f:selectItem itemValue="passed"
itemLabel="passed"/>
+ <f:validator validatorId="SelectValidator"/>
+ </h:selectOneMenu>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <h:selectOneMenu id="select3" value="">
+ <f:selectItem itemValue="error"
itemLabel="error"/>
+ <f:selectItem itemValue="fatal"
itemLabel="fatal"/>
+ <f:selectItem itemValue="warn"
itemLabel="warning"/>
+ <f:selectItem itemValue="info" itemLabel="info"/>
+ <f:selectItem itemValue="passed"
itemLabel="passed"/>
+ <f:validator validatorId="SelectValidator"/>
+ </h:selectOneMenu>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <h:selectOneMenu id="select4" value="">
+ <f:selectItem itemValue="error"
itemLabel="error"/>
+ <f:selectItem itemValue="fatal"
itemLabel="fatal"/>
+ <f:selectItem itemValue="warn"
itemLabel="warning"/>
+ <f:selectItem itemValue="info" itemLabel="info"/>
+ <f:selectItem itemValue="passed"
itemLabel="passed"/>
+ <f:validator validatorId="SelectValidator"/>
+ </h:selectOneMenu>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <r:message for="select1"
+ tooltip="true"
+ showDetail="false"
+ showSummary="true"
+ passedLabel="No Error"
+ errorLabelClass="errorLabel"
+ fatalLabelClass="warnLabel"
+ infoLabelClass="infoLabel"
+ warnLabelClass="fatalLabel"
+ title="this is tooltip"
+ >
+
+
+ <f:facet name="errorMarker">
+ <h:graphicImage url="/image/error.gif"/>
+ </f:facet>
+
+ <f:facet name="fatalMarker">
+ <h:graphicImage url="/image/fatal.gif"/>
+ </f:facet>
+
+ <f:facet name="infoMarker">
+ <h:graphicImage url="/image/info.gif"/>
+ </f:facet>
+
+ <f:facet name="warnMarker">
+ <h:graphicImage url="/image/warn.gif"/>
+ </f:facet>
+
+ <f:facet name="passedMarker">
+ <h:graphicImage url="/image/passed.gif"/>
+ </f:facet>
+ </r:message>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+
- <r:message for="select"
- tooltip="true"
- showDetail="false"
- showSummary="true"
- passedLabel="No Error"
- errorLabelClass="errorLabel"
- fatalLabelClass="warnLabel"
- infoLabelClass="infoLabel"
- warnLabelClass="fatalLabel"
- title="this is tooltip"
- >
-
-
- <f:facet name="errorMarker">
- <h:graphicImage url="/image/error.gif"/>
- </f:facet>
- <f:facet name="fatalMarker">
- <h:graphicImage url="/image/fatal.gif"/>
- </f:facet>
- <f:facet name="infoMarker">
- <h:graphicImage url="/image/info.gif"/>
- </f:facet>
- <f:facet name="warnMarker">
- <h:graphicImage url="/image/warn.gif"/>
- </f:facet>
- <f:facet name="passedMarker">
- <h:graphicImage url="/image/passed.gif"/>
- </f:facet>
- </r:message>
- <a4j:outputPanel ajaxRendered="true">
+ <table>
+ <tr>
+ <td>
+ <h:outputText value="Rich Messages Demo"/>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <r:messages layout="table"
+ tooltip="true"
+ showDetail="false"
+ showSummary="true"
+ 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"
+ var="messages"
+ >
- <r:message for="select"
- tooltip="true"
- showDetail="false"
- showSummary="true"
- passedLabel="No Error"
- errorLabelClass="errorLabel"
- fatalLabelClass="warnLabel"
- infoLabelClass="infoLabel"
- warnLabelClass="fatalLabel"
- >
-
-
- <f:facet name="errorMarker">
- <h:graphicImage url="/image/error.gif"/>
- </f:facet>
- <f:facet name="fatalMarker">
- <h:graphicImage url="/image/fatal.gif"/>
- </f:facet>
- <f:facet name="infoMarker">
- <h:graphicImage url="/image/info.gif"/>
- </f:facet>
- <f:facet name="warnMarker">
- <h:graphicImage url="/image/warn.gif"/>
- </f:facet>
- <f:facet name="passedMarker">
- <h:graphicImage url="/image/passed.gif"/>
- </f:facet>
- </r:message>
- </a4j:outputPanel>
-
+ <f:facet name="errorMarker">
+ <h:graphicImage url="/image/error.gif"/>
+ </f:facet>
+ <f:facet name="fatalMarker">
+ <h:graphicImage url="/image/fatal.gif"/>
+ </f:facet>
+ <f:facet name="infoMarker">
+ <h:graphicImage url="/image/info.gif"/>
+ </f:facet>
+ <f:facet name="warnMarker">
+ <h:graphicImage url="/image/warn.gif"/>
+ </f:facet>
+ <f:facet name="passedMarker">
+ <h:graphicImage url="/image/passed.gif"/>
+ </f:facet>
+ <h:outputText value="#{messages.summary}">
</h:outputText>
+ </r:messages>
+ </td>
+ </tr>
+ </table>
+
+ <div>
+ <h:commandButton value="submit" />
+ <a4j:commandButton value="submit ajax" />
+ </div>
</h:form>
</html>
\ No newline at end of file
Show replies by date