JBoss Rich Faces SVN: r4594 - in branches/3.1.x: ui/orderingList/src/main/java/org/richfaces/renderkit and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-12-07 12:14:00 -0500 (Fri, 07 Dec 2007)
New Revision: 4594
Modified:
branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/SelectItem.js
Log:
http://jira.jboss.com/jira/browse/RF-1185
Modified: branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
===================================================================
--- branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2007-12-07 15:53:46 UTC (rev 4593)
+++ branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2007-12-07 17:14:00 UTC (rev 4594)
@@ -239,6 +239,7 @@
public static final String CHARSET_ATTR = "charset";
public static final String COORDS_ATTR = "coords";
public static final String HREFLANG_ATTR = "hreflang";
+ public static final String HREF_ATTR = "href";
public static final String REL_ATTR = "rel";
public static final String REV_ATTR = "rev";
public static final String SHAPE_ATTR = "shape";
Modified: branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2007-12-07 15:53:46 UTC (rev 4593)
+++ branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2007-12-07 17:14:00 UTC (rev 4594)
@@ -316,6 +316,10 @@
writer.writeAttribute(HTML.onmouseout_ATTRIBUTE, "this.className='" + baseStyle + "'", null);
}
+ writer.startElement(HTML.a_ELEMENT, orderingList);
+ writer.writeAttribute(HTML.class_ATTRIBUTE, baseStyle + "-selection", null);
+ writer.writeAttribute(HTML.HREF_ATTR, "#", null);
+
writer.startElement(HTML.DIV_ELEM, orderingList);
writer.writeAttribute(HTML.class_ATTRIBUTE, baseStyle + "-content", null);
@@ -364,6 +368,7 @@
if (!useFacet) {
writer.endElement(HTML.DIV_ELEM);
+ writer.endElement(HTML.a_ELEMENT);
writer.endElement(HTML.DIV_ELEM);
}
writer.endElement(HTML.DIV_ELEM);
Modified: branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2007-12-07 15:53:46 UTC (rev 4593)
+++ branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2007-12-07 17:14:00 UTC (rev 4594)
@@ -149,9 +149,9 @@
writer.startElement(HTML.td_ELEM, table);
- if (!iterator.hasNext()) {
- cellClassName.append(" rich-ordering-list-cell-end");
- }
+ //if (!iterator.hasNext()) {
+ // cellClassName.append(" rich-ordering-list-cell-end");
+ //}
writer.writeAttribute("class", cellClassName.toString(), null);
//writer.write(" ");
Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-12-07 15:53:46 UTC (rev 4593)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-12-07 17:14:00 UTC (rev 4594)
@@ -143,10 +143,14 @@
}
.rich-ordering-list-cell-end {
- border-right : 0px;
+ border-right: 1px solid;
white-space: nowrap;
}
+.rich-ordering-list-cell-begin {
+ border-left: 1px solid;
+}
+
.rich-ordering-list-cell {
padding : 2px;
white-space: nowrap;
@@ -160,8 +164,8 @@
.rich-ordering-list-cell-active {
padding: 1px 2px 1px 2px;
white-space: nowrap;
- border-top: 1px dotted gray;
- border-bottom: 1px dotted gray;
+ border-top: 1px solid;
+ border-bottom: 1px solid;
}
.rich-ordering-list-ds {
@@ -252,7 +256,12 @@
<u:selector name=".rich-ordering-list-cell-end">
<u:style name="font-family" skin="generalFamilyFont" />
<u:style name="font-size" skin="generalSizeFont" />
+ <u:style name="border-right-color" skin="selectControlColor" />
</u:selector>
+
+ <u:selector name=".rich-ordering-list-cell-begin">
+ <u:style name="border-left-color" skin="selectControlColor" />
+ </u:selector>
<u:selector name=".rich-ordering-list-items">
<u:style name="background-color" skin="generalBackgroundColor" />
@@ -288,6 +297,8 @@
<u:selector name=".rich-ordering-list-cell-active">
<u:style name="font-size" skin="generalSizeFont" />
<u:style name="font-family" skin="generalFamilyFont" />
+ <u:style name="border-top-color" skin="selectControlColor" />
+ <u:style name="border-bottom-color" skin="selectControlColor" />
</u:selector>
<u:selector name=".rich-ordering-control-disabled">
@@ -311,6 +322,12 @@
<u:style name="font-size" skin="headerSizeFont" />
</u:selector>
+ <u:selector name=".rich-ordering-list-button-selection">
+ <u:style name="color" skin="generalTextColor" />
+ <u:style name="text-decoration" value="none" />
+ <u:style name="display" value="block" />
+ </u:selector>
+
<u:selector name=".rich-ordering-list-caption">
<u:style name="font-family" skin="headerFamilyFont" />
<u:style name="font-size" skin="headerSizeFont" />
Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2007-12-07 15:53:46 UTC (rev 4593)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2007-12-07 17:14:00 UTC (rev 4594)
@@ -45,7 +45,9 @@
SELECTED : "rich-ordering-list-cell-selected",
ACTIVE_SELECTED : "rich-ordering-list-cell-selected rich-ordering-list-cell-active",
DISABLED : "rich-ordering-list-cell-disabled",
- NORMAL : "rich-ordering-list-cell"
+ NORMAL : "rich-ordering-list-cell",
+ BEGIN: " rich-ordering-list-cell-begin",
+ END: " rich-ordering-list-cell-end"
}
},
Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/SelectItem.js
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/SelectItem.js 2007-12-07 15:53:46 UTC (rev 4593)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/SelectItem.js 2007-12-07 17:14:00 UTC (rev 4594)
@@ -10,7 +10,8 @@
newRowStyle = classes.ROW.ACTIVE_SELECTED;
newCellStyle = classes.CELL.ACTIVE_SELECTED;
}
- Richfaces.SelectItems.doChange(row, newRowStyle, newCellStyle);
+ Richfaces.SelectItems.doChange(row, newRowStyle, newCellStyle,
+ classes.CELL.BEGIN, classes.CELL.END);
},
doSelect : function(row, classes) {
@@ -35,16 +36,19 @@
return Richfaces.SelectItems.compareStates(row, classes.ROW.ACTIVE);
},
- doChange : function(row, classNameRow, classNameCell) {
+ doChange : function(row, classNameRow, classNameCell, classNameCellBegin, classNameCellEnd) {
Richfaces.SelectItems.doChangeNode(row, classNameRow);
var cells = row.cells;
for (var i = 0; i < cells.length; i++) {
var cell = cells[i];
- if (i == (cells.length - 1)) {
- //TODO nick - testing
- //Element.setStyle(cell, {'border': '0px'});
+ var clazz = classNameCell;
+ if (classNameCellEnd && (cells.length - 1) == i) {
+ clazz += " " + classNameCellEnd;
}
- Richfaces.SelectItems.doChangeNode(cell, classNameCell);
+ if (classNameCellBegin && 0 == i){
+ clazz += " " + classNameCellBegin;
+ }
+ Richfaces.SelectItems.doChangeNode(cell, clazz);
}
},
18 years, 5 months
JBoss Rich Faces SVN: r4593 - branches/3.1.x/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-12-07 10:53:46 -0500 (Fri, 07 Dec 2007)
New Revision: 4593
Modified:
branches/3.1.x/docs/userguide/en/src/main/docbook/included/componentControl.xml
Log:
http://jira.jboss.com/jira/browse/RF-1537 - fixed error
Modified: branches/3.1.x/docs/userguide/en/src/main/docbook/included/componentControl.xml
===================================================================
--- branches/3.1.x/docs/userguide/en/src/main/docbook/included/componentControl.xml 2007-12-07 15:49:27 UTC (rev 4592)
+++ branches/3.1.x/docs/userguide/en/src/main/docbook/included/componentControl.xml 2007-12-07 15:53:46 UTC (rev 4593)
@@ -94,7 +94,7 @@
...
]]></programlisting>
<para>According to this code a function with name <property>"call"</property>
- is generated. It could be used in JavaScript code to trigger an operation on the target
+ is generated. It is used in JavaScript code to trigger an operation on the target
component with defined id=<property>"comp_ID"</property>.</para>
<para>The generated function is shown below:</para>
<programlisting role="JAVA"><![CDATA[function ffunction (event) {
18 years, 5 months
JBoss Rich Faces SVN: r4592 - branches/3.1.x/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-12-07 10:49:27 -0500 (Fri, 07 Dec 2007)
New Revision: 4592
Modified:
branches/3.1.x/docs/userguide/en/src/main/docbook/included/contextMenu.xml
Log:
http://jira.jboss.com/jira/browse/RF-1298 - improved description
Modified: branches/3.1.x/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- branches/3.1.x/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2007-12-07 13:44:31 UTC (rev 4591)
+++ branches/3.1.x/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2007-12-07 15:49:27 UTC (rev 4592)
@@ -61,6 +61,7 @@
HtmlContextMenu myContextMenu = new HtmlContextMenu();
...]]></programlisting>
</section>
+
<section>
<title>Details of Usage</title>
<para>All attributes except <emphasis>
@@ -72,7 +73,59 @@
<property>"label"</property>
</emphasis> facet.</para>
- <para> It's possible to define the direction for list appear in the <emphasis>
+ <para>The <emphasis role="bold">
+ <property><rich:contexMenu></property>
+ </emphasis>
+ <emphasis>
+ <property>"submitMode"</property>
+ </emphasis> attribute can be set to three possible parameters:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Server (default)</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>Regular form submition request is used</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Ajax</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>Ajax submission is used for switching</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>None</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>The <emphasis>
+ <property>"action"</property>
+ </emphasis> and <emphasis>
+ <property>"actionListener"</property>
+ </emphasis> item's attributes are ignored. Menu items don't fire any submits themselves.
+ The behavior is fully defined by the components nested inside items.</para>
+
+ <note><title>Note:</title> As the <emphasis role="bold">
+ <property><rich:contexMenu></property>
+ </emphasis> component doesn't provide its own form, use it between
+ <h:form> and </h:form> tags.</note>
+
+ <para><emphasis role="bold">
+ <property><rich:menuGroup></property>
+ </emphasis>, <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> and <emphasis role="bold">
+ <property><rich:menuSeparator></property>
+ </emphasis> components is used as nested elements for <emphasis role="bold">
+ <property><rich:contexMenu></property>
+ </emphasis>.</para>
+
+ <!-- Will be done for latest version -->
+ <!--para> It's possible to define the direction for list appear in the <emphasis>
<property>"direction"</property>
</emphasis>attribute. If the accordance of the popup corner to corner of the label isn’t
set <emphasis>
@@ -128,15 +181,14 @@
</listitem>
</itemizedlist>
- <!--ADD EXAMPLE and SCREENSHOT -->
-
<para>In order to set the offset for the menu popup relatively to label, you can use <emphasis>
<property>"horizontalOffset"</property>
</emphasis> and <emphasis>
<property>"verticalOffset"</property>
- </emphasis> attributes. Values can be negative.</para>
+ </emphasis> attributes. Values can be negative.</para-->
- <para><property>menuItem</property> provides <emphasis>
+ <!-- For menuItem, not for contexMenu -->
+ <!--para><property>menuItem</property> provides <emphasis>
<property>"submitMode"</property>
</emphasis> attribute to define the way of submission. Possible values : <itemizedlist>
<listitem>
@@ -163,16 +215,15 @@
<property>"actionListener"</property>
</emphasis> item's attributes are ignored. Menu items don't fire any submits
themselves. The behavior is fully defined by the components nested inside items.</para>
- <!-- template
+ <template
<para>emphasis role="bold">
<property><contextMenu></property>
</emphasis> could not be generated for every component where it's defined. Templating could
be used instead. So only representation data could be loaded from server. And markup
could be evaluated on client side. So it's should accept macrosubstitutions like
{value} </para>
-
- -->
- </para>
+
+ </para-->
</section>
<section>
<title>JavaScript API</title>
@@ -198,7 +249,7 @@
<entry>Show component or group</entry>
<entry>Component, group</entry>
</row>
- <row>
+ <!--row>
<entry>doEnable()</entry>
<entry>Enable component, item, group</entry>
<entry>Component, Item, Group</entry>
@@ -207,189 +258,9 @@
<entry>doDisable()</entry>
<entry>Disable component, item or group</entry>
<entry>Component, Item, Group</entry>
- </row>
+ </row-->
</tbody>
</tgroup>
</table>
</section>
- <section>
- <title>Look-and-Feel Customization</title>
-
- <para>For skinnability implementation, the components use a <emphasis>
- <property>style class redefinition method.</property>
- </emphasis> Default style classes are mapped on <emphasis>
- <property>skin parameters.</property>
- </emphasis></para>
-
- <para>There are two ways to redefine the appearance of all <emphasis role="bold">
- <property><rich:contextMenu></property>
- </emphasis> components at once:</para>
-
- <itemizedlist>
- <listitem>
- <para>Redefine the corresponding skin parameters</para>
- </listitem>
-
- <listitem>
- <para>Add to your style sheets <emphasis>
- <property>style classes</property>
- </emphasis> used by a <emphasis role="bold">
- <property><rich:contextMenu></property>
- </emphasis> component</para>
- </listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Skin Parameters Redefinition</title>
- </section>
- <section>
- <title>Definition of Custom Style Classes</title>
-
- <para>On the screenshot there are classes names that define styles for component elements.</para>
-
- <!-- ADD SCREENSHOT -->
-
- <table>
- <title>Classes names that define a menu item</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-menu-item</entry>
- <entry>Defines styles for menu item</entry>
- </row>
- <row>
- <entry>rich-menu-item-disabled</entry>
- <entry>Defines styles for menu item in disabed state</entry>
- </row>
- <row>
- <entry>rich-menu-item-enabled</entry>
- <entry>Defines styles for menu item in enabled state</entry>
- </row>
- <row>
- <entry>rich-menu-item-hover</entry>
- <entry>Defines styles for menu item on hover event</entry>
- </row>
- <row>
- <entry>rich-menu-item-icon</entry>
- <entry>Defines styles for icon in menu item</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Classes names that define a menu item label</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
-
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-menu-item-label</entry>
- <entry>Defines styles for menu item label</entry>
- </row>
- <row>
- <entry>rich-menu-item-label-disabled</entry>
- <entry>Defines styles for menu item label in disabled state</entry>
- </row>
- <row>
- <entry>rich-menu-item-label-selected</entry>
- <entry>Defines styles for menu item label already selected</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Classes names that define a menu item icon</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
-
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-menu-item-icon-disabled</entry>
- <entry>Defines styles for icon of menu item in disabled state</entry>
- </row>
- <row>
- <entry>rich-menu-item-icon-selected</entry>
- <entry>Defines styles for icon of menu item in selected state</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Classes names that define a group element</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-menu-group</entry>
- <entry>Defines styles for menu group</entry>
- </row>
- <row>
- <entry>rich-menu-group-disabled</entry>
- <entry>Defines styles for menu group in disabled state</entry>
- </row>
- <row>
- <entry>rich-menu-group-selected</entry>
- <entry>Defines styles for menu group in selected state</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Classes names that define a separator</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
-
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-menu-separator</entry>
- <entry>Defines styles for menu separator</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Classes names that define a popup element</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
-
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-menu-popup</entry>
- <entry>Defines styles for popup element</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
</section>
18 years, 5 months
JBoss Rich Faces SVN: r4591 - management/design/orderingList/markup.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-12-07 08:44:31 -0500 (Fri, 07 Dec 2007)
New Revision: 4591
Modified:
management/design/orderingList/markup/ordering_list.html
Log:
http://jira.jboss.com/jira/browse/RF-1185
Modified: management/design/orderingList/markup/ordering_list.html
===================================================================
--- management/design/orderingList/markup/ordering_list.html 2007-12-07 13:12:34 UTC (rev 4590)
+++ management/design/orderingList/markup/ordering_list.html 2007-12-07 13:44:31 UTC (rev 4591)
@@ -66,7 +66,7 @@
#internal_tab td{
font-family : Arial;
font-size :11px;
- border-bottom : 1px solid #C0C0C0; /*tableBorderColor*/
+ border-bottom : 1px solid #FFFFFF; /*tableBorderColor*/
border-top : 1px solid #FFFFFF; /*tableBackgroundColor*/
padding : 2px}
#internal_tab th{
@@ -81,12 +81,28 @@
border-top : 1px solid #FFFFFF; /*tableBackgroundColor*/
padding : 2px}
#internal_tab tr.ol_select td{
- background : #EAF0F8; /*additionalBackgroundColor*/
+ background : #C6D6EA; /*trimColor*/
+ border-bottom : 1px solid #ffffff; /*tableBorderColor*/
+ border-top : 1px solid #C6D6EA; /*tableBackgroundColor*/
}
#internal_tab tr.ol_currant td{
- background : #C6D6EA;/*trimColor*/ font-weight : bold
+ border-bottom : 1px solid #E79A00; /*selectControlColor*/
+ border-top : 1px solid #E79A00; /*selectControlColor*/
}
+
+ #internal_tab tr.ol_currant td.ol_firstcol{
+ border-left : 1px solid #E79A00; /*selectControlColor*/
+ }
+ #internal_tab tr.ol_currant td.ol_endcol{
+ border-right : 1px solid #E79A00; /*selectControlColor*/
+ }
+
+ a.ol_button_selection{
+ text-decoration : none;
+ color : #000000; /*generalTextColor*/
+ display : block;
+ }
.ol_button_content{
font-family : Arial;
font-size :11px;
@@ -114,7 +130,7 @@
<div class="ol_list ol_outputlist">
<table border="0" cellpadding="0" cellspacing="0" id="internal_tab">
<tr>
- <th nowrap>
+ <th nowrap class="ol_firstcol">
Header 1
</th>
<th nowrap>
@@ -125,7 +141,7 @@
</th>
</tr>
<tr>
- <td nowrap>
+ <td nowrap class="ol_firstcol">
Content 1
</td>
<td nowrap>
@@ -135,8 +151,8 @@
Content 3
</td>
</tr>
- <tr>
- <td nowrap>
+ <tr class="ol_select">
+ <td nowrap class="ol_firstcol">
Content 1
</td>
<td nowrap>
@@ -147,7 +163,7 @@
</td>
</tr>
<tr class="ol_select">
- <td nowrap>
+ <td nowrap class="ol_firstcol">
Content 1
</td>
<td nowrap>
@@ -158,7 +174,7 @@
</td>
</tr>
<tr>
- <td nowrap>
+ <td nowrap class="ol_firstcol">
Content 1
</td>
<td nowrap>
@@ -168,8 +184,8 @@
Content 3
</td>
</tr>
- <tr class="ol_currant">
- <td nowrap>
+ <tr class="ol_select ol_currant">
+ <td nowrap class="ol_firstcol">
Content 1
</td>
<td nowrap>
@@ -180,7 +196,7 @@
</td>
</tr>
<tr class="ol_select">
- <td nowrap>
+ <td nowrap class="ol_firstcol">
Content 1
</td>
<td nowrap>
@@ -191,7 +207,7 @@
</td>
</tr>
<tr>
- <td nowrap>
+ <td nowrap class="ol_firstcol">
Content 1
</td>
<td nowrap>
@@ -202,7 +218,7 @@
</td>
</tr>
<tr>
- <td nowrap>
+ <td nowrap class="ol_firstcol">
Content 1
</td>
<td nowrap>
@@ -213,7 +229,7 @@
</td>
</tr>
<tr>
- <td nowrap>
+ <td nowrap class="ol_firstcol">
Content 1
</td>
<td nowrap>
@@ -228,10 +244,10 @@
</td>
<td class="ol_center_button_col_valign">
<div class="ol_button_layout">
- <div class="ol_button_border"><div class="ol_button" onmouseover="this.className='ol_button_light'" onmousedown="this.className='ol_button_press'" onmouseup="this.className='ol_button'" onmouseout="this.className='ol_button'"><div class="ol_button_content"><img src="ol_images/up.gif" width="15" height="15" alt="" border="0" class="ol_ico">First</div></div></div>
- <div class="ol_button_border"><div class="ol_button" onmouseover="this.className='ol_button_light'" onmousedown="this.className='ol_button_press'" onmouseup="this.className='ol_button'" onmouseout="this.className='ol_button'"><div class="ol_button_content"><img src="ol_images/down.gif" width="15" height="15" alt="" border="0" class="ol_ico">Up</div></div></div>
- <div class="ol_button_border"><div class="ol_button" onmouseover="this.className='ol_button_light'" onmousedown="this.className='ol_button_press'" onmouseup="this.className='ol_button'" onmouseout="this.className='ol_button'"><div class="ol_button_content"><img src="ol_images/top.gif" width="15" height="15" alt="" border="0" class="ol_ico">Down</div></div></div>
- <div class="ol_button_border"><div class="ol_button" onmouseover="this.className='ol_button_light'" onmousedown="this.className='ol_button_press'" onmouseup="this.className='ol_button'" onmouseout="this.className='ol_button'"><div class="ol_button_content"><img src="ol_images/bottom.gif" width="15" height="15" alt="" border="0" class="ol_ico">Last</div></div></div>
+ <div class="ol_button_border"><div class="ol_button" onmouseover="this.className='ol_button_light'" onmousedown="this.className='ol_button_press'" onmouseup="this.className='ol_button'" onmouseout="this.className='ol_button'"><a href="#" class="ol_button_selection"><div class="ol_button_content"><img src="ol_images/up.gif" width="15" height="15" alt="" border="0" class="ol_ico">First</div></a></div></div>
+ <div class="ol_button_border"><div class="ol_button" onmouseover="this.className='ol_button_light'" onmousedown="this.className='ol_button_press'" onmouseup="this.className='ol_button'" onmouseout="this.className='ol_button'"><a href="#" class="ol_button_selection"><div class="ol_button_content"><img src="ol_images/down.gif" width="15" height="15" alt="" border="0" class="ol_ico">Up</div></a></div></div>
+ <div class="ol_button_border"><div class="ol_button" onmouseover="this.className='ol_button_light'" onmousedown="this.className='ol_button_press'" onmouseup="this.className='ol_button'" onmouseout="this.className='ol_button'"><a href="#" class="ol_button_selection"><div class="ol_button_content"><img src="ol_images/top.gif" width="15" height="15" alt="" border="0" class="ol_ico">Down</div></a></div></div>
+ <div class="ol_button_border"><div class="ol_button" onmouseover="this.className='ol_button_light'" onmousedown="this.className='ol_button_press'" onmouseup="this.className='ol_button'" onmouseout="this.className='ol_button'"><a href="#" class="ol_button_selection"><div class="ol_button_content"><img src="ol_images/bottom.gif" width="15" height="15" alt="" border="0" class="ol_ico">Last</div></a></div></div>
</div>
</td>
</table>
18 years, 5 months
JBoss Rich Faces SVN: r4590 - in branches/3.1.x/test-applications/facelets/src/main: webapp/VirtualEarth and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-12-07 08:12:34 -0500 (Fri, 07 Dec 2007)
New Revision: 4590
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java
branches/3.1.x/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-1264
Modified: branches/3.1.x/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java 2007-12-07 12:28:32 UTC (rev 4589)
+++ branches/3.1.x/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java 2007-12-07 13:12:34 UTC (rev 4590)
@@ -1,8 +1,17 @@
package virtualEarth;
public class VirtualEarth {
- String zoom;
+ private String zoom;
+ private String version;
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
public String getZoom() {
return zoom;
}
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml 2007-12-07 12:28:32 UTC (rev 4589)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml 2007-12-07 13:12:34 UTC (rev 4590)
@@ -2,7 +2,7 @@
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jstl/core" xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<h:panelGrid columns="2">
- <rich:virtualEarth style="width:800px;" id="gm" lat="37.97" dashboardSize="Normal" zoom="#{virtualEarth.zoom}"
+ <rich:virtualEarth style="width:800px;" version="#{virtualEarth.version}" id="gm" lat="37.97" dashboardSize="Normal" zoom="#{virtualEarth.zoom}"
mapStyle="Hybrid" var="map" onclick="print('onclickInputID', 'onclick work!')"
ondblclick="print('ondblclickInputID', 'ondblclick work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
18 years, 5 months
JBoss Rich Faces SVN: r4589 - branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-12-07 07:28:32 -0500 (Fri, 07 Dec 2007)
New Revision: 4589
Modified:
branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/css/listShuttle.xcss
Log:
bug :RF-1556
Modified: branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/css/listShuttle.xcss
===================================================================
--- branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/css/listShuttle.xcss 2007-12-07 12:14:27 UTC (rev 4588)
+++ branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/css/listShuttle.xcss 2007-12-07 12:28:32 UTC (rev 4589)
@@ -249,7 +249,6 @@
<u:style name="border-color" skin="panelBorderColor" />
<u:style name="border-width" skin="tableBorderWidth" />
<u:style name="border-style" value="solid" />
- <u:style name="overflow" value="auto" />
</u:selector>
<u:selector name=".rich-shuttle-source-cell-selected, .rich-shuttle-target-cell-selected, .rich-shuttle-source-cell-selected *, .rich-shuttle-target-cell-selected *">
18 years, 5 months
JBoss Rich Faces SVN: r4588 - trunk/ui/inputnumber-spinner/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-12-07 07:14:27 -0500 (Fri, 07 Dec 2007)
New Revision: 4588
Modified:
trunk/ui/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx
Log:
RF-1547, additionally added ondblclick,onmousedown,onmousemove,onmouseout,onmouseover,onmouseup,onkeypress,onkeydown
Modified: trunk/ui/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx
===================================================================
--- trunk/ui/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx 2007-12-07 10:41:05 UTC (rev 4587)
+++ trunk/ui/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx 2007-12-07 12:14:27 UTC (rev 4588)
@@ -20,7 +20,13 @@
<h:scripts>new org.ajax4jsf.javascript.PrototypeScript(),script/SpinnerScript.js,/org/richfaces/renderkit/html/scripts/browser_info.js</h:scripts>
<h:styles>css/spinner.xcss</h:styles>
-<table width="2%" class="dr-spnr-c rich-spinner-c #{component.attributes['styleClass']}" id="#{clientId}" cellspacing="0" cellpadding="0" border="0" style="#{component.attributes['style']}">
+<table width="2%" class="dr-spnr-c rich-spinner-c #{component.attributes['styleClass']}" id="#{clientId}" cellspacing="0" cellpadding="0" border="0" style="#{component.attributes['style']}" onclick="#{component.attributes['onclick']}"
+ ondblclick="#{component.attributes['ondblclick']}"
+ onmousedown="#{component.attributes['onmousedown']}"
+ onmousemove="#{component.attributes['onmousemove']}"
+ onmouseout="#{component.attributes['onmouseout']}"
+ onmouseover="#{component.attributes['onmouseover']}"
+ onmouseup="#{component.attributes['onmouseup']}">
<tbody>
<tr>
<td width="1%" class="dr-spnr-e rich-spinner-input-container" id="#{clientId}Edit">
@@ -29,7 +35,10 @@
onchange="#{component.attributes['onchange']}"
onselect="#{component.attributes['onselect']}"
onfocus="#{component.attributes['onfocus']}"
- onblur="#{component.attributes['onblur']}"
+ onblur="#{component.attributes['onblur']}"
+ onkeypress="#{component.attributes['onkeypress']}"
+ onkeyup="#{component.attributes['onkeyup']}"
+ onkeydown="#{component.attributes['onkeydown']}"
type="text"
size="#{component.attributes['inputSize']}"
name="#{clientId}"
18 years, 5 months
JBoss Rich Faces SVN: r4587 - trunk/framework/api/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-12-07 05:41:05 -0500 (Fri, 07 Dec 2007)
New Revision: 4587
Modified:
trunk/framework/api/src/main/java/org/richfaces/component/Draggable.java
Log:
add comments for the new methods
Modified: trunk/framework/api/src/main/java/org/richfaces/component/Draggable.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/component/Draggable.java 2007-12-07 01:34:19 UTC (rev 4586)
+++ trunk/framework/api/src/main/java/org/richfaces/component/Draggable.java 2007-12-07 10:41:05 UTC (rev 4587)
@@ -85,18 +85,27 @@
public void setOndragstart(String ondrag);
/**
- *
- * @return
- */
+ * Getter for JavaScript event handler; Called when drag operation end.
+ * @return javaScript code of event handler.
+ */
public String getOndragend();
public void setOndragend(String ondrag);
+
+ /**
+ * Getter for JavaScript event handler; Called when dragged element over the dropzone.
+ * @return javaScript code of event handler.
+ */
+ public String getOndropover();
public void setOndropover(String ondropover);
- public String getOndropover();
- public void setOndropout(String ondropout);
- public String getOndropout();
-
/**
+ * Getter for JavaScript event handler; Called when dragged element out the dropzone.
+ * @return javaScript code of event handler.
+ */
+ public String getOndropout();
+ public void setOndropout(String ondropout);
+
+ /**
* Append drag listener to component listeners collection
* @param listener
*/
18 years, 5 months
JBoss Rich Faces SVN: r4586 - branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-12-06 20:34:19 -0500 (Thu, 06 Dec 2007)
New Revision: 4586
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
Log:
OL & LS: JS error fixed
Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2007-12-07 01:33:44 UTC (rev 4585)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2007-12-07 01:34:19 UTC (rev 4586)
@@ -376,10 +376,12 @@
this.focusKeeper.focused = false;
//this.shuttleTable.className = Richfaces.ListBase.ORDERING_LIST_CLASSES.normal;
- if (Richfaces.SelectItems.isSelected(this.activeItem, this.CLASSES)) {
- Richfaces.SelectItems.doSelect(this.activeItem, this.CLASSES);
- } else {
- Richfaces.SelectItems.doNormal(this.activeItem, this.CLASSES);
+ if (this.activeItem) {
+ if (Richfaces.SelectItems.isSelected(this.activeItem, this.CLASSES)) {
+ Richfaces.SelectItems.doSelect(this.activeItem, this.CLASSES);
+ } else {
+ Richfaces.SelectItems.doNormal(this.activeItem, this.CLASSES);
+ }
}
},
18 years, 5 months
JBoss Rich Faces SVN: r4585 - in branches/3.1.x/ui: orderingList/src/main/resources/org/richfaces/renderkit/html/css and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-12-06 20:33:44 -0500 (Thu, 06 Dec 2007)
New Revision: 4585
Modified:
branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/css/listShuttle.xcss
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
Log:
OL & LS: selected row style class updated
Modified: branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/css/listShuttle.xcss
===================================================================
--- branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/css/listShuttle.xcss 2007-12-07 01:30:27 UTC (rev 4584)
+++ branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/css/listShuttle.xcss 2007-12-07 01:33:44 UTC (rev 4585)
@@ -279,9 +279,6 @@
</u:selector>
<u:selector name=".rich-shuttle-source-row-selected, .rich-shuttle-target-row-selected">
- <u:style name="background-image">
- <f:resource f:key="org.richfaces.renderkit.html.gradientimages.OrderingListSelectGradient" />
- </u:style>
<u:style name="background-color" skin="headerGradientColor" />
</u:selector>
}
Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-12-07 01:30:27 UTC (rev 4584)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-12-07 01:33:44 UTC (rev 4585)
@@ -321,9 +321,6 @@
</u:selector>
<u:selector name=".rich-ordering-list-row-selected">
- <u:style name="background-image">
- <f:resource f:key="org.richfaces.renderkit.html.gradientimages.OrderingListSelectGradient" />
- </u:style>
<u:style name="background-color" skin="additionalBackgroundColor" />
</u:selector>
}
18 years, 5 months