JBoss Rich Faces SVN: r9270 - in trunk/ui: pickList/src/main/config/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-06-27 07:14:59 -0400 (Fri, 27 Jun 2008)
New Revision: 9270
Modified:
trunk/ui/core/src/main/config/component/repeat.xml
trunk/ui/pickList/src/main/config/component/picklist.xml
Log:
RF-696 - fixed descriptions for a4j:repeat component ("rowKeyConverter" attribute) and for rich:pickList component ("disabled" attribute)
Modified: trunk/ui/core/src/main/config/component/repeat.xml
===================================================================
--- trunk/ui/core/src/main/config/component/repeat.xml 2008-06-27 10:56:53 UTC (rev 9269)
+++ trunk/ui/core/src/main/config/component/repeat.xml 2008-06-27 11:14:59 UTC (rev 9270)
@@ -75,6 +75,11 @@
<classname>java.lang.Object</classname>
<description>RowKey is a representation of an identifier for a specific data row.</description>
</property>
+ <property>
+ <name>rowKeyConverter</name>
+ <classname>javax.faces.convert.Converter</classname>
+ <description>Converter for a row key object</description>
+ </property>
</component>
</components>
\ No newline at end of file
Modified: trunk/ui/pickList/src/main/config/component/picklist.xml
===================================================================
--- trunk/ui/pickList/src/main/config/component/picklist.xml 2008-06-27 10:56:53 UTC (rev 9269)
+++ trunk/ui/pickList/src/main/config/component/picklist.xml 2008-06-27 11:14:59 UTC (rev 9270)
@@ -179,7 +179,12 @@
<name>onlistchanged</name>
<classname>java.lang.String</classname>
<description>A JavaScript event handler called on a list change operation</description>
- </property>
+ </property>
+ <property>
+ <name>disabled</name>
+ <classname>boolean</classname>
+ <description>If "true", disable this component on page.</description>
+ </property>
&ui_input_attributes;
&html_universal_attributes;
16 years, 6 months
JBoss Rich Faces SVN: r9269 - in trunk/sandbox/ui/extendedDataTable/src/main: resources/org/richfaces/renderkit/html/css and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: pkawiak
Date: 2008-06-27 06:56:53 -0400 (Fri, 27 Jun 2008)
New Revision: 9269
Modified:
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedRowsRenderer.java
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedTableRenderer.java
trunk/sandbox/ui/extendedDataTable/src/main/resources/org/richfaces/renderkit/html/css/extendedDataTable.xcss
Log:
Changes in style names and in style classes definitions
Modified: trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedRowsRenderer.java
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedRowsRenderer.java 2008-06-27 10:52:20 UTC (rev 9268)
+++ trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedRowsRenderer.java 2008-06-27 10:56:53 UTC (rev 9269)
@@ -210,10 +210,10 @@
"captionStyle");
writer.startElement("caption", table);
if (captionClass != null) {
- captionClass = "dr-table-caption rich-table-caption "
+ captionClass = "extdt-caption rich-extdt-caption "
+ captionClass;
} else {
- captionClass = "dr-table-caption rich-table-caption";
+ captionClass = "extdt-caption rich-extdt-caption";
}
writer.writeAttribute("class", captionClass, "captionClass");
if (captionStyle != null) {
Modified: trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedTableRenderer.java
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedTableRenderer.java 2008-06-27 10:52:20 UTC (rev 9268)
+++ trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedTableRenderer.java 2008-06-27 10:56:53 UTC (rev 9269)
@@ -153,30 +153,30 @@
writer.writeAttribute(HTML.id_ATTRIBUTE, table
.getBaseClientId(context)
+ ":header", null);
- writer.writeAttribute(HTML.class_ATTRIBUTE, "dr-table-thead", null);
+ writer.writeAttribute(HTML.class_ATTRIBUTE, "extdt-thead", null);
String headerClass = (String) table.getAttributes().get(
"headerClass");
// String menuId = (String) table.getAttributes().get(MENU_ID);
if (header != null) {
writer.startElement("tr", header);
encodeStyleClass(writer, null,
- "dr-table-header rich-table-header", headerClass, null);
+ "extdt-header rich-extdt-header", headerClass, null);
writer.writeAttribute(HTML.id_ATTRIBUTE, table
.getBaseClientId(context)
+ ":fakeIeRow", null);
for (int i = 0; i < numberOfColumns; i++) {
writer.startElement("th", header);
encodeStyleClass(writer, null,
- "dr-table-headercell rich-table-headercell",
+ "extdt-headercell rich-extdt-headercell",
headerClass, null);
writer.endElement("th");
}
writer.endElement("tr");
encodeTableHeaderFacet(context, numberOfColumns, writer,
- header, "dr-table-header rich-table-header",
- "dr-table-header-continue rich-table-header-continue",
- "dr-table-headercell rich-table-headercell",
+ header, "extdt-header rich-extdt-header",
+ "extdt-header-continue rich-extdt-header-continue",
+ "extdt-headercell rich-extdt-headercell",
headerClass, "th", "header");
}
@@ -186,26 +186,26 @@
.getBaseClientId(context)
+ ":headerRow", null);
encodeStyleClass(writer, null,
- "dr-table-subheader rich-table-subheader", null,
+ "extdt-subheader rich-extdt-subheader", null,
headerClass);
encodeHeaderFacets(
context,
writer,
table,
colums,
- "extdt-dr-menucell extdt-subheadercell rich-table-subheadercell",
+ "extdt-dr-menucell extdt-subheadercell rich-extdt-subheadercell",
headerClass, "header", "th", numberOfColumns);
/* encoding additional empty column used in resizing columns */
writer.startElement("th", table);
encodeStyleClass(writer, null,
- "extdt-subheadercell rich-table-subheadercell", null,
+ "extdt-subheadercell rich-extdt-subheadercell", null,
null);
writer.endElement("th");
writer.endElement("tr");
encodeFilterRow(context, writer, table, table
.getSortedColumns(),
- "extdt-subheadercell rich-table-subheadercell",
+ "extdt-subheadercell rich-extdt-subheadercell",
headerClass, "header", HTML.th_ELEM);
}
@@ -223,13 +223,13 @@
.getBaseClientId(context)
+ ":filterRow", null);
encodeStyleClass(writer, null,
- "extdt-table-filterrow rich-table-subheader", null,
+ "extdt-table-filterrow rich-extdt-subheader", null,
headerClass);
encodeFilterInputs(context, writer, table, headers, skinCellClass,
headerClass, facetName, element);
writer.startElement(HTML.th_ELEM, table);
encodeStyleClass(writer, null,
- "extdt-subheadercell rich-table-subheadercell", null, null);
+ "extdt-subheadercell rich-extdt-subheadercell", null, null);
writer.endElement(HTML.th_ELEM);
writer.endElement(HTML.TR_ELEMENT);
}
@@ -439,24 +439,24 @@
if (columnFacetPresent) {
writer.startElement("tr", table);
encodeStyleClass(writer, null,
- "dr-table-subfooter rich-table-subfooter", null,
+ "extdt-subfooter rich-extdt-subfooter", null,
footerClass);
encodeHeaderFacets(context, writer, table, tableColumns,
- "dr-table-subfootercell rich-table-subfootercell",
+ "extdt-subfootercell rich-extdt-subfootercell",
footerClass, "footer", "td", columns);
writer.startElement("td", table);
encodeStyleClass(writer, null,
- "dr-table-subfootercell rich-table-subfootercell", null,
+ "extdt-subfootercell rich-extdt-subfootercell", null,
null);
writer.endElement("td");
writer.endElement("tr");
}
if (footer != null) {
encodeTableHeaderFacet(context, columns, writer, footer,
- "dr-table-footer rich-table-footer",
- "dr-table-footer-continue rich-table-footer-continue",
- "dr-table-footercell rich-table-footercell",
+ "extdt-footer rich-extdt-footer",
+ "extdt-footer-continue rich-extdt-footer-continue",
+ "extdt-footercell rich-extdt-footercell",
footerClass, "td", "footer");
}
writer.endElement("tfoot");
@@ -522,7 +522,7 @@
writer.startElement(HTML.td_ELEM, table);
writer.writeAttribute(HTML.class_ATTRIBUTE,
- "dr-table-cell extdt-group-cell", null);
+ "extdt-cell extdt-group-cell", null);
writer.writeAttribute("colspan", numberOfColumns, null);
writer.startElement(HTML.SPAN_ELEM, table);
writer.startElement(HTML.IMG_ELEMENT, table);
@@ -648,7 +648,7 @@
encodeStyleClass(writer, null, getCellSkinClass(), null, null);
// TODO - encode column attributes.
writer.startElement(HTML.DIV_ELEM, table);
- writer.writeAttribute("class", "dt-cell-div", null);
+ writer.writeAttribute("class", "extdt-cell-div", null);
// writer.writeAttribute("class", "dt-sdt-bcbody", null); //KAW
// IE
renderChildren(context, column);
@@ -663,7 +663,7 @@
String columnClass = holder.getColumnClass(currentColumn);
encodeStyleClass(writer, null, getCellSkinClass(), null, columnClass);
writer.startElement(HTML.DIV_ELEM, table);
- writer.writeAttribute("class", "dt-cell-div", null);
+ writer.writeAttribute("class", "extdt-cell-div", null);
writer.endElement(HTML.DIV_ELEM);
writer.endElement(HTML.td_ELEM);
// Close row if then is open.
@@ -683,23 +683,21 @@
* @return
*/
protected String getRowSkinClass() {
- return "dr-table-row rich-table-row";
+ return "extdt-row rich-extdt-row";
}
/**
* @return
*/
protected String getFirstRowSkinClass() {
- return "dr-table-firstrow rich-table-firstrow";
- // return "dt-sdt-rb rich-table-firstrow"; //KAW IE
+ return "extdt-firstrow rich-extdt-firstrow";
}
/**
* @return
*/
protected String getCellSkinClass() {
- return "dr-table-cell rich-table-cell";
- // return "dt-sdt-bc rich-table-cell"; //KAW IE
+ return "extdt-cell rich-extdt-cell";
}
@@ -1390,7 +1388,7 @@
if (sortableColumn) {
writer.startElement(HTML.SPAN_ELEM, column);
writer.writeAttribute(HTML.class_ATTRIBUTE,
- "dr-table-sortable-header", null);
+ "extdt-sortable-header", null);
}
}
@@ -1430,7 +1428,7 @@
writer.writeAttribute(HTML.width_ATTRIBUTE, "15", null);
writer.writeAttribute(HTML.height_ATTRIBUTE, "15", null);
writer.writeAttribute(HTML.class_ATTRIBUTE,
- "dr-table-header-sort-img", null);
+ "extdt-header-sort-img", null);
writer.endElement(HTML.IMG_ELEMENT);
}
writer.endElement(HTML.SPAN_ELEM);
@@ -1490,7 +1488,7 @@
if (sortableColumn) {
writer.startElement(HTML.SPAN_ELEM, column);
writer.writeAttribute(HTML.class_ATTRIBUTE,
- "dr-table-sortable-header", null);
+ "extdt-sortable-header", null);
}
}
}
@@ -1541,7 +1539,7 @@
.writeAttribute(HTML.height_ATTRIBUTE, "15",
null);
writer.writeAttribute(HTML.class_ATTRIBUTE,
- "dr-table-header-sort-img", null);
+ "extdt-header-sort-img", null);
writer.endElement(HTML.IMG_ELEMENT);
}
writer.endElement(HTML.SPAN_ELEM);
Modified: trunk/sandbox/ui/extendedDataTable/src/main/resources/org/richfaces/renderkit/html/css/extendedDataTable.xcss
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/resources/org/richfaces/renderkit/html/css/extendedDataTable.xcss 2008-06-27 10:52:20 UTC (rev 9268)
+++ trunk/sandbox/ui/extendedDataTable/src/main/resources/org/richfaces/renderkit/html/css/extendedDataTable.xcss 2008-06-27 10:56:53 UTC (rev 9269)
@@ -221,6 +221,9 @@
top: 9px;
}
+ .extdt-caption{
+ }
+
.dt-sdt-hdrop-bottom-left{
background-position: bottom left;
left: -5px;
@@ -231,7 +234,7 @@
right: -4px;
}
- .dt-cell-div {
+ .extdt-cell-div {
cursor: default;
font-weight: normal;
white-space: nowrap;
@@ -383,7 +386,7 @@
</u:style>
</u:selector>
-<u:selector name=".dr-table" >
+<u:selector name=".extdt" >
<u:style name="border-top" value="solid"> <!--tableBorderColor-->
<f:verbatim skin="tableBorderWidth" />
<f:verbatim skin="tableBorderColor" />
@@ -402,7 +405,7 @@
<u:style name="border-collapse" value="collapse" />
</u:selector>
-<u:selector name=".dr-table-cell" >
+<u:selector name=".extdt-cell" >
<u:style name="border-right" value="solid"> <!--tableBorderColor-->
<f:verbatim skin="tableBorderWidth" />
<f:verbatim skin="tableBorderColor" />
@@ -432,7 +435,7 @@
<u:style name="font-family" skin="generalFamilyFont"/> <!--generalFamilyFont-->
</u:selector>
-<u:selector name=".dr-table-header" >
+<u:selector name=".extdt-header" >
<u:style name="background-color" skin="headerBackgroundColor"/> <!--headerBackgroundColor-->
<u:style name="background-image" > <!--from headerGradientColor to headerBackgroundColor-->
<f:resource f:key="org.richfaces.renderkit.html.GradientA"/>
@@ -441,11 +444,11 @@
<u:style name="background-repeat" value="repeat-x"/>
</u:selector>
-<u:selector name=".dr-table-header-continue" >
+<u:selector name=".extdt-header-continue" >
<u:style name="background-color" skin="headerBackgroundColor"/> <!--headerBackgroundColor-->
</u:selector>
-<u:selector name=".dr-table-headercell" >
+<u:selector name=".extdt-headercell" >
<u:style name="border-right" value="solid"> <!--tableBorderColor-->
<f:verbatim skin="tableBorderWidth" />
<f:verbatim skin="tableBorderColor" />
@@ -462,7 +465,7 @@
<u:style name="font-family" skin="generalFamilyFont"/> <!--generalFamilyFont-->
</u:selector>
-<u:selector name=".dr-table-subheader" >
+<u:selector name=".extdt-subheader" >
<u:style name="background-color" skin="additionalBackgroundColor"/> <!--additionalBackgroundColor-->
</u:selector>
@@ -474,7 +477,7 @@
</u:style>
</u:selector>
-<u:selector name=".dr-table-thead" >
+<u:selector name=".extdt-thead" >
<u:style name="border-bottom" value="solid"> <!--tableBorderColor-->
<f:verbatim skin="tableBorderWidth" />
<f:verbatim skin="tableBorderColor" />
@@ -499,13 +502,13 @@
</u:selector>
<f:verbatim>
- .dr-table-sortable-header {
+ .extdt-sortable-header {
background-position: right center;
background-repeat: no-repeat;
white-space : nowrap;
}
- .dr-table-cursor-pointer {
+ .extdt-cursor-pointer {
cursor: pointer;
}
@@ -513,21 +516,33 @@
cursor: default;
}
- .dr-table-header-sort-img {
+ .extdt-header-sort-img {
vertical-align: middle;
}
</f:verbatim>
-<u:selector name=".dr-table-footer" >
+<u:selector name=".extdt-footer" >
<u:style name="background-color" skin="tableFooterBackgroundColor"/> <!--tableFooterBackgroundColor-->
</u:selector>
-<u:selector name=".dr-table-footer-continue" >
+<u:selector name=".extdt-footer-continue" >
<u:style name="background-color" skin="tableFooterBackgroundColor"/> <!--tableFooterBackgroundColor-->
</u:selector>
-<u:selector name=".dr-table-footercell" >
+<u:selector name=".extdt-caption" >
+ <u:style name="border-bottom" value="solid"> <!--tableBorderColor-->
+ <f:verbatim skin="tableBorderWidth" />
+ <f:verbatim skin="tableBorderColor" />
+ </u:style>
+ <u:style name="color" skin="generalTextColor"/> <!--headerTextColor-->
+ <u:style name="font-weight" skin="headerWeightFont"/>
+ <u:style name="font-size" skin="generalSizeFont"/> <!--generalSizeFont-->
+ <u:style name="font-family" skin="generalFamilyFont"/> <!--generalFamilyFont-->
+ <u:style name="background-color" skin="additionalBackgroundColor"/> <!--additionalBackgroundColor-->
+</u:selector>
+
+<u:selector name=".extdt-footercell" >
<u:style name="border-right" value="solid"> <!--tableBorderColor-->
<f:verbatim skin="tableBorderWidth" />
<f:verbatim skin="tableBorderColor" />
@@ -544,11 +559,11 @@
<u:style name="font-family" skin="generalFamilyFont"/> <!--generalFamilyFont-->
</u:selector>
-<u:selector name=".dr-table-subfooter" >
+<u:selector name=".extdt-subfooter" >
<u:style name="background-color" skin="tableSubfooterBackgroundColor"/> <!--tableSubfooterBackgroundColor-->
</u:selector>
-<u:selector name=".dr-table-subfootercell" >
+<u:selector name=".extdt-subfootercell" >
<u:style name="border-right" value="solid"> <!--tableBorderColor-->
<f:verbatim skin="tableBorderWidth" />
<f:verbatim skin="tableBorderColor" />
@@ -564,7 +579,7 @@
<u:style name="font-family" skin="generalFamilyFont"/> <!--generalFamilyFont-->
</u:selector>
-<u:selector name=".dr-table-firstrow .dr-table-cell" >
+<u:selector name=".extdt-firstrow .extdt-cell" >
<!-- <u:style name="border-top" value="2px solid">
<f:verbatim skin="tableBorderColor" />
</u:style> -->
16 years, 6 months
JBoss Rich Faces SVN: r9268 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-06-27 06:52:20 -0400 (Fri, 27 Jun 2008)
New Revision: 9268
Modified:
trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
Log:
http://jira.jboss.com/jira/browse/RF-3783 - JavaScript API was added.
Modified: trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml 2008-06-27 10:51:35 UTC (rev 9267)
+++ trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml 2008-06-27 10:52:20 UTC (rev 9268)
@@ -67,7 +67,40 @@
</para>
</section>
-
+ <section>
+ <title>JavaScript API</title>
+ <table>
+ <title>JavaScript API</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Function</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>add(selector, key, handler)</entry>
+ <entry>
+ Adds the hotkey(from key param) for elements targeted by selector. Assigns handler function to the key.
+ </entry>
+ </row>
+ <row>
+ <entry>remove()</entry>
+ <entry>Removes hotkey registration</entry>
+ </row>
+ <row>
+ <entry>enable()</entry>
+ <entry>Enables registered hotkey</entry>
+ </row>
+ <row>
+ <entry>disable()</entry>
+ <entry>Disables registered hotkey</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
<section>
<title>Look-and-Feel Customization</title>
<para><emphasis role="bold">
16 years, 6 months
JBoss Rich Faces SVN: r9267 - trunk/ui/hotKey/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-06-27 06:51:35 -0400 (Fri, 27 Jun 2008)
New Revision: 9267
Modified:
trunk/ui/hotKey/src/main/config/component/hotKey.xml
Log:
http://jira.jboss.com/jira/browse/RF-3783 - Attributes descriptions were added.
Modified: trunk/ui/hotKey/src/main/config/component/hotKey.xml
===================================================================
--- trunk/ui/hotKey/src/main/config/component/hotKey.xml 2008-06-27 09:54:05 UTC (rev 9266)
+++ trunk/ui/hotKey/src/main/config/component/hotKey.xml 2008-06-27 10:51:35 UTC (rev 9267)
@@ -36,6 +36,7 @@
<name>key</name>
<classname>java.lang.String</classname>
<description>
+ Defines the hotkey itself
</description>
<defaultvalue>""</defaultvalue>
</property>
@@ -43,6 +44,7 @@
<name>timing</name>
<classname>java.lang.String</classname>
<description>
+ Defines the key registration timing
</description>
<defaultvalue>"immediate"</defaultvalue>
</property>
@@ -50,6 +52,7 @@
<name>selector</name>
<classname>java.lang.String</classname>
<description>
+ Defines a selector for query
</description>
<defaultvalue>""</defaultvalue>
</property>
@@ -57,6 +60,7 @@
<name>type</name>
<classname>java.lang.String</classname>
<description>
+ Defines the type of a keyboard event (onkeyup onkeypress etc.)
</description>
<defaultvalue>""</defaultvalue>
</property>
@@ -64,6 +68,7 @@
<name>disableInInput</name>
<classname>java.lang.Boolean</classname>
<description>
+ Disables the hotkeys activated on input elements when the value of this attribute is "true".
</description>
</property>
<property>
@@ -76,6 +81,7 @@
<name>handler</name>
<classname>java.lang.String</classname>
<description>
+ Defines the JavaScript function name which is called on hotkey activation
</description>
<defaultvalue>""</defaultvalue>
</property>
16 years, 6 months
JBoss Rich Faces SVN: r9266 - in trunk/docs/userguide: en/src/main/docbook and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-06-27 05:54:05 -0400 (Fri, 27 Jun 2008)
New Revision: 9266
Added:
trunk/docs/userguide/en/src/main/docbook/included/hotKey.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
Modified:
trunk/docs/userguide/en/src/main/docbook/master.xml
trunk/docs/userguide/pom.xml
Log:
http://jira.jboss.com/jira/browse/RF-3783 - Description, Key Features, Component identification parameters, Look-and-Feel Customization were added.
Added: trunk/docs/userguide/en/src/main/docbook/included/hotKey.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/hotKey.desc.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/hotKey.desc.xml 2008-06-27 09:54:05 UTC (rev 9266)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>hotKey</keyword>
+ <keyword>rich:hotKey</keyword>
+ </keywordset>
+ </sectioninfo>
+ <section>
+ <title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><rich:hotKey></property>
+ </emphasis> component allows to register hot keys for the page or particular elements and to define client side processing functions for these keys.
+ </para>
+ </section>
+<section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Hot key registration by request through JavaScript API
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Possibility to attach <emphasis role="bold"><property><rich:hotKey></property></emphasis> to a whole page or
+ to a particular element using <emphasis><property>"selector"</property></emphasis> attribute
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Hot key registration timing
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Enabling/disabling the <emphasis role="bold"><property><rich:hotKey></property></emphasis> using JavaScript API
+ </para>
+ </listitem>
+ </itemizedlist>
+</section>
+</section>
+
\ No newline at end of file
Added: trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml 2008-06-27 09:54:05 UTC (rev 9266)
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>rich:hotKey</keyword>
+ <keyword>hotKey</keyword>
+ </keywordset>
+ </sectioninfo>
+ <table>
+ <title>Component identification parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.HotKey</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlHotKey</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.HotKey</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.HotKeyRenderer</entry>
+ </row>
+ <!--row>
+ <entry>tag-class</entry>
+ <entry></entry>
+ </row-->
+ </tbody>
+ </tgroup>
+ </table>
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>To create the simplest variant on a page use the following syntax:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:hotKey key="alt+a" handler="alert('alt+A is pressed')" />
+...]]></programlisting>
+ </section>
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlHotKey;
+...
+HtmlHotKey myHotKey = new HtmlHotKey();
+...]]></programlisting>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+ <para>
+
+ </para>
+ </section>
+
+ <section>
+ <title>Look-and-Feel Customization</title>
+ <para><emphasis role="bold">
+ <property><rich:hotKey></property>
+ </emphasis> has no skin parameters and custom <property>style classes</property>, as the
+ component isn't visual.</para>
+ </section>
+
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/hotKey.jsf?c=hotKey">Here</ulink> you can see an example of
+ <emphasis role="bold"><property><rich:hotKey></property></emphasis> usage and sources for the given example.
+ </para>
+ </section>
+</section>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/master.xml 2008-06-27 09:49:37 UTC (rev 9265)
+++ trunk/docs/userguide/en/src/main/docbook/master.xml 2008-06-27 09:54:05 UTC (rev 9266)
@@ -53,6 +53,7 @@
<!ENTITY inplaceInput_table SYSTEM "../../../target/generated/inplaceInput.xml">
<!ENTITY inplaceSelect_table SYSTEM "../../../target/generated/inplaceSelect.xml">
<!ENTITY fileUpload_table SYSTEM "../../../target/generated/fileUpload.xml">
+ <!ENTITY hotKey_table SYSTEM "../../../target/generated/hotKey.xml">
<!ENTITY coreComponents_table SYSTEM "../../../target/generated/a4j.xml">
]>
<book>
@@ -99,6 +100,7 @@
&fileUpload_table;
&gmap_table;
&virtualEarth_table;
+&hotKey_table;
&inplaceInput_table;
&inplaceSelect_table;
&inputNumberSlider_table;
Modified: trunk/docs/userguide/pom.xml
===================================================================
--- trunk/docs/userguide/pom.xml 2008-06-27 09:49:37 UTC (rev 9265)
+++ trunk/docs/userguide/pom.xml 2008-06-27 09:54:05 UTC (rev 9266)
@@ -138,6 +138,17 @@
</version>
</artifactItem>
+ <artifactItem>
+ <groupId>
+ org.richfaces.ui
+ </groupId>
+ <artifactId>
+ hotKey
+ </artifactId>
+ <version>
+ ${project.version}
+ </version>
+ </artifactItem>
<artifactItem>
16 years, 6 months
JBoss Rich Faces SVN: r9265 - trunk/sandbox/ui/extendedDataTable/src/main/javascript/ClientUI/controls/datatable.
by richfaces-svn-commits@lists.jboss.org
Author: pkawiak
Date: 2008-06-27 05:49:37 -0400 (Fri, 27 Jun 2008)
New Revision: 9265
Modified:
trunk/sandbox/ui/extendedDataTable/src/main/javascript/ClientUI/controls/datatable/ExtendedDataTable.js
Log:
Proper footer rendering in Safari fix
Modified: trunk/sandbox/ui/extendedDataTable/src/main/javascript/ClientUI/controls/datatable/ExtendedDataTable.js
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/javascript/ClientUI/controls/datatable/ExtendedDataTable.js 2008-06-27 09:21:25 UTC (rev 9264)
+++ trunk/sandbox/ui/extendedDataTable/src/main/javascript/ClientUI/controls/datatable/ExtendedDataTable.js 2008-06-27 09:49:37 UTC (rev 9265)
@@ -235,9 +235,9 @@
var mainDivWidth = this.mainDiv.getWidth();
var headerChildren = header.getColumnCells();
- var footers = table.getElementsBySelector('tfoot');
+ var footers = table.getElementsByTagName('tfoot');
var footerHeight = 0;
- if (footers.size() > 0) {
+ if (footers.length > 0) {
footerHeight = footers[0].offsetHeight;
}
var columnsNumber = this.getColumnsNumber();
@@ -281,6 +281,7 @@
if (captions.length > 0) {
newHeight -= captions[0].offsetHeight;
}
+ ClientUILib.log(ClientUILogger.INFO, "footerHeight: " + footerHeight);
scrollingDiv.setStyle('height:'+ newHeight +'px;');
for (var i=0; i<headerChildren.length-1; i++) {
var headerChild = headerChildren[i];
16 years, 6 months
JBoss Rich Faces SVN: r9264 - trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: pkawiak
Date: 2008-06-27 05:21:25 -0400 (Fri, 27 Jun 2008)
New Revision: 9264
Modified:
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedTableRenderer.java
Log:
Proper footer rendering fix
Modified: trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedTableRenderer.java
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedTableRenderer.java 2008-06-27 09:02:44 UTC (rev 9263)
+++ trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/AbstractExtendedTableRenderer.java 2008-06-27 09:21:25 UTC (rev 9264)
@@ -445,7 +445,11 @@
encodeHeaderFacets(context, writer, table, tableColumns,
"dr-table-subfootercell rich-table-subfootercell",
footerClass, "footer", "td", columns);
-
+ writer.startElement("td", table);
+ encodeStyleClass(writer, null,
+ "dr-table-subfootercell rich-table-subfootercell", null,
+ null);
+ writer.endElement("td");
writer.endElement("tr");
}
if (footer != null) {
16 years, 6 months
JBoss Rich Faces SVN: r9263 - in trunk/test-applications/jsp/src/main: java/validator and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-27 05:02:44 -0400 (Fri, 27 Jun 2008)
New Revision: 9263
Added:
trunk/test-applications/jsp/src/main/java/validator/
trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
trunk/test-applications/jsp/src/main/webapp/Validator/
trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorDefault.jsp
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Validator.xml
Log:
Validator without richBean
Added: trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java 2008-06-27 09:02:44 UTC (rev 9263)
@@ -0,0 +1,16 @@
+package validator;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.Validator;
+import javax.faces.validator.ValidatorException;
+
+public class ValidatorBean implements Validator {
+
+ public void validate(FacesContext context, UIComponent component,
+ Object value) throws ValidatorException {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Added: trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp 2008-06-27 09:02:44 UTC (rev 9263)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:subview id="validatorSubviewID">
+<div style="FONT-WEIGHT:bold;">Insert rich:validator</div>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorDefault.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorDefault.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorDefault.jsp 2008-06-27 09:02:44 UTC (rev 9263)
@@ -0,0 +1,5 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<div style="FONT-WEIGHT: bold;">Default component<div>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp 2008-06-27 09:02:44 UTC (rev 9263)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:subview id="validatorPropertySubviewID">
+<div style="FONT-WEIGHT: bold;">Component properties</div>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp 2008-06-27 09:02:44 UTC (rev 9263)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+<f:subview id="validatorStraightforwardSubviewID">
+<div style="FONT-WEIGHT: bold;">Straightforward for test set</div>
+</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Validator.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Validator.xml (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Validator.xml 2008-06-27 09:02:44 UTC (rev 9263)
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+<managed-bean>
+ <managed-bean-name>validator</managed-bean-name>
+ <managed-bean-class>validator.ValidatorBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
+
16 years, 6 months
JBoss Rich Faces SVN: r9262 - in trunk/framework/impl: src/main/javascript/jquery and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-06-26 20:31:08 -0400 (Thu, 26 Jun 2008)
New Revision: 9262
Modified:
trunk/framework/impl/generatescript.xml
trunk/framework/impl/src/main/javascript/jquery/jquery-1.2.6.js
Log:
1. Patch for jQuery's event.fix() applied
2. jQuery switched to 1.2.6 in scripts generation
Modified: trunk/framework/impl/generatescript.xml
===================================================================
--- trunk/framework/impl/generatescript.xml 2008-06-27 00:06:35 UTC (rev 9261)
+++ trunk/framework/impl/generatescript.xml 2008-06-27 00:31:08 UTC (rev 9262)
@@ -50,7 +50,7 @@
-->
<filelist id="jquery"
dir="${basedir}/src/main/javascript/jquery"
- files="jquery-1.2.3.js,noConflict.js,../memory.js,patches.js">
+ files="jquery-1.2.6.js,noConflict.js,../memory.js,patches.js">
</filelist>
<filelist id="scriptaculous"
Modified: trunk/framework/impl/src/main/javascript/jquery/jquery-1.2.6.js
===================================================================
--- trunk/framework/impl/src/main/javascript/jquery/jquery-1.2.6.js 2008-06-27 00:06:35 UTC (rev 9261)
+++ trunk/framework/impl/src/main/javascript/jquery/jquery-1.2.6.js 2008-06-27 00:31:08 UTC (rev 9262)
@@ -2101,8 +2101,9 @@
var originalEvent = event;
event = { originalEvent: originalEvent };
var props = "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");
- for ( var i=props.length; i; i-- )
- event[ props[i] ] = originalEvent[ props[i] ];
+ //applied patch: http://dev.jquery.com/ticket/2947
+ for ( var i=props.length-1; i>=0; i-- )
+ event[ props[i] ] = originalEvent[ props[i] ];
// Mark it as fixed
event[expando] = true;
16 years, 6 months
JBoss Rich Faces SVN: r9261 - trunk/framework/impl/src/main/javascript/jquery.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-06-26 20:06:35 -0400 (Thu, 26 Jun 2008)
New Revision: 9261
Modified:
trunk/framework/impl/src/main/javascript/jquery/jquery-1.2.6.js
Log:
jQuery 1.2.6 components patch added
Modified: trunk/framework/impl/src/main/javascript/jquery/jquery-1.2.6.js
===================================================================
--- trunk/framework/impl/src/main/javascript/jquery/jquery-1.2.6.js 2008-06-27 00:05:49 UTC (rev 9260)
+++ trunk/framework/impl/src/main/javascript/jquery/jquery-1.2.6.js 2008-06-27 00:06:35 UTC (rev 9261)
@@ -16,6 +16,10 @@
_$ = window.$;
var jQuery = window.jQuery = window.$ = function( selector, context ) {
+ // added for RichFaces components
+ if (arguments[0] == arguments.callee) {
+ return arguments.callee;
+ }
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context );
};
16 years, 6 months