Author: dsvyatobatsko
Date: 2008-03-27 08:07:28 -0400 (Thu, 27 Mar 2008)
New Revision: 7294
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/examples/painter.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/usage.xhtml
Log:
Demo site: paint2D, fileUpload demos layout correction
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/usage.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/usage.xhtml 2008-03-27
12:06:28 UTC (rev 7293)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/usage.xhtml 2008-03-27
12:07:28 UTC (rev 7294)
@@ -17,16 +17,21 @@
Every uploaded file should be managed through <b>fileUploadListener
</b>which called after
every single file upload finished.
</p>
- <p><b>This example allows to download up to 5 files. The file extension is
limited to GIF, JPG,
- BMP, PNG and the maximum size of each file must not exceed 100kB </b></p>
- <div class="sample-container" >
- <ui:include src="/richfaces/fileUpload/examples/fileUpload.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath"
value="/richfaces/fileUpload/examples/fileUpload.xhtml"/>
- </ui:include>
- </div>
- <fieldset>
- <legend><b>Details of Usage</b></legend>
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">FileUpload example</legend>
+ <div class="sample-container" >
+ <p>This example allows to download up to 5 files. The file extension is
limited to GIF, JPG,
+ BMP, PNG and the maximum size of each file must not exceed 100kB</p>
+ <br/>
+ <ui:include src="/richfaces/fileUpload/examples/fileUpload.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/fileUpload/examples/fileUpload.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Details of Usage</legend>
<p>
File upload could works in <b>automatic upload</b> mode. You should just
define
<b>immediateUpload </b>upload attribute as <b>true
</b>(<i>false by default</i>) and upload will be started
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/examples/painter.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/examples/painter.xhtml 2008-03-27
12:06:28 UTC (rev 7293)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/examples/painter.xhtml 2008-03-27
12:07:28 UTC (rev 7294)
@@ -4,16 +4,18 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
-
- <rich:separator height="1" style="padding:10px 0" />
- <h:form>
+ <br/>
+ <h:form>
<h:panelGrid columns="3" width="100%">
- <h:inputText value="#{paintData.text}">
- <a4j:support event="onkeyup" reRender=":painter" />
- </h:inputText>
+ <h:panelGroup>
+ <br/>
+ <h:inputText value="#{paintData.text}">
+ <a4j:support event="onkeyup" reRender=":painter" />
+ </h:inputText>
+ </h:panelGroup>
<h:panelGroup>
Color:
@@ -27,10 +29,8 @@
</h:panelGroup>
-
<h:panelGroup>
Shadow:
-
<rich:inputNumberSlider showInput="false"
showBoundaryValues="false" showToolTip="false"
value="#{paintData.scale}" step="0.5" minValue="0"
maxValue="3">
@@ -40,13 +40,11 @@
</h:panelGroup>
-
</h:panelGrid>
</h:form>
<rich:paint2D id="painter" width="300" height="120"
data="#{paintData}" format="png"
paint="#{paintBean.paint}" />
- <rich:separator height="1" style="padding:10px 0" />
+ <br/>
-
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/usage.xhtml 2008-03-27
12:06:28 UTC (rev 7293)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D/usage.xhtml 2008-03-27
12:07:28 UTC (rev 7294)
@@ -20,30 +20,30 @@
<p>To improve the performance and avoid the extra unnecessary
traffic over the net, a generated image will be cached if the data
is not changed. You can turn this feature off with a cacheable attribute.</p>
- <div class="sample-container">
- <ui:include src="/richfaces/paint2D/examples/painter.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath"
value="/richfaces/paint2D/examples/painter.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
- </ui:include>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Paint2D demo</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/paint2D/examples/painter.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/paint2D/examples/painter.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
+ </ui:include>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath"
value="/richfaces/paint2D/examples/PaintBean.java"/>
- <ui:param name="openlabel" value="View PaintBean.java Source"
/>
- <ui:param name="sourcetype" value="java" />
- </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/paint2D/examples/PaintBean.java"/>
+ <ui:param name="openlabel" value="View PaintBean.java Source"
/>
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/paint2D/examples/PaintData.java"/>
+ <ui:param name="openlabel" value="View PaintData.java Source"
/>
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ </div>
+ </fieldset>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath"
value="/richfaces/paint2D/examples/PaintData.java"/>
- <ui:param name="openlabel" value="View PaintData.java Source"
/>
- <ui:param name="sourcetype" value="java" />
- </ui:include>
-
-
- </div>
-
</ui:define>
</ui:composition>