JBoss Rich Faces SVN: r7308 - in trunk/test-applications/jsp/src/main: java/util/event and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-03-27 11:46:00 -0400 (Thu, 27 Mar 2008)
New Revision: 7308
Modified:
trunk/test-applications/jsp/src/main/java/dfs/DemoSliderBean.java
trunk/test-applications/jsp/src/main/java/util/event/Event.java
trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp
Log:
http://jira.jboss.com/jira/browse/RF-2698
Modified: trunk/test-applications/jsp/src/main/java/dfs/DemoSliderBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dfs/DemoSliderBean.java 2008-03-27 15:37:40 UTC (rev 7307)
+++ trunk/test-applications/jsp/src/main/java/dfs/DemoSliderBean.java 2008-03-27 15:46:00 UTC (rev 7308)
@@ -33,15 +33,18 @@
private DemoInventoryList demoInventoryList;
private String action;
private String actionListener;
- private String onslide;
- private String onchange;
private boolean storeResults;
private Integer startRange;
private Integer endRange;
private Integer increment;
private String trailer;
private Integer handleValue;
-
+
+// " storeResults="true"
+// startRange="10000" endRange="60000" increment="10000"
+// manualInput="true" width="400px"
+// trailer="true" handleValue="10000"
+
public DemoSliderBean() {
rendered = true;
action = "---";
Modified: trunk/test-applications/jsp/src/main/java/util/event/Event.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/event/Event.java 2008-03-27 15:37:40 UTC (rev 7307)
+++ trunk/test-applications/jsp/src/main/java/util/event/Event.java 2008-03-27 15:46:00 UTC (rev 7308)
@@ -92,6 +92,7 @@
private String ongroupexpand;
private String oncontextmenu;
private String ongroupcollapse;
+ private String onSlideSubmit;
// showEvent('onkeypressInputID', 'onkeypress work!')
public Event() {
@@ -179,7 +180,8 @@
ontimeselected = "showEvent('ontimeselectedInputID', 'ontimeselected work!')";
ontopclick = "showEvent('ontopclickInputID', 'ontopclick work!')";
onupclick = "showEvent('onupclickInputID', 'onupclick work!')";
- ongroupcollapse = "showEvent('ongroupcollapseInputID', 'ongroupcollapse')";
+ ongroupcollapse = "showEvent('ongroupcollapseInputID', 'ongroupcollapse work!')";
+ onSlideSubmit = "showEvent('onSlideSubmitInputID', 'onSlideSubmit work!')";
}
public String getOncontextmenu() {
@@ -1056,4 +1058,18 @@
this.ongroupcollapse = ongroupcollapse;
}
+ /**
+ * @return the onSlideSubmit
+ */
+ public String getOnSlideSubmit() {
+ return onSlideSubmit;
+ }
+
+ /**
+ * @param onSlideSubmit the onSlideSubmit to set
+ */
+ public void setOnSlideSubmit(String onSlideSubmit) {
+ this.onSlideSubmit = onSlideSubmit;
+ }
+
}
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp 2008-03-27 15:37:40 UTC (rev 7307)
+++ trunk/test-applications/jsp/src/main/webapp/DataFilterSlider/DataFilterSlider.jsp 2008-03-27 15:46:00 UTC (rev 7308)
@@ -8,10 +8,11 @@
<rich:dataFilterSlider sliderListener="#{dfs.doSlide}" action="#{dfs.act}" actionListener="#{dfs.actListener}"
rendered="#{dfs.rendered}" binding="#{inventoryList.dataFilterSlider}"
for="carList" forValRef="inventoryList.carInventory"
- filterBy="getMileage" manualInput="true" width="400px"
+ filterBy="getMileage"
styleClass="#{style.styleClass}" rangeStyleClass="#{style.rangeStyleClass}" trailerStyleClass="#{style.trailerStyleClass}" style="#{style.style}" fieldStyleClass="#{style.fieldStyleClass}" trackStyleClass="#{style.trackStyleClass}" handleStyleClass="#{style.handleStyleClass}"
- onslide="true" onchange="true" storeResults="true"
+ storeResults="true"
startRange="10000" endRange="60000" increment="10000"
+ manualInput="true" width="400px"
trailer="true" handleValue="10000" id="dfsID"
onbeforedomupdate="#{event.onbeforedomupdate}"
onclick="#{event.onclick}"
@@ -21,7 +22,7 @@
onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
onmouseup="#{event.onmouseup}"
- onSlideSubmit="#{event.onSlideSubmit}">
+ onSlideSubmit="true">
</rich:dataFilterSlider>
<h:panelGrid id="list-body">
@@ -80,10 +81,10 @@
<h:commandButton value="reRender" />
<h:panelGrid columns="2">
- <a4j:commandButton value="action" rendered="actionDFSID" style=" width : 95px;"></a4j:commandButton> />
+ <a4j:commandButton value="action" rendered="actionDFSID" style=" width : 95px;"></a4j:commandButton>
<h:outputText id="actionDFSID" value="#{dfs.action}" />
- <a4j:commandButton value="actionListener" rendered="actionListenerDFSID" style=" width : 95px;"></a4j:commandButton> />
+ <a4j:commandButton value="actionListener" rendered="actionListenerDFSID" style=" width : 95px;"></a4j:commandButton>
<h:outputText id="actionListenerDFSID" value="#{dfs.actionListener}" />
</h:panelGrid>
</f:subview>
16 years, 9 months
JBoss Rich Faces SVN: r7307 - in trunk/ui/fileUpload/src/main: resources/org/richfaces/renderkit/html/js and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-03-27 11:37:40 -0400 (Thu, 27 Mar 2008)
New Revision: 7307
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
Implement 'uploading' label internationalization
Modified: trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
===================================================================
--- trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-03-27 15:34:26 UTC (rev 7306)
+++ trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-03-27 15:37:40 UTC (rev 7307)
@@ -70,18 +70,18 @@
/** Set of bundles that can be defined */
private static final String[] bundlesLables = { "add", "upload", "stop",
"clear_all", "entry_cancel", "entry_clear", "entry_stop", "done",
- "size_error", "transfer_error" };
+ "size_error", "transfer_error","progress" };
/** Default labels values */
private static final String[] defaultLables = { "Add...", "<b>Upload</b>",
"<b>Stop</b>", "Clear All", "Cancel", "Clear", "Stop",
- "<b>Done</b>", "File size restricted", "Transfer error occuried" };
+ "<b>Done</b>", "File size restricted", "Transfer error occuried","uploading"};
/** Set of attributes that can define label's value */
private static final String[] labelAttribues = { "addControlLabel",
"uploadControlLabel", "stopControlLabel", "clearAllControlLabel",
"cancelEntryControlLabel", "clearControlLabel",
- "stopEntryControlLabel", null, null, null };
+ "stopEntryControlLabel", null, null, null, null };
/**
* Overrides standard JSF component method.
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-27 15:34:26 UTC (rev 7306)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-27 15:37:40 UTC (rev 7307)
@@ -16,7 +16,7 @@
FileUploadEntry.LABELS = {};
FileUploadEntry.LABELS[FileUploadEntry.INITIALIZED] = '';
FileUploadEntry.LABELS[FileUploadEntry.READY] = '';
-FileUploadEntry.LABELS[FileUploadEntry.UPLOAD_IN_PROGRESS] = 'uploading';
+FileUploadEntry.LABELS[FileUploadEntry.UPLOAD_IN_PROGRESS] = '';
FileUploadEntry.LABELS[FileUploadEntry.UPLOAD_CANCELED] = '';
FileUploadEntry.LABELS[FileUploadEntry.UPLOAD_FORBIDDEN] = 'Uploading forbidden';
16 years, 9 months
JBoss Rich Faces SVN: r7306 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: jQuery/examples and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-03-27 11:34:26 -0400 (Thu, 27 Mar 2008)
New Revision: 7306
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/examples/fishEye.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/examples/zebra.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml
Log:
Demo site: jQuery, VirtualEarth demos layout correction
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/examples/fishEye.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/examples/fishEye.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/examples/fishEye.xhtml 2008-03-27 15:34:26 UTC (rev 7306)
@@ -19,12 +19,8 @@
</style>
- <rich:separator lineType="solid" height="1" />
- <h:outputText value="This demo shows how to attach the mouseover/mouseout events to the
- DOM objects. However the images below show how to make them enlarged." />
-
- <rich:separator lineType="solid" height="1" style="padding-bottom:10px;" />
-
+ <br/>
+
<a4j:outputPanel id="gallery">
<h:graphicImage value="/richfaces/jQuery/images/pic1.jpg" />
<h:graphicImage value="/richfaces/jQuery/images/pic2.jpg" />
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/examples/zebra.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/examples/zebra.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/examples/zebra.xhtml 2008-03-27 15:34:26 UTC (rev 7306)
@@ -17,14 +17,7 @@
}
</style>
-
-
- <rich:separator lineType="solid" height="1" />
-
- <h:outputText value="This demo shows how just four rich:jQuery queries allow to
- add zebra-style to a table and highlight rows under the mouse cursor." />
-
-
+ <br/>
<rich:dataTable width="483" id="carList" rows="15"
value="#{dataTableScrollerBean.allCars}" var="category">
<f:facet name="header">
@@ -57,7 +50,5 @@
query="mouseover(function(){jQuery(this).addClass('active-row')})"/>
<rich:jQuery selector="#carList tr"
query="mouseout(function(){jQuery(this).removeClass('active-row')})"/>
-
-
- <rich:separator height="1" style="padding-top:10px" />
+ <br/>
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/usage.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/jQuery/usage.xhtml 2008-03-27 15:34:26 UTC (rev 7306)
@@ -23,13 +23,17 @@
</p>
- <div class="sample-container" >
-
- <ui:include src="/richfaces/jQuery/examples/zebra.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/jQuery/examples/zebra.xhtml"/>
- </ui:include>
- </div>
+ <p>This demo shows how just four rich:jQuery queries allow to
+ add zebra-style to a table and highlight rows under the mouse cursor.</p>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Zebra-styled table with rich:jQuery example</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/jQuery/examples/zebra.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/jQuery/examples/zebra.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
<p>
rich:jQuery can be used in two major modes:
<ul>
@@ -51,15 +55,18 @@
The selector attribute defines an object or list of objects, the query
defined with the query attribute will be applied to.
</p>
- <div class="sample-container" >
+ <p>This demo shows how to attach the mouseover/mouseout events to the
+ DOM objects. However the images below show how to make them enlarged.</p>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Fisheye effect with rich:jQuery example</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/jQuery/examples/fishEye.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/jQuery/examples/fishEye.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
- <ui:include src="/richfaces/jQuery/examples/fishEye.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/jQuery/examples/fishEye.xhtml"/>
- </ui:include>
- </div>
-
-
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml 2008-03-27 15:34:26 UTC (rev 7306)
@@ -25,15 +25,17 @@
</li>
</ul>
</p>
- <div class="sample-container" >
- <ui:include src="/richfaces/virtualEarth/examples/placeToGo.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/virtualEarth/examples/placeToGo.xhtml"/>
- </ui:include>
-
- </div>
-
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">VirtualEarth example</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/virtualEarth/examples/placeToGo.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/virtualEarth/examples/placeToGo.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
+
<p>
<b>var</b> attribute define a javascript variable you can use then as a reference to the
map from your custom javascript.
16 years, 9 months
JBoss Rich Faces SVN: r7305 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: insert and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-03-27 10:56:16 -0400 (Thu, 27 Mar 2008)
New Revision: 7305
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/message/examples/form.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/message/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/usage.xhtml
Log:
Demo site: Effect, Insert, Message/s demos layout correction
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/usage.xhtml 2008-03-27 14:55:03 UTC (rev 7304)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/usage.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
@@ -10,15 +10,17 @@
<p>rich:effect utilizes the set of effects provided by scriptaculous javascript library. It
allows to attach effects to JSF components and html tags. For the reference of the available
- effects and their parameters see the scriptaculous documentation and wiki. There are
- <b>some of many</b> possible effects available out-of-the-box:
+ effects and their parameters see the scriptaculous documentation and wiki.
</p>
- <div class="sample-container">
- <ui:include src="/richfaces/effect/examples/diffTypes.xhtml" />
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/effect/examples/diffTypes.xhtml"/>
- </ui:include>
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Some of many possible effects available out-of-the-box</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/effect/examples/diffTypes.xhtml" />
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/effect/examples/diffTypes.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
<p>
It is possible to use rich:effect in two modes:
<ul>
@@ -28,14 +30,14 @@
<li>invoking from the javascript code by an effect name. During the rendering, rich:effect generates the javascript
function with a defined name. When the function is called, the effect is applied</li>
</ul>
- Here are the typical variants of usage:
</p>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Typical variants of usage</legend>
+ <div class="sample-container">
+ <rich:insert src="/richfaces/effect/snippets/usecases.html" highlight="xhtml" />
+ </div>
+ </fieldset>
- <div class="sample-container">
- <rich:insert src="/richfaces/effect/snippets/usecases.html" highlight="xhtml" />
- </div>
-
-
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert/usage.xhtml 2008-03-27 14:55:03 UTC (rev 7304)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert/usage.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
@@ -19,15 +19,17 @@
enabled. The following example shows the groovy code snippet inserted and highlighted:
</p>
-
- <div class="sample-container">
- <ui:include src="/richfaces/insert/examples/groovy.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/insert/examples/groovy.xhtml"/>
- <ui:param name="openlabel" value="View Page Source" />
- </ui:include>
- </div>
-
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Groovy code snippet page integration example</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/insert/examples/groovy.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/insert/examples/groovy.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
+ </ui:include>
+ </div>
+ </fieldset>
+
<p>
<b>errorContent</b> attribute defines the alternative content that will be shown
in case rich:insert cannot read the resource defined with 'src' attribute. If
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/message/examples/form.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/message/examples/form.xhtml 2008-03-27 14:55:03 UTC (rev 7304)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/message/examples/form.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
@@ -17,7 +17,7 @@
<rich:panel>
<f:facet name="header">
- <h:outputText value="Form Validation. Using rich:message"/>
+ <h:outputText value="Validation Form"/>
</f:facet>
<h:form>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/message/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/message/usage.xhtml 2008-03-27 14:55:03 UTC (rev 7304)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/message/usage.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
@@ -24,14 +24,15 @@
Fill the form and click "Validate" button to see the entered data passing the
defined validation rules.
</p>
- <div class="sample-container" >
-
- <ui:include src="/richfaces/message/examples/form.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/message/examples/form.xhtml"/>
- </ui:include>
-
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Form validation using rich:message example</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/message/examples/form.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/message/examples/form.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml 2008-03-27 14:55:03 UTC (rev 7304)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
@@ -14,9 +14,9 @@
<rich:panel style="width:400px">
<f:facet name="header">
- <h:outputText value="Form Validation. Using rich:messages"/>
+ <h:outputText value="Validation Form"/>
</f:facet>
-
+
<h:form>
<rich:messages passedLabel="Data is allowed to be stored." layout="list">
<f:facet name="header">
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/usage.xhtml 2008-03-27 14:55:03 UTC (rev 7304)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/usage.xhtml 2008-03-27 14:56:16 UTC (rev 7305)
@@ -24,14 +24,15 @@
Fill the form and click the "Validate" button to see the entered data passing the
defined validation rules.
</p>
- <div class="sample-container" >
-
- <ui:include src="/richfaces/messages/examples/form.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/messages/examples/form.xhtml"/>
- </ui:include>
-
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Form validation using rich:messages example</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/messages/examples/form.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/messages/examples/form.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
</ui:define>
</ui:composition>
16 years, 9 months
JBoss Rich Faces SVN: r7304 - in trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html: scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-27 10:55:03 -0400 (Thu, 27 Mar 2008)
New Revision: 7304
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
http://jira.jboss.com/jira/browse/RF-2794
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-03-27 14:54:47 UTC (rev 7303)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-03-27 14:55:03 UTC (rev 7304)
@@ -100,6 +100,7 @@
top:0;
left:0;
position : absolute;
+ font-size: 11px;
}
.rich-inplace-select-list-shadow{
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-27 14:54:47 UTC (rev 7303)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-27 14:55:03 UTC (rev 7304)
@@ -132,9 +132,10 @@
saveValue : function($super) {
this.applyTmpValue();
- if (!this.comboList.isList || this.clickOnBar) {
+ if ((!this.comboList.isList || this.clickOnBar) && this.tempValueKeeper.value) {
this.save(this.currentItemValue, this.tempValueKeeper.value);
}
+ this.comboList.hide();
},
applyTmpValue : function() {
@@ -169,11 +170,15 @@
cancel : function($super, e) {
var item = this.getLabelItem(this.valueKeeper.value);
- if (this.comboList.selectedItem) {
- this.comboList.doNormalItem(this.comboList.selectedItem);
+ if (item) {
+ if (this.comboList.selectedItem) {
+ this.comboList.doNormalItem(this.comboList.selectedItem);
+ }
+ this.comboList.doSelectItem(item);
+ $super(e, item.innerHTML);
+ this.comboList.hide();
}
- this.comboList.doSelectItem(item);
- $super(e, item.innerHTML);
+ return false;
}
});
16 years, 9 months
JBoss Rich Faces SVN: r7303 - trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-27 10:54:47 -0400 (Thu, 27 Mar 2008)
New Revision: 7303
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
http://jira.jboss.com/jira/browse/RF-2794
Modified: trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-27 14:50:40 UTC (rev 7302)
+++ trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-27 14:54:47 UTC (rev 7303)
@@ -279,8 +279,10 @@
saveValue : function() {
var userValue = this.tempValueKeeper.value;
- var currentText = userValue;
- this.save(userValue, currentText);
+ if (userValue) {
+ var currentText = userValue;
+ this.save(userValue, currentText);
+ }
},
save : function(userValue, currentText) {
16 years, 9 months
JBoss Rich Faces SVN: r7302 - trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-03-27 10:50:40 -0400 (Thu, 27 Mar 2008)
New Revision: 7302
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
Log:
RF-2341
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-03-27 14:19:34 UTC (rev 7301)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-03-27 14:50:40 UTC (rev 7302)
@@ -437,12 +437,12 @@
updateHeaders : function() {
var cols = this.getColumns();
for(var i = 0; i < cols.length; i++) {
- var col = cols[i];
- var div = col.object.getElement().firstChild;
+ var th = cols[i].object.getElement();
+ var div = th.firstChild;
var icon = this._getCellElements(i)[1];
if (icon) {
- var newPosX = div.clientWidth - icon.getWidth();
+ var newPosX = th.offsetLeft + div.clientWidth - icon.getWidth();
var newPosY = (div.clientHeight - icon.offsetHeight)/2;
newPosX = Math.floor(newPosX);
16 years, 9 months
JBoss Rich Faces SVN: r7301 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-27 10:19:34 -0400 (Thu, 27 Mar 2008)
New Revision: 7301
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml 2008-03-27 14:19:04 UTC (rev 7300)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml 2008-03-27 14:19:34 UTC (rev 7301)
@@ -1,46 +1,43 @@
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:c="http://java.sun.com/jstl/core">
-
-<style>
-.pic{
-margin-bottom:-4px;
-margin-right:2px;
-}
-a{
-text-decoration:none;
-color:#{a4jSkin.headerTextColor};
-}
-</style>
- <h:form>
- <rich:toolBar id="toolBar" itemSeparator="line" height="28px">
- <c:forEach items="#{toolBar.items}" var="item">
- <h:panelGroup>
- <h:graphicImage value="#{item.iconURI}" styleClass="pic"/>
- <h:outputLink value="#">
- <h:outputText value="#{item.label}"></h:outputText>
- </h:outputLink>
- </h:panelGroup>
- </c:forEach>
- </rich:toolBar>
- <rich:spacer height="20"></rich:spacer>
-
- <rich:listShuttle sourceValue="#{toolBar.freeItems}"
- targetValue="#{toolBar.items}" var="items" listHeight="300" listWidth="300"
- sourceCaptionLabel="Available Items"
- targetCaptionLabel="Currently Active Items"
- converter="listShuttleconverter">
- <rich:column width="18">
- <h:graphicImage value="#{items.iconURI}"></h:graphicImage>
- </rich:column>
- <rich:column>
- <h:outputText value="#{items.label}"></h:outputText>
- </rich:column>
- <a4j:support event="onlistchanged" reRender="toolBar"/>
- </rich:listShuttle>
- </h:form>
-</ui:composition>
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:c="http://java.sun.com/jstl/core">
+
+ <style>
+.pic {
+ margin-bottom: -4px;
+ margin-right: 2px;
+}
+</style>
+ <h:form>
+ <rich:toolBar id="toolBar" itemSeparator="line" height="28px">
+ <c:forEach items="#{toolBar.items}" var="item">
+ <h:panelGroup>
+ <h:graphicImage value="#{item.iconURI}" styleClass="pic" />
+ <h:outputLink value="#">
+ <h:outputText value="#{item.label}"
+ style="color:#{a4jSkin.generalTextColor}; text-decoration:none;" />
+ </h:outputLink>
+ </h:panelGroup>
+ </c:forEach>
+ </rich:toolBar>
+ <rich:spacer height="20" />
+
+ <rich:listShuttle sourceValue="#{toolBar.freeItems}"
+ targetValue="#{toolBar.items}" var="items" listHeight="300"
+ listWidth="300" sourceCaptionLabel="Available Items"
+ targetCaptionLabel="Currently Active Items"
+ converter="listShuttleconverter">
+ <rich:column width="18">
+ <h:graphicImage value="#{items.iconURI}"></h:graphicImage>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{items.label}"></h:outputText>
+ </rich:column>
+ <a4j:support event="onlistchanged" reRender="toolBar" />
+ </rich:listShuttle>
+ </h:form>
+</ui:composition>
16 years, 9 months
JBoss Rich Faces SVN: r7300 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces/dropDownMenu/examples and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-27 10:19:04 -0400 (Thu, 27 Mar 2008)
New Revision: 7300
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ddmenu/Menu.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/examples/topmenu.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar/examples/iconBar.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar/examples/menus.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-2598
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ddmenu/Menu.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ddmenu/Menu.java 2008-03-27 13:30:19 UTC (rev 7299)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ddmenu/Menu.java 2008-03-27 14:19:04 UTC (rev 7300)
@@ -23,12 +23,12 @@
this.current="Close";
return null;
}
- public String doSaveText() {
- this.current="Save as Text File";
+ public String doSave() {
+ this.current="Save";
return null;
}
- public String doSavePDF() {
- this.current="Save as PDF File";
+ public String doSaveAll() {
+ this.current="Save All";
return null;
}
public String doExit() {
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/examples/topmenu.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/examples/topmenu.xhtml 2008-03-27 13:30:19 UTC (rev 7299)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu/examples/topmenu.xhtml 2008-03-27 14:19:04 UTC (rev 7300)
@@ -1,63 +1,85 @@
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <style>
+ .pic {
+ margin-bottom: -4px;
+ margin-right: 2px;
+ }
+ </style>
<h:form>
-
+
<rich:toolBar>
- <rich:dropDownMenu value="File">
-
- <rich:menuItem submitMode="ajax" value="New" action="#{ddmenu.doNew}">
+
+ <rich:dropDownMenu>
+ <f:facet name="label">
+ <h:panelGroup>
+ <h:graphicImage value="/images/icons/copy.gif" styleClass="pic"/>
+ <h:outputText value="File"/>
+ </h:panelGroup>
+ </f:facet>
+ <rich:menuItem submitMode="ajax" value="New"
+ action="#{ddmenu.doNew}" icon="/images/icons/create_doc.gif">
</rich:menuItem>
- <rich:menuItem submitMode="ajax" value="Open" action="#{ddmenu.doOpen}"/>
+ <rich:menuItem submitMode="ajax" value="Open"
+ action="#{ddmenu.doOpen}" icon="/images/icons/open.gif" />
<rich:menuGroup value="Save As...">
- <rich:menuItem submitMode="ajax" value="Text File" action="#{ddmenu.doSaveText}"/>
- <rich:menuItem submitMode="ajax" value="PDF File" action="#{ddmenu.doSavePDF}"/>
+ <rich:menuItem submitMode="ajax" value="Save"
+ action="#{ddmenu.doSave}" icon="/images/icons/save.gif" />
+ <rich:menuItem submitMode="ajax" value="Save All"
+ action="#{ddmenu.doSaveAll}" icon="" >
+ <f:facet name="icon">
+ <h:graphicImage value="richfaces/toolBar/images/icons/save_all.gif" />
+ </f:facet>
+
+ </rich:menuItem>
</rich:menuGroup>
- <rich:menuItem submitMode="ajax" value="Close" action="#{ddmenu.doClose}"/>
- <rich:menuSeparator id="menuSeparator11"/>
- <rich:menuItem submitMode="ajax" value="Exit" action="#{ddmenu.doExit}"/>
-
+ <rich:menuItem submitMode="ajax" value="Close"
+ action="#{ddmenu.doClose}" />
+ <rich:menuSeparator id="menuSeparator11" />
+ <rich:menuItem submitMode="ajax" value="Exit"
+ action="#{ddmenu.doExit}" />
+
</rich:dropDownMenu>
-
+
<rich:dropDownMenu>
-
+
<f:facet name="label">
- <h:panelGrid cellpadding="0" cellspacing="0" columns="2" style="vertical-align:middle">
- <h:graphicImage value="/richfaces/toolBar/images/yellow_lamp.gif"/>
+ <h:panelGrid cellpadding="0" cellspacing="0" columns="2"
+ style="vertical-align:middle">
<h:outputText value="Links" />
</h:panelGrid>
</f:facet>
-
- <rich:menuItem submitMode="none" onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
- <f:facet name="icon">
- <h:graphicImage value="/richfaces/toolBar/images/webapp_welcome.gif" />
- </f:facet>
+
+ <rich:menuItem submitMode="none"
+ onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
<h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
<h:outputText value="RichFaces Home Page"></h:outputText>
</h:outputLink>
</rich:menuItem>
-
- <rich:menuItem submitMode="none" onclick="document.location.href='http://jboss.com/index.html?module=bb&op=viewforum&f=261'">
- <f:facet name="icon">
- <h:graphicImage value="/richfaces/toolBar/images/timer_task.gif" />
- </f:facet>
- <h:outputLink value="http://jboss.com/index.html?module=bb&op=viewforum&f=261">
+
+ <rich:menuItem submitMode="none"
+ onclick="document.location.href='http://jboss.com/index.html?module=bb&op=viewforum&f=261'">
+ <h:outputLink
+ value="http://jboss.com/index.html?module=bb&op=viewforum&f=261">
<h:outputText value="RichFaces Forum"></h:outputText>
</h:outputLink>
</rich:menuItem>
-
+
</rich:dropDownMenu>
</rich:toolBar>
</h:form>
- <img src="images/spacer.gif" width="1" height="5" alt="" border="0"/><br/>
+ <img src="images/spacer.gif" width="1" height="5" alt="" border="0" />
+ <br />
<a4j:outputPanel ajaxRendered="true">
<h:outputText value="Current Selection: "></h:outputText>
<h:outputText style="font-weight:bold" value="#{ddmenu.current}"></h:outputText>
</a4j:outputPanel>
- <br/><img src="images/spacer.gif" width="1" height="25" alt="" border="0"/>
+ <br />
+ <img src="images/spacer.gif" width="1" height="25" alt="" border="0" />
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar/examples/iconBar.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar/examples/iconBar.xhtml 2008-03-27 13:30:19 UTC (rev 7299)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar/examples/iconBar.xhtml 2008-03-27 14:19:04 UTC (rev 7300)
@@ -5,20 +5,28 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
+<style>
+ .pic{
+ margin-bottom: -4px;
+ margin-right: 2px;
+}
+
+</style>
+
<rich:toolBar height="26" itemSeparator="grid">
<rich:toolBarGroup>
- <h:graphicImage value="/richfaces/toolBar/images/new.gif" />
- <h:graphicImage value="/richfaces/toolBar/images/webapp_welcome.gif"/>
- <h:graphicImage value="/richfaces/toolBar/images/palette_edit.gif"/>
+ <h:graphicImage value="/images/icons/create_doc.gif" styleClass="pic"/>
+ <h:graphicImage value="/images/icons/create_folder.gif" styleClass="pic"/>
+ <h:graphicImage value="/images/icons/copy.gif" styleClass="pic"/>
</rich:toolBarGroup>
<rich:toolBarGroup>
- <h:graphicImage value="/richfaces/toolBar/images/print_edit.gif"/>
- <h:graphicImage value="/richfaces/toolBar/images/print.gif"/>
- <h:graphicImage value="/richfaces/toolBar/images/print_preview.gif"/>
+ <h:graphicImage value="/images/icons/save.gif" styleClass="pic"/>
+ <h:graphicImage value="/images/icons/save_as.gif" styleClass="pic"/>
+ <h:graphicImage value="/images/icons/save_all.gif" styleClass="pic"/>
</rich:toolBarGroup>
<rich:toolBarGroup location="right">
- <h:graphicImage value="/richfaces/toolBar/images/yellow_lamp.gif"/>
- <h:graphicImage value="/richfaces/toolBar/images/timer_task.gif"/>
+ <h:graphicImage value="/images/icons/find.gif" styleClass="pic"/>
+ <h:graphicImage value="/images/icons/filter.gif" styleClass="pic"/>
</rich:toolBarGroup>
</rich:toolBar>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar/examples/menus.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar/examples/menus.xhtml 2008-03-27 13:30:19 UTC (rev 7299)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar/examples/menus.xhtml 2008-03-27 14:19:04 UTC (rev 7300)
@@ -17,16 +17,16 @@
<h:form>
<rich:toolBar height="34" itemSeparator="line">
<rich:toolBarGroup>
- <h:graphicImage id="edit" value="/richfaces/toolBar/images/print_edit.gif" />
+ <h:graphicImage id="edit" value="/images/icons/edit.gif" />
<h:outputLabel value="Edit" for="edit" />
</rich:toolBarGroup>
<rich:toolBarGroup>
- <h:graphicImage id="print" value="/richfaces/toolBar/images/print.gif" />
- <h:outputLabel value="Print" for="edit" />
+ <h:graphicImage id="find" value="/images/icons/find.gif" />
+ <h:outputLabel value="Find" for="find" />
</rich:toolBarGroup>
<rich:toolBarGroup>
- <h:graphicImage id="preview" value="/richfaces/toolBar/images/print_preview.gif" />
- <h:outputLabel value="Preview" for="preview" />
+ <h:graphicImage id="filter" value="/images/icons/filter.gif" />
+ <h:outputLabel value="Filter" for="filter" />
</rich:toolBarGroup>
<rich:toolBarGroup location="right">
<h:inputText styleClass="barsearch" />
16 years, 9 months
JBoss Rich Faces SVN: r7299 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: inplaceSelect and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-03-27 09:30:19 -0400 (Thu, 27 Mar 2008)
New Revision: 7299
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceSelect/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/usage.xhtml
Log:
Demo site: InplaceInput, InplaceSelect, SuggestionBox demos layout correction
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml 2008-03-27 12:40:05 UTC (rev 7298)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml 2008-03-27 13:30:19 UTC (rev 7299)
@@ -26,31 +26,43 @@
to edit the value and
click somewhere outside the component to store this value(Or just press ENTER button).
</p>
- <div class="sample-container" jsfc="h:panelGroup" layout="block">
- <ui:include src="/richfaces/inplaceInput/examples/simpleDefault.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/simpleDefault.xhtml"/>
- </ui:include>
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">The simplest InplaceInput</legend>
+ <div class="sample-container" jsfc="h:panelGroup" layout="block">
+ <br/>
+ <ui:include src="/richfaces/inplaceInput/examples/simpleDefault.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/simpleDefault.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
<p>
The second example has controls for components enabled with <b>showControls </b>attribute.
These controls should be used in order to apply a value or cancel editing.
</p>
- <div class="sample-container" jsfc="h:panelGroup" layout="block">
- <ui:include src="/richfaces/inplaceInput/examples/simpleWithControls.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/simpleWithControls.xhtml"/>
- </ui:include>
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">InplaceInput with controls</legend>
+ <div class="sample-container" jsfc="h:panelGroup" layout="block">
+ <br/>
+ <ui:include src="/richfaces/inplaceInput/examples/simpleWithControls.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/simpleWithControls.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
<p>
Controls used by inplace could be redefined using <b>controls</b> named facet:
</p>
- <div class="sample-container">
- <ui:include src="/richfaces/inplaceInput/examples/controlsCustomization.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/controlsCustomization.xhtml"/>
- </ui:include>
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">InplaceInput with customized controls</legend>
+ <div class="sample-container">
+ <br/>
+ <ui:include src="/richfaces/inplaceInput/examples/controlsCustomization.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/controlsCustomization.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
<p>
Inplace Input could be rendered with <i>span </i>or <i>div </i>elements to display its value.
To change default span output, use <b>layout </b>attribute with <i>block </i>value.
@@ -66,14 +78,17 @@
<p>
<b>Perform double click at any price in order to change it.</b>
</p>
-
- <div class="sample-container" >
- <ui:include src="/richfaces/inplaceInput/examples/blockInplace.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/blockInplace.xhtml"/>
- </ui:include>
- </div>
-
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">InplaceInput as table cell editor</legend>
+ <div class="sample-container">
+ <br/>
+ <ui:include src="/richfaces/inplaceInput/examples/blockInplace.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/blockInplace.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceSelect/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceSelect/usage.xhtml 2008-03-27 12:40:05 UTC (rev 7298)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceSelect/usage.xhtml 2008-03-27 13:30:19 UTC (rev 7299)
@@ -18,12 +18,15 @@
You could try the simplest example below. Just click on a label
to edit the value and click somewhere outside the component to store this value(Or just press ENTER button).
</p>
- <div class="sample-container" >
- <ui:include src="/richfaces/inplaceSelect/examples/simple.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/inplaceSelect/examples/simple.xhtml"/>
- </ui:include>
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Example</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/inplaceSelect/examples/simple.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/inplaceSelect/examples/simple.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
<p>
In this example <i>f:selectItems</i> tag is used to define a list of items to use.
Additionally the next useful attributes are used:
@@ -39,22 +42,28 @@
<li> Classes customization is used</li>
</ul>
<p><b>Double click to edit value</b> <i>(editEvent set as ondblclick)</i>.</p>
- <div class="sample-container" >
- <ui:include src="/richfaces/inplaceSelect/examples/selectItems.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/inplaceSelect/examples/selectItems.xhtml"/>
- </ui:include>
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Example</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/inplaceSelect/examples/selectItems.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/inplaceSelect/examples/selectItems.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
<p>
And the last example shows how to save the simplest value via Ajax request and
how customize controls using <b>controls</b> facet.
- </p>
- <div class="sample-container" >
- <ui:include src="/richfaces/inplaceSelect/examples/controlsCustomization.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/inplaceSelect/examples/controlsCustomization.xhtml"/>
- </ui:include>
- </div>
+ </p>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Example</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/inplaceSelect/examples/controlsCustomization.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/inplaceSelect/examples/controlsCustomization.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/usage.xhtml 2008-03-27 12:40:05 UTC (rev 7298)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/usage.xhtml 2008-03-27 13:30:19 UTC (rev 7299)
@@ -21,12 +21,15 @@
is inserted into the input field if a particular row is selected
or clicked from the suggested list.</p>
- <div class="sample-container">
- <ui:include src="/richfaces/suggestionBox/examples/custom.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/suggestionBox/examples/custom.xhtml"/>
- </ui:include>
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">SuggestionBox example</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/suggestionBox/examples/custom.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/suggestionBox/examples/custom.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
</ui:define>
16 years, 9 months