JBoss Rich Faces SVN: r7298 - in trunk: ui/suggestionbox/src/main/java/org/richfaces/renderkit/html and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-03-27 08:40:05 -0400 (Thu, 27 Mar 2008)
New Revision: 7298
Modified:
trunk/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/css/suggestionbox.xcss
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-2340
Modified: trunk/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2008-03-27 12:35:45 UTC (rev 7297)
+++ trunk/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2008-03-27 12:40:05 UTC (rev 7298)
@@ -39,7 +39,6 @@
<f:verbatim> </f:verbatim>
-
<h:panelGroup>
<h:inputText value="#{suggestionBox.property}" id="text"/>
<rich:suggestionbox id="suggestionBoxId" for="text"
Modified: trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
--- trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2008-03-27 12:35:45 UTC (rev 7297)
+++ trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2008-03-27 12:40:05 UTC (rev 7298)
@@ -266,10 +266,10 @@
// suggestionBox.setPopup(popupFacet.getClientId(context));
renderChild(context, popupFacet);
}
+ writer.endElement(HTML.DIV_ELEM);
writer.startElement(HTML.SCRIPT_ELEM, component);
writer.writeText(getScript(context, component), "script");
writer.endElement(HTML.SCRIPT_ELEM);
- writer.endElement(HTML.DIV_ELEM);
writer.startElement("iframe", component);
writer.writeAttribute("src",
getResource("/org/richfaces/renderkit/html/images/spacer.gif")
Modified: trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/css/suggestionbox.xcss
===================================================================
--- trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/css/suggestionbox.xcss 2008-03-27 12:35:45 UTC (rev 7297)
+++ trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/css/suggestionbox.xcss 2008-03-27 12:40:05 UTC (rev 7298)
@@ -31,8 +31,7 @@
}
.dr-sb-overflow {
- overflow-y : auto;
- overflow-x : auto;
+ overflow : auto;
}
.dr-sb-int-decor-table {
Modified: trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
--- trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-03-27 12:35:45 UTC (rev 7297)
+++ trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-03-27 12:40:05 UTC (rev 7298)
@@ -128,8 +128,7 @@
this.onScrollListener = this.onScroll.bindAsEventListener(this);
if (options.popupClass)
- Element.addClassName(document.getElementsByClassName("dr-sb-ext-decor-3",
- this.update)[0], options.popupClass);
+ Element.addClassName(this.update.select(".dr-sb-ext-decor-3")[0], options.popupClass);
this.onNothingLabelClick = this.hideNLabel.bindAsEventListener(this);
},
@@ -194,7 +193,7 @@
this.wasScroll = false;
this.wasBlur = false;
if (!this.overflow)
- this.overflow = document.getElementsByClassName("dr-sb-overflow", this.update)[0];
+ this.overflow = this.update.select(".dr-sb-overflow")[0];
Event.observe(this.overflow, "scroll", this.onScrollListener);
}
if (Element.getStyle(this.update, 'display')
@@ -340,7 +339,6 @@
|| event.keyCode == Event.KEY_ESC) {
return;
}
-
this.changed = true;
this.hasFocus = true;
@@ -453,7 +451,7 @@
while (item && (item != scroll)) {
// Avoid bug in Safari. Details: http://jacob.peargrove.com/blog/2006/technical/table-row-offsettop-bug-in...
if (RichFaces.SAFARI == RichFaces.navigatorType() && "TR" == item.tagName.toUpperCase()) {
- realOffset += document.getElementsByClassName("dr-sb-cell-padding", item)[0].offsetTop;
+ realOffset += item.select(".dr-sb-cell-padding")[0].offsetTop;
}
else
realOffset += item.offsetTop;
@@ -463,7 +461,7 @@
var entryOffsetHeight;
if (RichFaces.SAFARI == RichFaces.navigatorType()) {
- var tdElement = document.getElementsByClassName("dr-sb-cell-padding", item)[0];
+ var tdElement = item.select(".dr-sb-cell-padding")[0];
entryOffsetHeight = tdElement.offsetTop + tdElement.offsetHeight;
} else
entryOffsetHeight = entry.offsetHeight;
@@ -472,7 +470,7 @@
countVisibleEntries: function() {
var entry = this.getEntry(this.index);
- var scroll = document.getElementsByClassName("_suggestion_size_", this.update)[0]
+ var scroll = this.update.select("._suggestion_size_")[0]
|| this.update;
var entryPosition = this.calcEntryPosition(entry,scroll);
@@ -491,14 +489,14 @@
for (var i = 0; i < this.options.selectedClasses.length; i++)
Element.addClassName(entry, this.options.selectedClasses[i]);
- var cells = document.getElementsByClassName("dr-sb-cell-padding" , entry);
+ var cells = entry.select(".dr-sb-cell-padding");
for (var i = 0; i < cells.length; i++) {
Element.addClassName(cells[i], this.options.selectValueClass);
}
// Calc scroll position :
if (this.keyEvent) {
- var scroll = document.getElementsByClassName("_suggestion_size_", this.update)[0]
+ var scroll = this.update.select("._suggestion_size_")[0]
|| this.update;
var entryPosition = this.calcEntryPosition(entry,scroll);
@@ -518,7 +516,7 @@
if (this.prevIndex >= 0) {
var prevEntry = this.getEntry(this.prevIndex);
if (prevEntry) {
- var prevCells = document.getElementsByClassName("dr-sb-cell-padding" , prevEntry);
+ var prevCells = prevEntry.select(".dr-sb-cell-padding");
for (var i = 0; i < prevCells.length; i++) {
Element.removeClassName(prevCells[i], this.options.selectValueClass);
}
@@ -571,11 +569,15 @@
},
getEntry: function(index) {
- if (this.options.entryClass) {
- return document.getElementsByClassName(this.options.entryClass, this.update)[index];
+ /*if (this.options.entryClass) {
+ return this.update.select("."+this.options.entryClass)[index];
} else {
- return this.update.firstChild.firstChild.childNodes[index];
- }
+ return $(this.update.firstChild.firstChild.childNodes[index]);
+ }*/
+ // optimization
+ var element = $(this.contentTable).firstChild;
+ while (!element.tagName || element.tagName.toLowerCase()!="tbody") element = element.nextSibling;
+ return $(element.childNodes[index]);
},
getCurrentEntry: function() {
@@ -605,13 +607,9 @@
return;
}
var value = '';
- if (this.options.select) {
- var nodes = document.getElementsByClassName(this.options.select, selectedElement)
- || [];
- if (nodes.length > 0) value
- = Element.collectTextNodes(nodes[0], this.options.select);
- } else
- value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal');
+ var obj = selectedElement.firstChild;
+ while (!obj.tagName || obj.tagName.toLowerCase()!="td") obj = obj.nextSibling;
+ value = Element.collectTextNodes(obj);
this.insertValue(value, event);
this.oldValue = this.element.value;
@@ -629,7 +627,7 @@
// TODO - get entry elements by tag name or class
var entryes = [];
if (this.options.entryClass) {
- entryes = document.getElementsByClassName(this.options.entryClass, this.update)
+ entryes = this.update.select("."+this.options.entryClass)
|| [];
} else if (this.update.firstChild
&& this.update.firstChild.firstChild
@@ -650,7 +648,7 @@
}
this.stopIndicator();
- var scroll = document.getElementsByClassName("_suggestion_size_", this.update)[0]
+ var scroll = this.update.select("_suggestion_size_")[0]
|| this.update;
scroll.scrollTop = -1;
scroll.scrollLeft = -1;
@@ -852,6 +850,7 @@
this.options.oncomplete = this.onComplete.bind(this);
this.options.defaultParams = this.options.parameters || null;
this.content = content;
+ this.contentTable = content+":suggest";
this.containerId = containerId;
this.actionUrl = actionUrl;
16 years, 9 months
JBoss Rich Faces SVN: r7297 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: orderingList and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-03-27 08:35:45 -0400 (Thu, 27 Mar 2008)
New Revision: 7297
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/listShuttle.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/orderingList.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml
Log:
Demo site: Rich Selects demos layout correction
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/listShuttle.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/listShuttle.xhtml 2008-03-27 12:18:18 UTC (rev 7296)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/listShuttle.xhtml 2008-03-27 12:35:45 UTC (rev 7297)
@@ -14,20 +14,23 @@
List Shuttle could contain several columns in list representation. And it
also has strong keyboard support out of the box.
</p>
- <p><b>Example. </b>Customize simple application toolbar using List Shuttle.
- In this example you may select items and their order within the toolBar.
- <br/>
- After you move some items between lists or reorder them in "Currently Active" list - you'll
- see the changes on the toolbar
- </p>
- <div class="sample-container">
- <ui:include src="/richfaces/listShuttle/examples/toolBarCustomization.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/listShuttle/examples/toolBarCustomization.xhtml"/>
- </ui:include>
- </div>
-
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">ListShuttle example</legend>
+ <div class="sample-container">
+ <p>Customize simple application toolbar using List Shuttle.
+ In this example you may select items and their order within the toolBar.
+ <br/>
+ After you move some items between lists or reorder them in "Currently Active" list - you'll
+ see the changes on the toolbar
+ </p>
+ <br/><br/>
+ <ui:include src="/richfaces/listShuttle/examples/toolBarCustomization.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/listShuttle/examples/toolBarCustomization.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
<p>
Content definition for this component - analogous to any Iteration component.
So, all you need is define collection in List Shuttle <b>sourceValue</b> attribute
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/orderingList.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/orderingList.xhtml 2008-03-27 12:18:18 UTC (rev 7296)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/orderingList/orderingList.xhtml 2008-03-27 12:35:45 UTC (rev 7297)
@@ -13,15 +13,20 @@
<p>
Ordering List could contain several columns in list representation. And it
also has strong keyboard support out of the box.
- </p>
- <p><b>Example. </b>Manage simple playlist represented via Ordering List:</p>
- <div class="sample-container">
- <ui:include src="/richfaces/orderingList/example/playlist.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/orderingList/example/playlist.xhtml"/>
- </ui:include>
-
- </div>
+ </p>
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">OrderingList example</legend>
+ <div class="sample-container">
+ <p>Manage simple playlist represented via Ordering List:</p>
+ <br/>
+ <ui:include src="/richfaces/orderingList/example/playlist.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/orderingList/example/playlist.xhtml"/>
+ </ui:include>
+ <br/>
+ </div>
+ </fieldset>
<p>
In this example you may select some songs (using the mouse and Ctrl/Shift keys) and move them
within the list using controls.
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml 2008-03-27 12:18:18 UTC (rev 7296)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/pickList/usage.xhtml 2008-03-27 12:35:45 UTC (rev 7297)
@@ -16,14 +16,16 @@
<p>
The next example shows the simplest declarative definition on the page.
</p>
- <div class="sample-container" >
-
- <ui:include src="/richfaces/pickList/examples/simple.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/pickList/examples/simple.xhtml"/>
- </ui:include>
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Example</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/pickList/examples/simple.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/pickList/examples/simple.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
<p>
Pick List is a simplified variant of ListShuttle component. It does not uses custom model.
Instead it uses f:selectItem(s) tags for elements definition, so converters creation
@@ -43,15 +45,16 @@
Just move some elements with state names to the result list and corresponding
state capitals will appear in the result panel.
</p>
- <div class="sample-container" >
-
- <ui:include src="/richfaces/pickList/examples/items.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/pickList/examples/items.xhtml"/>
- </ui:include>
- </div>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Example</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/pickList/examples/items.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/pickList/examples/items.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
</ui:define>
-
</ui:composition>
</html>
16 years, 9 months
JBoss Rich Faces SVN: r7296 - trunk/ui/inplaceSelect/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-27 08:18:18 -0400 (Thu, 27 Mar 2008)
New Revision: 7296
Modified:
trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
http://jira.jboss.com/jira/browse/RF-2785
Modified: trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-03-27 12:10:57 UTC (rev 7295)
+++ trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-03-27 12:18:18 UTC (rev 7296)
@@ -72,11 +72,11 @@
<jsp:scriptlet>
if (layout.equals("inline")) {
</jsp:scriptlet>
- <span id="#{clientId}" class="rich-inplace-select-view" x:passThruWithExclusions="id,styleClass,class,style">
+ <span id="#{clientId}" class="rich-inplace-select rich-inplace-select-view" x:passThruWithExclusions="id,styleClass,class,style">
<jsp:scriptlet>
} else {
</jsp:scriptlet>
- <div id="#{clientId}" class="rich-inplace-select-view #{component.attributes['viewClass']}" x:passThruWithExclusions="id,styleClass,class,style">
+ <div id="#{clientId}" class="rich-inplace-select rich-inplace-select-view #{component.attributes['viewClass']}" x:passThruWithExclusions="id,styleClass,class,style">
<jsp:scriptlet>
}
</jsp:scriptlet>
16 years, 9 months
JBoss Rich Faces SVN: r7295 - in trunk/ui/fileUpload/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-03-27 08:10:57 -0400 (Thu, 27 Mar 2008)
New Revision: 7295
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
Log:
RF-2754
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-03-27 12:07:28 UTC (rev 7294)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-03-27 12:10:57 UTC (rev 7295)
@@ -28,7 +28,6 @@
.rich_file_upload_ico{background-position : 0px 50%; background-repeat : no-repeat; padding-left : 19px;vertical-align: middle;}
input.rich_file_hidden {
- Z-INDEX: 2;
FILTER: alpha(opacity: 0);
POSITION: relative;
TEXT-ALIGN: left;
Modified: trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
===================================================================
--- trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-03-27 12:07:28 UTC (rev 7294)
+++ trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-03-27 12:10:57 UTC (rev 7295)
@@ -77,8 +77,8 @@
<div class="#{addButtonClassContent}"
id="#{clientId}:add2"
style="position: relative;">#{addLabel}</div>
- <div style="overflow : hidden; position : absolute; top : 0px; left : 0px; ">
- <input type="file" style="cursor: pointer; right: 0px; top: 0px; font-size: 10em; position: absolute"
+ <div style="overflow : hidden; position : absolute; top : 0px; left : 0px; padding: 0px;">
+ <input type="file" style="cursor: pointer; right: 0px; top: 0px; font-size: 10em; position: absolute; padding: 0px"
class="rich_file_hidden"
id="#{clientId}:file"
name="#{clientId}:file"
16 years, 9 months
JBoss Rich Faces SVN: r7294 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: paint2D and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
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>
16 years, 9 months
JBoss Rich Faces SVN: r7293 - trunk/ui/inplaceSelect/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-27 08:06:28 -0400 (Thu, 27 Mar 2008)
New Revision: 7293
Modified:
trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
Log:
http://jira.jboss.com/jira/browse/RF-2781
Modified: trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-03-27 11:43:40 UTC (rev 7292)
+++ trunk/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-03-27 12:06:28 UTC (rev 7293)
@@ -156,7 +156,7 @@
<name>openOnEdit</name>
<classname>boolean</classname>
<description></description>
- <defaultvalue>false</defaultvalue>
+ <defaultvalue>true</defaultvalue>
</property>
<property>
<name>viewClass</name>
16 years, 9 months
JBoss Rich Faces SVN: r7292 - trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/html/images.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-03-27 07:43:40 -0400 (Thu, 27 Mar 2008)
New Revision: 7292
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/html/images/UploadButtonBgLightGradient.java
Log:
RF-2741
Modified: trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/html/images/UploadButtonBgLightGradient.java
===================================================================
--- trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/html/images/UploadButtonBgLightGradient.java 2008-03-27 11:32:51 UTC (rev 7291)
+++ trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/html/images/UploadButtonBgLightGradient.java 2008-03-27 11:43:40 UTC (rev 7292)
@@ -25,6 +25,6 @@
public class UploadButtonBgLightGradient extends BaseGradient {
public UploadButtonBgLightGradient() {
- super(8, 18, 18, "additionalBackgroundColor", "headerGradientColor");
+ super(8, 19, 19, "additionalBackgroundColor", "headerGradientColor");
}
}
\ No newline at end of file
16 years, 9 months
JBoss Rich Faces SVN: r7291 - in trunk/samples/richfaces-demo/src/main/webapp: templates/include and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-27 07:32:51 -0400 (Thu, 27 Mar 2008)
New Revision: 7291
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/panel/examples/lookCustom.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-group.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-2709
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/panel/examples/lookCustom.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/panel/examples/lookCustom.xhtml 2008-03-27 11:17:49 UTC (rev 7290)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/panel/examples/lookCustom.xhtml 2008-03-27 11:32:51 UTC (rev 7291)
@@ -84,11 +84,11 @@
This is a panel without the header
</rich:panel>
- <rich:panel style="position: absolute; top: 400px; right: 100px; " styleClass="top">
+ <rich:panel style="position: fixed; top: 500px; right: 500px; " styleClass="top">
<f:facet name="header">
Panel header
</f:facet>
- This is a panel with absolute position on the screen.<br/>
+ This is a panel with fixed position on the screen.<br/>
Resize the browser's window to see the result.
</rich:panel>
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-group.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-group.xhtml 2008-03-27 11:17:49 UTC (rev 7290)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-group.xhtml 2008-03-27 11:32:51 UTC (rev 7291)
@@ -12,14 +12,14 @@
<td class="ico"><h:graphicImage value="#{component.iconImage}" width="16" height="16" alt="" border="0" /></td>
<td class="text" width="100%">
<h:outputLink style="display:block;height:20px" value="#{component.contextRelativeDemoLocation}">
- <span style="display:block;padding-top:3px">
+ <span style="display:block;padding-top:3px;text-decoration : none; color : #000000;">
#{component.name}
</span>
<f:param value="#{component.id}" name="c"/>
</h:outputLink>
- </td>
+ </td>
</tr>
- </a4j:repeat>
+ </a4j:repeat>
</tbody>
</table>
</ui:composition>
16 years, 9 months
JBoss Rich Faces SVN: r7289 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-27 06:47:10 -0400 (Thu, 27 Mar 2008)
New Revision: 7289
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml
Log:
description statement changed.
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 08:56:48 UTC (rev 7288)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml 2008-03-27 10:47:10 UTC (rev 7289)
@@ -61,8 +61,11 @@
</p>
<p>
<b>Note:</b> Inplaces in this example also customized with <b>editEvent </b>
- attribute. Perform <b>double click</b> at any price in order to change it.
- </p>
+ attribute.
+ </p>
+ <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"/>
16 years, 9 months