Author: vbaranov
Date: 2008-03-29 09:08:37 -0400 (Sat, 29 Mar 2008)
New Revision: 7404
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/filteringUsage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/examples/enabledIssue.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/sortingFeature/sortingUsage.xhtml
Log:
Update design of the demo site
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-03-29
13:08:16 UTC (rev 7403)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-03-29
13:08:37 UTC (rev 7404)
@@ -8,10 +8,10 @@
<style>
.top {
vertical-align: top;
+
}
-
.info {
- height: 210px;
+ height: 202px;
overflow: auto;
}
</style>
@@ -49,6 +49,8 @@
</rich:panel>
</rich:dataGrid>
</rich:panel>
+ <rich:spacer height="3"/>
+ <br />
<a4j:commandButton action="#{fileUploadBean.clearUploadData}"
reRender="info, upload" value="Clear Uploaded Data"
rendered="#{fileUploadBean.size>0}" />
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/filteringUsage.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/filteringUsage.xhtml 2008-03-29
13:08:16 UTC (rev 7403)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/filteringUsage.xhtml 2008-03-29
13:08:37 UTC (rev 7404)
@@ -32,8 +32,8 @@
<ui:include
src="/richfaces/filteringFeature/examples/simpleFiltering.xhtml"/>
</h:panelGroup>
<h:panelGroup>
- <p style="text-align: center">Details of usage</p>
- <fieldset class="demo_fieldset">
+ <div style="padding-left: 20px">
+ <b>Details of usage</b>
<p>
In order to change filter event you should change <b>filterEvent</b>
attribute
on column (<i>e.g. filterEvent = "onblur"</i>)
@@ -54,7 +54,7 @@
In order to change default filtering behaviour - another definition used.
An example shown at second tab("External Filtering")
</p>
- </fieldset>
+ </div>
</h:panelGroup>
</h:panelGrid>
<ui:include src="/templates/include/sourceview.xhtml">
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/examples/enabledIssue.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/examples/enabledIssue.xhtml 2008-03-29
13:08:16 UTC (rev 7403)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/examples/enabledIssue.xhtml 2008-03-29
13:08:37 UTC (rev 7404)
@@ -50,7 +50,7 @@
<h:inputText size="4" label="Second Addent"
value="#{rsBean.addent2}">
<a4j:support event="onkeyup" reRender="btn" />
</h:inputText>
- <a4j:commandButton style="margin:0 5px" id="btn"
action="#{rsBean.doSum}"
+ <a4j:commandButton style="margin:0 5px; width: 25px" id="btn"
action="#{rsBean.doSum}"
value="=" reRender="sum"
disabled="#{rsBean.addent1 == null or rsBean.addent2==null}"/>
<h:outputText id="sum" value="#{rsBean.sum}" />
@@ -67,7 +67,7 @@
<h:inputText size="4" label="Second Addent"
value="#{rsBean2.addent2}">
<a4j:support event="onkeyup" reRender="btn2" />
</h:inputText>
- <a4j:commandButton style="margin:0 5px" id="btn2"
action="#{rsBean2.doSum}"
+ <a4j:commandButton style="margin:0 5px; width: 25px"
id="btn2" action="#{rsBean2.doSum}"
value="=" reRender="sum2"
disabled="#{rsBean2.addent1 == null or rsBean2.addent2==null}"/>
<h:outputText id="sum2" value="#{rsBean2.sum}" />
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml 2008-03-29
13:08:16 UTC (rev 7403)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml 2008-03-29
13:08:37 UTC (rev 7404)
@@ -8,37 +8,39 @@
<h:form>
<a4j:outputPanel id="table">
- <table border="1">
+ <table border="1" class="dr-table rich-table">
+ <thead class="dr-table-thead">
+ <tr class="dr-table-header rich-table-header">
+ <th class="dr-table-headercell
rich-table-headercell"><h:outputText value="Product Code"
/></th>
+ <th class="dr-table-headercell
rich-table-headercell"><h:outputText value="Proposed Price"
/></th>
+ <th class="dr-table-headercell
rich-table-headercell"><h:outputText value="Sales Cost"
/></th>
+ <th class="dr-table-headercell rich-table-headercell"
style="width: 150px"><h:outputText value="Reason"
/></th>
+ <th class="dr-table-headercell
rich-table-headercell"><h:outputText value="Proposed Gross Margin"
/></th>
+ </tr>
+ </thead>
<tbody>
- <tr>
- <th><h:outputText value="Product Code" /></th>
- <th><h:outputText value="Proposed Price" /></th>
- <th><h:outputText value="Sales Cost" /></th>
- <th style="width: 150px"><h:outputText value="Reason"
/></th>
- <th><h:outputText value="Proposed Gross Margin" /></th>
- </tr>
<a4j:repeat value="#{salesReport.items}" var="item"
binding="#{updateBean.repeater}">
<tr>
- <td align="center">
+ <td align="center" class="dr-subtable-cell
rich-subtable-cell">
<h:outputText value="#{item.productCode}" />
</td>
- <td>
+ <td class="dr-subtable-cell rich-subtable-cell">
<h:inputText binding="#{updateBean.priceRef}"
immediate="false" value="#{item.proposedPrice}"
size="7">
<a4j:support immediate="true"
action="#{updateBean.change}"
event="onchange" reRender="reason,margin" />
</h:inputText>
</td>
- <td>
+ <td class="dr-subtable-cell rich-subtable-cell">
<h:outputText value="#{item.salesCost}" />
</td>
- <td>
+ <td class="dr-subtable-cell rich-subtable-cell">
<h:selectOneMenu id="reason" required="true"
value="#{item.reason}">
<f:selectItems value="#{item.reasons}" />
</h:selectOneMenu>
</td>
- <td>
+ <td class="dr-subtable-cell rich-subtable-cell">
<h:outputText id="margin"
value="#{item.proposedGrossMargin}">
<f:convertNumber pattern="$###0.000" />
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/sortingFeature/sortingUsage.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/sortingFeature/sortingUsage.xhtml 2008-03-29
13:08:16 UTC (rev 7403)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/sortingFeature/sortingUsage.xhtml 2008-03-29
13:08:37 UTC (rev 7404)
@@ -37,8 +37,8 @@
</h:panelGroup>
<h:panelGroup>
- <p style="text-align: center">Details of usage</p>
- <fieldset class="demo_fieldset">
+ <div style="padding-left: 20px">
+ <b>Details of usage</b>
<p>
Next attributes could be defined to manage simple built-in sorting:
</p>
@@ -62,7 +62,7 @@
use value "false" for this attribute.
</li>
</ul>
- </fieldset>
+ </div>
</h:panelGroup>
</h:panelGrid>
</div>