JBoss Rich Faces SVN: r7138 - trunk/samples/seamEAR/wars/seamWebapp.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-24 13:40:45 -0400 (Mon, 24 Mar 2008)
New Revision: 7138
Modified:
trunk/samples/seamEAR/wars/seamWebapp/pom.xml
Log:
JSF version switched to 1.2_07
Modified: trunk/samples/seamEAR/wars/seamWebapp/pom.xml
===================================================================
--- trunk/samples/seamEAR/wars/seamWebapp/pom.xml 2008-03-24 17:39:30 UTC (rev 7137)
+++ trunk/samples/seamEAR/wars/seamWebapp/pom.xml 2008-03-24 17:40:45 UTC (rev 7138)
@@ -58,13 +58,13 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
<scope>provided</scope>
</dependency>
<dependency>
18 years, 1 month
JBoss Rich Faces SVN: r7137 - trunk/samples.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-24 13:39:30 -0400 (Mon, 24 Mar 2008)
New Revision: 7137
Modified:
trunk/samples/pom.xml
Log:
JSF version switched to 1.2_07
Modified: trunk/samples/pom.xml
===================================================================
--- trunk/samples/pom.xml 2008-03-24 17:38:56 UTC (rev 7136)
+++ trunk/samples/pom.xml 2008-03-24 17:39:30 UTC (rev 7137)
@@ -189,12 +189,12 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
<scope>runtime</scope>
</dependency>
</dependencies>
@@ -244,12 +244,12 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
<scope>runtime</scope>
</dependency>
</dependencies>
@@ -289,12 +289,12 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
<scope>runtime</scope>
</dependency>
<dependency>
@@ -343,13 +343,13 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_08</version>
+ <version>1.2_07</version>
<scope>provided</scope>
</dependency>
</dependencies>
18 years, 1 month
JBoss Rich Faces SVN: r7135 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-03-24 13:38:11 -0400 (Mon, 24 Mar 2008)
New Revision: 7135
Modified:
trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
Log:
http://jira.jboss.com/jira/browse/RF-1216 - Some classes, event attribute 'onselect' were added
Modified: trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-03-24 17:37:33 UTC (rev 7134)
+++ trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-03-24 17:38:11 UTC (rev 7135)
@@ -33,10 +33,10 @@
<entry>renderer-type</entry>
<entry>org.richfaces.renderkit.ComboBoxRenderer</entry>
</row>
- <!--row>
+ <row>
<entry>tag-class</entry>
- <entry></entry>
- </row-->
+ <entry>org.richfaces.taglib.ComboBoxTag</entry>
+ </row>
</tbody>
</tgroup>
</table>
@@ -91,7 +91,7 @@
<itemizedlist>
<listitem>
Using the <emphasis role="bold"><property><f:selectItem /></property></emphasis> or <emphasis role="bold">
- <property><f:selectItems /></property></emphasis> components
+ <property><f:selectItems /></property></emphasis> facets
</listitem>
</itemizedlist>
<para>
@@ -189,7 +189,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<rich:comboBox value="#{bean.state}" suggestionValues="#{bean.suggestions}" disabled="true" />
+<rich:comboBox value="#{bean.state}" suggestionValues="#{bean.suggestions}" defaultLabel="Select a city..." disabled="true" />
...]]></programlisting>
<para>This is a result:</para>
<figure>
@@ -203,12 +203,25 @@
</mediaobject>
</figure>
- <para>
+ <!--para>
The <emphasis role="bold"><property><rich:comboBox></property></emphasis> component provides the possibility to use
specific event attribute <emphasis><property> "onlistcall"</property></emphasis> which is fired before the list opening.
- </para>
+ </para-->
<para>
+ The <emphasis role="bold"><property><rich:comboBox></property></emphasis> component provides to use
+ specific event attributes:
+ <itemizedlist>
+ <listitem>
+ <emphasis><property> "onlistcall"</property></emphasis>which is fired before the list opening and gives you a possibility to cancel list popup/update
+ </listitem>
+ <listitem>
+ <emphasis><property> "onselect"</property></emphasis>which gives you a possibility to send AJAX request when item is selected
+ </listitem>
+ </itemizedlist>
+ </para>
+
+ <para>
The <emphasis role="bold"><property><rich:comboBox></property></emphasis> component allows to use sizes attributes:
<itemizedlist>
<listitem>
@@ -221,18 +234,7 @@
</itemizedlist>
</para>
- <!--para>
- The <emphasis role="bold"><property><rich:comboBox></property></emphasis> component provides to use
- specific event attributes:
- <itemizedlist>
- <listitem>
- <emphasis><property> "onlistcall"</property></emphasis> is fired before the list opening
- </listitem>
- <listitem>
- <emphasis><property> "onchange"</property></emphasis> is fired both with onselected and after the input value changed
- </listitem>
- </itemizedlist>
- </para-->
+
@@ -646,16 +648,29 @@
</row>
</thead>
<tbody>
-
+
<row>
+ <entry>rich-combobox-shell</entry>
+ <entry>Defines styles for a wrapper <div> element of a list</entry>
+ </row>
+ <row>
+ <entry>rich-combobox-list-position</entry>
+ <entry>Defines position of a list</entry>
+ </row>
+ <row>
<entry>rich-combobox-list-decoration</entry>
<entry>Defines styles for a list</entry>
</row>
+ <row>
+ <entry>rich-combobox-list-scroll</entry>
+ <entry>Defines styles for a list scrolling</entry>
+ </row>
</tbody>
</tgroup>
</table>
+
<table>
- <title>Classes names that define button representation</title>
+ <title>Classes names that define font representation</title>
<tgroup cols="2">
<thead>
<row>
@@ -665,44 +680,51 @@
</thead>
<tbody>
<row>
- <entry>rich-combobox-button</entry>
- <entry>Defines styles for a button</entry>
+ <entry>rich-combobox-font</entry>
+ <entry>Defines styles for a font</entry>
</row>
<row>
- <entry>rich-combobox-button-inactive</entry>
- <entry>Defines styles for an inactive button</entry>
+ <entry>rich-combobox-font-inactive</entry>
+ <entry>Defines styles for an inactive font</entry>
</row>
<row>
- <entry>rich-combobox-button-disabled</entry>
- <entry>Defines styles for a button in disabled state</entry>
+ <entry>rich-combobox-font-disabled</entry>
+ <entry>Defines styles for a disabled font</entry>
</row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Classes names that define input field representation</title>
+ <tgroup cols="2">
+ <thead>
<row>
- <entry>rich-combobox-button-hovered</entry>
- <entry>Defines styles for a hovered button</entry>
+ <entry>Class name</entry>
+ <entry>Description</entry>
</row>
+ </thead>
+ <tbody>
+
<row>
- <entry>rich-combobox-button-background</entry>
- <entry>Defines styles for a button background</entry>
+ <entry>rich-combobox-input</entry>
+ <entry>Defines styles for an input field</entry>
</row>
<row>
- <entry>rich-combobox-button-background-disabled</entry>
- <entry>Defines styles for a disabled button background</entry>
+ <entry>rich-combobox-input-disabled</entry>
+ <entry>Defines styles for an input field in disabled state</entry>
</row>
<row>
- <entry>rich-combobox-button-background-inactive</entry>
- <entry>Defines styles for an inactive button background</entry>
+ <entry>rich-combobox-input-inactive</entry>
+ <entry>Defines styles for an inactive input field</entry>
</row>
- <row>
- <entry>rich-combobox-button-pressed-background</entry>
- <entry>Defines styles for a pressed button background</entry>
- </row>
-
+
</tbody>
</tgroup>
</table>
-
+
<table>
- <title>Classes names that define font representation</title>
+ <title>Classes names that define item representation</title>
<tgroup cols="2">
<thead>
<row>
@@ -712,22 +734,19 @@
</thead>
<tbody>
<row>
- <entry>rich-combobox-font</entry>
- <entry>Defines styles for a font</entry>
+ <entry>rich-combobox-item</entry>
+ <entry>Defines styles for an item</entry>
</row>
<row>
- <entry>rich-combobox-font-inactive</entry>
- <entry>Defines styles for an inactive font</entry>
+ <entry>rich-combobox-item-selected</entry>
+ <entry>Defines styles for a selected item</entry>
</row>
- <row>
- <entry>rich-combobox-font-disabled</entry>
- <entry>Defines styles for a disabled font</entry>
- </row>
- </tbody>
+ </tbody>
</tgroup>
</table>
+
<table>
- <title>Classes names that define input field representation</title>
+ <title>Classes names that define button representation</title>
<tgroup cols="2">
<thead>
<row>
@@ -736,25 +755,52 @@
</row>
</thead>
<tbody>
-
<row>
- <entry>rich-combobox-input</entry>
- <entry>Defines styles for an input text</entry>
+ <entry>rich-combobox-button</entry>
+ <entry>Defines styles for a button</entry>
</row>
<row>
- <entry>rich-combobox-input-disabled</entry>
- <entry>Defines styles for an input text in disabled state</entry>
+ <entry>rich-combobox-button-inactive</entry>
+ <entry>Defines styles for an inactive button</entry>
</row>
<row>
- <entry>rich-combobox-input-inactive</entry>
- <entry>Defines styles for an inactive input text</entry>
+ <entry>rich-combobox-button-disabled</entry>
+ <entry>Defines styles for a button in disabled state</entry>
</row>
-
+ <row>
+ <entry>rich-combobox-button-hovered</entry>
+ <entry>Defines styles for a hovered button</entry>
+ </row>
+ <row>
+ <entry>rich-combobox-button-background</entry>
+ <entry>Defines styles for a button background</entry>
+ </row>
+ <row>
+ <entry>rich-combobox-button-background-disabled</entry>
+ <entry>Defines styles for a disabled button background</entry>
+ </row>
+ <row>
+ <entry>rich-combobox-button-background-inactive</entry>
+ <entry>Defines styles for an inactive button background</entry>
+ </row>
+ <row>
+ <entry>rich-combobox-button-pressed-background</entry>
+ <entry>Defines styles for a pressed button background</entry>
+ </row>
+ <row>
+ <entry>rich-combobox-button-icon</entry>
+ <entry>Defines styles for a button icon</entry>
+ </row>
+ <row>
+ <entry>rich-combobox-button-icon-inactive</entry>
+ <entry>Defines styles for an inactive button icon</entry>
+ </row>
</tbody>
</tgroup>
</table>
+
<table>
- <title>Classes names that define item representation</title>
+ <title>Classes names that define shadow representation</title>
<tgroup cols="2">
<thead>
<row>
@@ -764,14 +810,26 @@
</thead>
<tbody>
<row>
- <entry>rich-combobox-item</entry>
- <entry>Defines styles for an item</entry>
+ <entry>rich-combobox-shadow</entry>
+ <entry>Defines styles for a wrapper <div> element of a shadow</entry>
</row>
<row>
- <entry>rich-combobox-item-selected</entry>
- <entry>Defines styles for a selected item</entry>
+ <entry>rich-combobox-shadow-tl</entry>
+ <entry>Defines styles for a top-left element of a shadow</entry>
</row>
- </tbody>
+ <row>
+ <entry>rich-combobox-shadow-tr</entry>
+ <entry>Defines styles for a top-right element of a shadow</entry>
+ </row>
+ <row>
+ <entry>rich-combobox-shadow-bl</entry>
+ <entry>Defines styles for a bottom-left element of a shadow</entry>
+ </row>
+ <row>
+ <entry>rich-combobox-shadow-br</entry>
+ <entry>Defines styles for a bottom-right element of a shadow</entry>
+ </row>
+ </tbody>
</tgroup>
</table>
18 years, 1 month
JBoss Rich Faces SVN: r7134 - in trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html: scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-24 13:37:33 -0400 (Mon, 24 Mar 2008)
New Revision: 7134
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
Log:
resolve default component skinning conflicts, iframe positioning fix
Modified: trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
--- trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-03-24 17:36:29 UTC (rev 7133)
+++ trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-03-24 17:37:33 UTC (rev 7134)
@@ -12,7 +12,7 @@
input.rich-combobox-button-pressed-background {
}
-.rich-combobox-input {
+input.rich-combobox-input {
width : 240px;
position : absolute;
top : 0px;
@@ -27,7 +27,7 @@
background-repeat:repeat-x;
}
-.rich-combobox-input-disabled {
+input.rich-combobox-input-disabled {
width : 240px;
position : absolute;
top : 0px;
@@ -42,7 +42,7 @@
background-repeat:repeat-x;
}
-.rich-combobox-input-inactive {
+input.rich-combobox-input-inactive {
width : 240px;
position : absolute;
top : 0px;
@@ -57,10 +57,10 @@
background-repeat:repeat-x;
}
-.rich-combobox-font-disabled {
+input.rich-combobox-font-disabled {
color: #AAAAAA;
+}
-}
.rich-combobox-list-position {
position : absolute;
top:1px;
@@ -307,23 +307,41 @@
<u:style name="border-left-color" skin="panelBorderColor"/>
</u:selector>
+ <u:selector name="input.rich-combobox-font">
+ <u:style name="font-size" skin="generalSizeFont"/>
+ <u:style name="font-family" skin="generalFamilyFont"/>
+ <u:style name="color" skin="generalTextColor"/>
+ </u:selector>
+
<u:selector name=".rich-combobox-font">
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
<u:style name="color" skin="generalTextColor"/>
</u:selector>
+ <u:selector name="input.rich-combobox-font-disabled">
+ <u:style name="font-family" skin="headerFamilyFont"/>
+ <u:style name="font-size" skin="headerSizeFont"/>
+ </u:selector>
+
<u:selector name=".rich-combobox-font-disabled">
<u:style name="font-family" skin="headerFamilyFont"/>
<u:style name="font-size" skin="headerSizeFont"/>
</u:selector>
+ <u:selector name="input.rich-combobox-font-inactive">
+ <u:style name="font-size" skin="generalSizeFont"/>
+ <u:style name="font-family" skin="generalFamilyFont"/>
+ <u:style name="color" skin="generalTextColor"/>
+ </u:selector>
+
<u:selector name=".rich-combobox-font-inactive">
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
<u:style name="color" skin="generalTextColor"/>
</u:selector>
+
<u:selector name=".rich-combobox-input">
<u:style name="background-color" skin="controlBackgroundColor"/>
<u:style name="border-bottom-color" skin="panelBorderColor"/>
Modified: trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
===================================================================
--- trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2008-03-24 17:36:29 UTC (rev 7133)
+++ trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2008-03-24 17:37:33 UTC (rev 7134)
@@ -235,12 +235,15 @@
//var top = 0 ;//= -4;
var top = fieldHeight;
+ var topIframe = comBottom;
+
if (parseInt(listHeight) > (docHeight - comBottom)) {
if (fieldTop > (docHeight - comBottom)) {
top = 0 - parseInt(listHeight);
+ topIframe = top;
//var upPos = true;
}
- }
+ }
this.listParent.style.top = top + "px";
this.listParent.style.left = 0 + "px";
@@ -249,7 +252,7 @@
top = Richfaces.ComboBoxList.getElemXY(this.listParent).top + this.fieldDimensions.height;
}*/
if (this.iframe) {
- this.iframe.style.top = top + "px";
+ this.iframe.style.top = topIframe + "px";
this.iframe.style.left = 0 + "px";
}
},
@@ -401,7 +404,7 @@
// iframe.style.backgroundColor="#FFFFFF";
iframe.style.width = width;
- iframe.style.zIndex = "2";
+// iframe.style.zIndex = "2";
iframe.className = classes;
18 years, 1 month
JBoss Rich Faces SVN: r7133 - trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-24 13:36:29 -0400 (Mon, 24 Mar 2008)
New Revision: 7133
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
Log:
resolve default component skinning conflicts
Modified: trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
===================================================================
--- trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-03-24 17:35:50 UTC (rev 7132)
+++ trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-03-24 17:36:29 UTC (rev 7133)
@@ -32,7 +32,7 @@
/*position:relative;*/
}
- .rich-inplace-field {
+ input.rich-inplace-field {
border-width: 1px;
border-style: inset;
margin:0px;
@@ -168,9 +168,12 @@
<u:style name="border-bottom-color" skin="generalTextColor"/>
</u:selector>
- <u:selector name=".rich-inplace-field">
+ <u:selector name="input.rich-inplace-field">
<u:style name="background-color" skin="editBackgroundColor"/>
<u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="background-image">
+ <f:resource f:key="/org/richfaces/renderkit/html/images/spacer.gif"/>
+ </u:style>
</u:selector>
18 years, 1 month
JBoss Rich Faces SVN: r7132 - in trunk/ui/inplaceSelect/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-24 13:35:50 -0400 (Mon, 24 Mar 2008)
New Revision: 7132
Modified:
trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
encode label/value arrays
Modified: trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
===================================================================
--- trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-03-24 17:34:56 UTC (rev 7131)
+++ trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-03-24 17:35:50 UTC (rev 7132)
@@ -89,10 +89,13 @@
}
setValuesList(labels);
StringBuffer attributes = new StringBuffer();
+ writer.startElement("script", component);
+ getUtils().writeAttribute(writer, "type", "text/javascript" );
attributes.append("var options = ");
attributes.append(jsonParentArray.toString());
attributes.append(";");
writer.write(attributes.toString());
+ writer.endElement("script");
}
public void encodeControlsFacet(FacesContext context, UIComponent component) throws IOException {
Modified: trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-03-24 17:34:56 UTC (rev 7131)
+++ trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-03-24 17:35:50 UTC (rev 7132)
@@ -195,7 +195,7 @@
onviewactivated : #{this:getAsEventHandler(context, component, "onviewactivated")}};
var richInplaceList = new Richfaces.InplaceSelectList('list#{clientId}', 'listParent#{clientId}', true,
- Richfaces.InplaceSelect.CLASSES.COMBO_LIST, '#{component.attributes["listWidth"]}', '#{component.attributes["listHeight"]}', #{this:getItemsTextAsJSArray(context, component)}, null,
+ Richfaces.InplaceSelect.CLASSES.COMBO_LIST, '#{component.attributes["listWidth"]}', '#{component.attributes["listHeight"]}', options, null,
'#{clientId}inplaceTmpValue', 'shadow#{clientId}', 0, 0);
var richInplaceSelect = new Richfaces.InplaceSelect(richInplaceList, '#{clientId}', '#{clientId}inplaceTmpValue',
'#{clientId}inplaceValue', '#{clientId}tabber',
18 years, 1 month
JBoss Rich Faces SVN: r7131 - trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-24 13:34:56 -0400 (Mon, 24 Mar 2008)
New Revision: 7131
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
Log:
resolve conflict with default component skinning
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-24 17:22:48 UTC (rev 7130)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-03-24 17:34:56 UTC (rev 7131)
@@ -57,7 +57,6 @@
position:absolute;
top:0px;
left:0px;
- background-image: url();
}
.rich-inplace-select-field {
@@ -195,6 +194,9 @@
<u:selector name="input.rich-inplace-select-field">
<u:style name="background-color" skin="editBackgroundColor"/>
<u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="background-image">
+ <f:resource f:key="/org/richfaces/renderkit/html/images/spacer.gif"/>
+ </u:style>
</u:selector>
<u:selector name=".rich-inplace-select-field">
18 years, 1 month
JBoss Rich Faces SVN: r7130 - trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-03-24 13:22:48 -0400 (Mon, 24 Mar 2008)
New Revision: 7130
Modified:
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-2641
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-24 17:20:10 UTC (rev 7129)
+++ trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-03-24 17:22:48 UTC (rev 7130)
@@ -10,7 +10,6 @@
} else return element.selectionStart;
}
-
Richfaces.Selection.getEnd = function(element)
{
if (element.createTextRange) {
@@ -19,6 +18,16 @@
return r.text.length;
} else return element.selectionEnd;
}
+Richfaces.Selection.setCaretTo = function (element, pos) {
+ if(element.createTextRange) {
+ var range = element.createTextRange();
+ range.move("character", pos);
+ range.select();
+ } else if(element.selectionStart) {
+ element.focus();
+ element.setSelectionRange(pos, pos);
+ }
+}
var Suggestion = {};
Suggestion.Base = function() {
@@ -787,6 +796,7 @@
whitespace = str.match(/\s+$/);
if (whitespace) endStr = whitespace[0] + endStr;
this.element.value = startStr + value + endStr;
+ Richfaces.Selection.setCaretTo(this.element, (startStr + value).length);
if (this.options.usingSuggestObjects)
{
18 years, 1 month
JBoss Rich Faces SVN: r7129 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-03-24 13:20:10 -0400 (Mon, 24 Mar 2008)
New Revision: 7129
Modified:
trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
Log:
http://jira.jboss.com/jira/browse/RF-1690
Some code samples and descripions were corrected.
Modified: trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2008-03-24 17:19:03 UTC (rev 7128)
+++ trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2008-03-24 17:20:10 UTC (rev 7129)
@@ -96,7 +96,7 @@
<para>
Displaying information on a progress bar can be also performed using
- <property><h:outputText></property> JSF tag within
+ <property><h:outputText></property> within
<emphasis role="bold"><property><rich:progressBar></property> </emphasis> tags passing the progress value to the value of the JSF tag.
</para>
@@ -105,8 +105,8 @@
</para>
<programlisting role="XML"><![CDATA[...
-<rich:progressBar value="#{bean.incValue1}" >
- <h:outputText value="#{bean.incValue1}"></h:outputText>
+<rich:progressBar value="#{bean.incValue1}">
+ <h:outputText value="#{bean.incValue1}"/>
</rich:progressBar>
...]]> </programlisting>
@@ -132,7 +132,7 @@
<programlisting role="XML"><![CDATA[...
<rich:progressBar value="#{bean.incValue1}" enabled="#{bean.enabled1}" id="progrs1" progressVar="progress">
- <h:outputText value="{progress}%"></h:outputText>
+ <h:outputText value="{progress}%"/>
</rich:progressBar>
...]]> </programlisting>
@@ -144,26 +144,23 @@
<emphasis><property>"value"</property></emphasis>
attribute of a
<emphasis role="bold"><property><rich:progressBar></property> </emphasis>
- and transfers the received data to the "value" attribute of <property><h:outputText></property> JSF tag, to make the data appear on the page.
+ and transfers the received data to the "value" attribute of <property><h:outputText></property>, to make the data appear on the page.
</para>
<!--Macrosubs-->
-
-
-
<para>
The <emphasis role="bold"><property><rich:progressBar></property> </emphasis>
component provides 3 predefined macrosubstitution parameters:
<itemizedlist>
<listitem>
- <para><property><emphasis><property>{value}</property></emphasis></property> contains <emphasis><property>"value"</property></emphasis></para>
+ <para><property><emphasis><property>{value}</property></emphasis></property> contains the current value</para>
</listitem>
<listitem>
- <para><property><emphasis><property>{minValue}</property></emphasis></property> contains <emphasis><property>"minValue"</property></emphasis></para>
+ <para><property><emphasis><property>{minValue}</property></emphasis></property> contains min value</para>
</listitem>
<listitem>
- <para><property><emphasis><property>{maxValue}</property></emphasis></property> contains <emphasis><property>"maxValue"</property></emphasis></para>
+ <para><property><emphasis><property>{maxValue}</property></emphasis></property> contains max value</para>
</listitem>
</itemizedlist>
@@ -174,7 +171,7 @@
</para>
<programlisting role="XML"><![CDATA[...
<rich:progressBar value="#{bean.incValue1}" minValue="400" maxValue="900">
- <h:outputText value="Min value is {minValue}, current value is {value}, max value is {maxValue}"></h:outputText>
+ <h:outputText value="Min value is {minValue}, current value is {value}, max value is {maxValue}"/>
</rich:progressBar>
...]]> </programlisting>
<figure>
@@ -185,10 +182,6 @@
</imageobject>
</mediaobject>
</figure>
-
-
-
-
<!--END of Macrosubs-->
<!-- Parameters-->
<para>
@@ -205,7 +198,7 @@
<programlisting role="XML"><![CDATA[...
<progressBar:progressBar value="#{bean.incValue1}" parameters="param:'#{bean.incValue1}'">
- <h:outputText value="{param}%"></h:outputText>
+ <h:outputText value="{param}%"/>
</progressBar:progressBar>
...]]> </programlisting>
@@ -227,18 +220,6 @@
-
- <para> The <emphasis><property>"parameters"</property></emphasis>attribute allows to send some
- dynamical data to the component which is displayed in the informational part.
- Parameters can be passed through <emphasis><property>"parameters"</property></emphasis> attribute, or from component control.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<rich:progressBar progressVar="progress" parameters="param1:'1'" >
- <h:outputText="{param1} task #{progress} %"/>
-</rich:progressBar>
-...]]> </programlisting>
<para>
The component can also employ <emphasis><property> "initial"</property></emphasis> and <emphasis><property> "complete"</property></emphasis>
@@ -249,12 +230,12 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<rich:progressBar value="#{bean.incValue1}" >
+<rich:progressBar value="#{bean.incValue1}">
<f:facet name="initial">
- <h:outputText value="Process not started"></h:outputText>
+ <h:outputText value="Process not started"/>
</f:facet>
<f:facet name="complete">
- <h:outputText value="Process completed"></h:outputText>
+ <h:outputText value="Process completed"/>
</f:facet>
</rich:progressBar>
...]]> </programlisting>
@@ -270,8 +251,7 @@
<para><property>Client</property> - component updates after its value changed through JavaScript API. </para>
</listitem>
</itemizedlist>
-
-
+
</section>
<!-- End. Details of Usage-->
@@ -643,18 +623,16 @@
</mediaobject>
</figure>
<para>In the example the "remained" part of progress area is modified with a background-color CSS property.</para>
-
-
-
-
-
+
<para>It's aslo possible to change styles of a particular
<emphasis role="bold"> <property><rich:progressBar></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"><property><rich:progressBar></property></emphasis> <property>styleClass</property> attributes. An example is placed below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[...
-.RremainClass{ background-color: #ebf3fd;}
+.myClass{
+background-color: #ebf3fd;
+}
...]]></programlisting>
<para>The <emphasis><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
><property><rich:progressBar> </property></emphasis> is defined as it’s shown in the example below:</para>
@@ -662,7 +640,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="CSS"><![CDATA[<rich:progressBar value="#{bean.incValue1}" styleClass="remainClass" />
+ <programlisting role="CSS"><![CDATA[<rich:progressBar value="#{bean.incValue1}" styleClass="myClass"/>
]]></programlisting>
<para>This is a result:</para>
18 years, 1 month