JBoss Rich Faces SVN: r5096 - management/design/comboBox/markup.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-12-28 15:13:58 -0500 (Fri, 28 Dec 2007)
New Revision: 5096
Added:
management/design/comboBox/markup/comboBoxNick1.html
Log:
draft for combo box design
Added: management/design/comboBox/markup/comboBoxNick1.html
===================================================================
--- management/design/comboBox/markup/comboBoxNick1.html (rev 0)
+++ management/design/comboBox/markup/comboBoxNick1.html 2007-12-28 20:13:58 UTC (rev 5096)
@@ -0,0 +1,69 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+<html>
+<head>
+ <title>Untitled</title>
+<style>
+.cb_width{ width : 150px;}
+.cb_font{ font-size : 11px/*generalSizeFont*/; font-family : arial/*generalFamilyFont*/; color : #000000/*generalTextColor*/}
+.cb_shell{ position : relative;}
+.cb_field{ position : absolute; top : 0px; left : 0; padding-right :20px; padding-left :3px; margin : 0px; border : 2px solid #c0c0c0; background-image: url(SpinnerFieldGradient.gif); background-position:left top;
+background-repeat:repeat-x; border-color: #BED6F8 rgb(255, 255, 255) #BED6F8 rgb(190, 214, 248); } /*panelBorderColor*/
+.cb_strut{ position : relative; visibility : hidden; margin : 0px; padding : 2px;}
+.cb_button{ position : absolute; top : 0px; right : 0; width : 17px; margin : 0px; border : 1px solid #c0c0c0; border-color: #BED6F8 rgb(190, 214, 248) #BED6F8 rgb(190, 214, 248); } /*panelBorderColor*/
+.cb_button_bg{ background : url(images/bg_btn.png) top repeat-x #C7D7EC;} /*gradient - from generalBackgroundColor to tabBackgroundColor, background-color - tabBackgroundColor*/
+.cb_button_bg_press{ background : url(images/bg_press.png) repeat-x bottom #C7D7EC} /*gradient - from tabBackgroundColor to generalBackgroundColor, background-color - tabBackgroundColor*/
+.cb_button_arrow{ background : url(images/down.gif) center no-repeat; cursor : pointer;}
+
+.cb_list_cord{ position : relative; font-size : 0px;d!isplay : none}/*DDL is hidden!!!!!*/
+.cb_list_position{ position : absolute; top:-5px; left:0px;}
+.cb_list_decoration{border : 1px solid #BED6F8 /*panelBorderColor*/; padding : 0px; background : #FFFFFF; /*tableBackgroundColor*/}
+.cb_list_scroll{ overflow : auto; overflow-x : hidden; height : 100;}
+.cb_option{ padding : 2px; white-space : nowrap;}
+.cb_select{ padding : 1px; width : 100%; background-color: #DFE8F6; border : 1px dotted #a3bae9;/*generalTextColor*/}
+</style>
+</head>
+
+<body style="margin : 30px">
+
+<input class="cb_font cb_width">
+ <input type="Text" value="Input text or select option" class="cb_width cb_font cb_field" style="position: static">
+ <input type="Text" value="1px border" class="cb_width cb_font cb_field" style="border-width: 1px; position: static">
+
+<select class="cb_font cb_width">
+ <option>Item<option>
+ <option>Item<option>
+ <option>Item<option>
+ <option>Item<option>
+ <option>Item<option>
+</select>
+ <br><br>
+<div class="cb_width cb_font cb_shell">
+ <input type="Text" value="Input text or select option" class="cb_width cb_font cb_field">
+ <input readonly="" type="Text" value="" class="cb_button cb_font cb_button_bg">
+ <input readonly="" type="Text" value="" class="cb_button cb_font cb_button_arrow">
+ <input type="Text"class="cb_width cb_strut cb_font"><div class="cb_list_cord">
+ <div class="cb_list_position cb_width">
+ <div class="cb_list_decoration">
+ <div class="cb_list_scroll">
+ <div class="cb_option cb_font">Option 1</div>
+ <div class="cb_option cb_font">Option 2</div>
+ <div class="cb_option cb_font">Option 3</div>
+ <div class="cb_option cb_font">Option 4</div>
+ <div class="cb_option cb_font cb_select">Opt</div>
+ <div class="cb_option cb_font">Option 6</div>
+ <div class="cb_option cb_font">Option 7</div>
+ <div class="cb_option cb_font">Option 8</div>
+ <div class="cb_option cb_font">Option 9</div>
+ <div class="cb_option cb_font">Option 0</div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+
+
+
+</body>
+</html>
16 years, 12 months
JBoss Rich Faces SVN: r5095 - in trunk/sandbox/ui/combobox/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-12-28 14:50:41 -0500 (Fri, 28 Dec 2007)
New Revision: 5095
Added:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
Log:
filtering of data was added
Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2007-12-28 19:35:03 UTC (rev 5094)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2007-12-28 19:50:41 UTC (rev 5095)
@@ -1,8 +1,12 @@
if (!window.Richfaces) window.Richfaces = {};
Richfaces.ComboBox = Class.create();
+
Richfaces.ComboBox.prototype = {
- initialize: function(combobox, listId, fieldId, buttonId, classes, listWidth, listHeight, itemsText) {
+ initialize: function(combobox, listId, fieldId, buttonId, classes, listWidth, listHeight, itemsText, directInputSuggestions, filterNewValue) {
+ this.directInputSuggestions = directInputSuggestions;
+ this.filterNewValue = filterNewValue;
+
this.combobox = $(combobox);
this.comboList = new Richfaces.ComboBoxList(listId, classes, listWidth, listHeight, itemsText);
this.field = $(fieldId);
@@ -45,13 +49,48 @@
this.comboList.hide();
},
- setValue : function() {
- this.field.value = this.comboList.selectedItem.innerHTML;
+ setValue : function(toSetOnly) {
+ var value = this.comboList.selectedItem.innerHTML;
+ if (toSetOnly) {
+ this.field.value = value;
+ } else {
+ if (this.directInputSuggestions) {
+ var startInd = this.field.value.length;
+ var endInd = value.length;
+ this.field.value = value;
+ Richfaces.ComboBox.textboxSelect(this.field, startInd, endInd);
+ }
+ }
},
keyboardManager : function(event) {
- if ((event.keyCode == Event.KEY_UP) || (event.keyCode == Event.KEY_DOWN)) {
+ /*if ((event.keyCode == Event.KEY_UP) || (event.keyCode == Event.KEY_DOWN)) {
this.comboList.moveSelectedItem(event);
+ } else if (event.keyCode == Event.KEY_RETURN) {
+ this.setValue(true);
+ this.comboList.hide();
+ Event.stop(event);
+ } else if (event.keyCode == Event.KEY_BACKSPACE) {
+ this.comboList.hide();
+ }*/
+
+ switch (event.keyCode) {
+ case Event.KEY_RETURN :
+ this.setValue(true);
+ this.comboList.hide();
+ Event.stop(event);
+ break;
+ case Event.KEY_BACKSPACE :
+ this.comboList.hide();
+ break;
+ case Event.KEY_DOWN :
+ this.comboList.moveSelectedItem(event);
+ break;
+ case Event.KEY_UP :
+ this.comboList.moveSelectedItem(event);
+ break;
+ default :
+ //this.dataUpdating(event);
}
},
@@ -60,12 +99,18 @@
},
dataUpdating : function(event) {
- //this.comboList.setItems(this.comboList.dataFilter(this.field.value));
- if ((event.keyCode != Event.KEY_UP) && (event.keyCode != Event.KEY_DOWN)) {
- this.comboList.dataFilter(this.field.value);
- this.comboList.show();
+ if (Richfaces.ComboBox.SPECIAL_KEYS.indexOf(event.keyCode) == -1) {
+ if (this.filterNewValue) {
+ this.comboList.dataFilter(this.field.value);
+ this.comboList.show();
+ } else {
+ //TODO
+ }
+
+ if (event.keyCode != Event.KEY_BACKSPACE ) {
+ this.setValue();
+ }
}
- this.setValue();
}
};
@@ -81,6 +126,7 @@
//this.items = this.getItems();
this.classes = classes;
+
this.selectedItem = null;
this.setSize(width, height);
@@ -238,6 +284,21 @@
return {left: x, top: y};
}
+Richfaces.ComboBox.textboxSelect = function(oTextbox, iStart, iEnd) {
+ if (Prototype.Browser.IE) {
+ var oRange = oTextbox.createTextRange();
+ oRange.moveStart("character", iStart);
+ oRange.moveEnd("character", -oTextbox.value.length + iEnd);
+ oRange.select();
+ } else if (Prototype.Browser.Gecko) {
+ oTextbox.setSelectionRange(iStart, iEnd);
+ }
+}
+
+Richfaces.ComboBox.SPECIAL_KEYS = [
+ Event.KEY_RETURN, Event.KEY_UP, Event.KEY_DOWN
+]
+
Richfaces.ComboBoxList.CLASSES = {
ITEM : {NORMAL : "rich-combobox-item rich-combobox-item-normal", SELECTED : "rich-combobox-item rich-combobox-item-selected"},
LIST : {}
Added: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/comboboxUtils.js
===================================================================
Modified: trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2007-12-28 19:35:03 UTC (rev 5094)
+++ trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2007-12-28 19:50:41 UTC (rev 5095)
@@ -14,6 +14,7 @@
<f:resource name="org.richfaces.renderkit.images.ComboBoxImage" var="combo_img" />
<h:scripts>
new org.ajax4jsf.javascript.PrototypeScript(),
+ scripts/comboboxUtils.js,
scripts/combobox.js
</h:scripts>
@@ -36,6 +37,6 @@
"list#{clientId}",
"comboboxField#{clientId}",
"comboboxButton#{clientId}", Richfaces.ComboBoxList.CLASSES, 100, 150,
- #{this:getItemsTextAsJSArray(context, component)});
+ #{this:getItemsTextAsJSArray(context, component)}, true, true);
</script>
</f:root>
\ No newline at end of file
16 years, 12 months
JBoss Rich Faces SVN: r5094 - in trunk/ui/scrollableDataTable/src: main/java/org/richfaces/renderkit/html and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-12-28 14:35:03 -0500 (Fri, 28 Dec 2007)
New Revision: 5094
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererStateTest.java
trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererTest.java
Log:
merged scrollable-data-table with 3/1/x branch
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2007-12-28 18:47:28 UTC (rev 5093)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2007-12-28 19:35:03 UTC (rev 5094)
@@ -391,7 +391,7 @@
private void checkRange() {
int rows = getRows();
- if (getRowCount() <= getFirst() + getRows()) {
+ if (getRowCount() < getFirst() + rows) {
setFirst(0);
setScrollPos("0,0," + rows);
}
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-12-28 18:47:28 UTC (rev 5093)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-12-28 19:35:03 UTC (rev 5094)
@@ -263,7 +263,6 @@
if(grid.isRowAvailable() || state.isFake()){
String row_id;
- String fakeClass = state.isFake() ? "fake " : "";
int index = state.getRowIndex();
@@ -281,8 +280,7 @@
writer.startElement(HTML.TR_ELEMENT, grid);
state.setFrozenColumnCount(ScrollableDataTableUtils.getFrozenColumnsCount(grid));
getUtils().writeAttribute(writer, "id",row_id);
-
- getUtils().writeAttribute(writer, "class","dr-sdt-rb rich-sdt-row " + fakeClass + state.getRowClass(index));
+ getUtils().writeAttribute(writer, "class","dr-sdt-rb rich-sdt-row " + state.getRowClass());
addRowJavascriptEvents(writer, grid);
if (log.isDebugEnabled()) {
log.debug("rowIndex : " + index);
@@ -344,7 +342,7 @@
row_id = baseClientId + ":f:" + state.getRowIndex();
writer.startElement("tr", grid);
- getUtils().writeAttribute(writer, "class","dr-sdt-rb rich-sdt-row" + state.getRowClass(state.getRowIndex()));
+ getUtils().writeAttribute(writer, "class","dr-sdt-rb rich-sdt-row" + state.getRowClass());
getUtils().writeAttribute(writer,"id",row_id);
addRowJavascriptEvents(writer, grid);
collection.add(row_id);
@@ -399,7 +397,7 @@
writer.startElement("tr", grid);
getUtils().writeAttribute(writer,"id",row_id);
- getUtils().writeAttribute(writer, "class","dr-sdt-rb rich-sdt-row" + state.getRowClass(state.getRowIndex()));
+ getUtils().writeAttribute(writer, "class","dr-sdt-rb rich-sdt-row" + state.getRowClass());
addRowJavascriptEvents(writer, grid);
collection.add(row_id);
}
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java 2007-12-28 18:47:28 UTC (rev 5093)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java 2007-12-28 19:35:03 UTC (rev 5094)
@@ -413,7 +413,11 @@
}
}
- public String getRowClass(int index) {
+ public String getRowClass() {
+ return getRowClass(getRowIndex()) + (isFake() ? " dr-sdt-fake-r rich-sdt-fake-r " : "");
+ }
+
+ private String getRowClass(int index) {
if(rowClasses != null) {
return rowClasses[index % rowClassesSize];
} else {
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-12-28 18:47:28 UTC (rev 5093)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-12-28 19:35:03 UTC (rev 5094)
@@ -718,7 +718,7 @@
var y = index*this.defaultRowHeight;
this.scrollBox.getElement().scrollTop = y;
this.currentPos = 0;
- this._onContentVScroll(this.scrollBox.getElement().scrollTop);
+ this._onContentVScroll({memo:{pos:y}});
}
}
},
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2007-12-28 18:47:28 UTC (rev 5093)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2007-12-28 19:35:03 UTC (rev 5094)
@@ -123,7 +123,7 @@
var ids = this.grid.options.ids;
var count = this.frozenCells.length;
for(i=0; i<count; i++) {
- cell = this.cells[i];
+ cell = this.frozenCells[i];
columns[j] = {
columnId: ids[i],
col: cols[i],
Modified: trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererStateTest.java
===================================================================
--- trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererStateTest.java 2007-12-28 18:47:28 UTC (rev 5093)
+++ trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererStateTest.java 2007-12-28 19:35:03 UTC (rev 5094)
@@ -196,7 +196,8 @@
public void testRowClass() {
String rowClasses = "1,2,3";
state.setRowClasses(rowClasses);
- assertEquals("2", state.getRowClass(1));
+ state.setRowIndex(1);
+ assertEquals("2", state.getRowClass());
}
public void testIds() {
Modified: trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererTest.java
===================================================================
--- trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererTest.java 2007-12-28 18:47:28 UTC (rev 5093)
+++ trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererTest.java 2007-12-28 19:35:03 UTC (rev 5094)
@@ -115,7 +115,7 @@
}
static final Set tagNames = new HashSet();
- static final String [] names = {"input","div","script"};
+ static final String [] names = {"input","div","script", "table", "tbody", "tr", "td", "thead", "tfoot", "th"};
static {
Collections.addAll(tagNames, names);
}
@@ -128,7 +128,7 @@
HtmlElement div = page.getHtmlElementById(grid.getClientId(facesContext));
assertNotNull(div);
- assertEquals("div", div.getNodeName());
+ assertEquals("table", div.getNodeName());
String classAttr = div.getAttributeValue("class");
assertTrue(classAttr.contains("dr-sdt"));
16 years, 12 months
JBoss Rich Faces SVN: r5093 - management/design/comboBox/markup.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-12-28 13:47:28 -0500 (Fri, 28 Dec 2007)
New Revision: 5093
Modified:
management/design/comboBox/markup/comboBoxNick.html
Log:
combo box design variant committed
Modified: management/design/comboBox/markup/comboBoxNick.html
===================================================================
--- management/design/comboBox/markup/comboBoxNick.html 2007-12-28 18:29:00 UTC (rev 5092)
+++ management/design/comboBox/markup/comboBoxNick.html 2007-12-28 18:47:28 UTC (rev 5093)
@@ -8,9 +8,9 @@
.cb_font{ font-size : 11px/*generalSizeFont*/; font-family : arial/*generalFamilyFont*/; color : #000000/*generalTextColor*/}
.cb_shell{ position : relative;}
.cb_field{ position : absolute; top : 0px; left : 0; padding-right :20px; padding-left :3px; margin : 0px; border : 1px solid #c0c0c0; background-image: url(SpinnerFieldGradient.gif); background-position:left top;
-background-repeat:repeat-x; border-color: #BED6F8 rgb(255, 255, 255) rgb(255, 255, 255) rgb(190, 214, 248); } /*panelBorderColor*/
+background-repeat:repeat-x; border-color: #BED6F8 rgb(255, 255, 255) #BED6F8 rgb(190, 214, 248); } /*panelBorderColor*/
.cb_strut{ position : relative; visibility : hidden; margin : 0px; padding : 2px;}
-.cb_button{ position : absolute; top : 0px; right : 0; width : 17px; margin : 0px; border : 1px solid #c0c0c0; border-color: #BED6F8 rgb(190, 214, 248) rgb(255, 255, 255) rgb(190, 214, 248); } /*panelBorderColor*/
+.cb_button{ position : absolute; top : 0px; right : 0; width : 17px; margin : 0px; border : 1px solid #c0c0c0; border-color: #BED6F8 rgb(190, 214, 248) #BED6F8 rgb(190, 214, 248); } /*panelBorderColor*/
.cb_button_bg{ background : url(images/bg_btn.png) top repeat-x #C7D7EC;} /*gradient - from generalBackgroundColor to tabBackgroundColor, background-color - tabBackgroundColor*/
.cb_button_bg_press{ background : url(images/bg_press.png) repeat-x bottom #C7D7EC} /*gradient - from tabBackgroundColor to generalBackgroundColor, background-color - tabBackgroundColor*/
.cb_button_arrow{ background : url(images/down.gif) center no-repeat; cursor : pointer;}
16 years, 12 months
JBoss Rich Faces SVN: r5092 - management/design/comboBox/markup.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-12-28 13:29:00 -0500 (Fri, 28 Dec 2007)
New Revision: 5092
Added:
management/design/comboBox/markup/SpinnerFieldGradient.gif
management/design/comboBox/markup/comboBoxNick.html
Modified:
management/design/comboBox/markup/comboBox.html
Log:
combo box design variant committed
Added: management/design/comboBox/markup/SpinnerFieldGradient.gif
===================================================================
(Binary files differ)
Property changes on: management/design/comboBox/markup/SpinnerFieldGradient.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: management/design/comboBox/markup/comboBox.html
===================================================================
--- management/design/comboBox/markup/comboBox.html 2007-12-28 17:32:11 UTC (rev 5091)
+++ management/design/comboBox/markup/comboBox.html 2007-12-28 18:29:00 UTC (rev 5092)
@@ -25,6 +25,8 @@
<body style="margin : 30px">
+<input class="cb_font cb_width" />
+
<select class="cb_font cb_width">
<option>Item<option>
<option>Item<option>
Added: management/design/comboBox/markup/comboBoxNick.html
===================================================================
--- management/design/comboBox/markup/comboBoxNick.html (rev 0)
+++ management/design/comboBox/markup/comboBoxNick.html 2007-12-28 18:29:00 UTC (rev 5092)
@@ -0,0 +1,67 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+<html>
+<head>
+ <title>Untitled</title>
+<style>
+.cb_width{ width : 150px;}
+.cb_font{ font-size : 11px/*generalSizeFont*/; font-family : arial/*generalFamilyFont*/; color : #000000/*generalTextColor*/}
+.cb_shell{ position : relative;}
+.cb_field{ position : absolute; top : 0px; left : 0; padding-right :20px; padding-left :3px; margin : 0px; border : 1px solid #c0c0c0; background-image: url(SpinnerFieldGradient.gif); background-position:left top;
+background-repeat:repeat-x; border-color: #BED6F8 rgb(255, 255, 255) rgb(255, 255, 255) rgb(190, 214, 248); } /*panelBorderColor*/
+.cb_strut{ position : relative; visibility : hidden; margin : 0px; padding : 2px;}
+.cb_button{ position : absolute; top : 0px; right : 0; width : 17px; margin : 0px; border : 1px solid #c0c0c0; border-color: #BED6F8 rgb(190, 214, 248) rgb(255, 255, 255) rgb(190, 214, 248); } /*panelBorderColor*/
+.cb_button_bg{ background : url(images/bg_btn.png) top repeat-x #C7D7EC;} /*gradient - from generalBackgroundColor to tabBackgroundColor, background-color - tabBackgroundColor*/
+.cb_button_bg_press{ background : url(images/bg_press.png) repeat-x bottom #C7D7EC} /*gradient - from tabBackgroundColor to generalBackgroundColor, background-color - tabBackgroundColor*/
+.cb_button_arrow{ background : url(images/down.gif) center no-repeat; cursor : pointer;}
+
+.cb_list_cord{ position : relative; font-size : 0px;d!isplay : none}/*DDL is hidden!!!!!*/
+.cb_list_position{ position : absolute; top:-5px; left:0px;}
+.cb_list_decoration{border : 1px solid #BED6F8 /*panelBorderColor*/; padding : 0px; background : #FFFFFF; /*tableBackgroundColor*/}
+.cb_list_scroll{ overflow : auto; overflow-x : hidden; height : 100;}
+.cb_option{ padding : 2px; white-space : nowrap;}
+.cb_select{ padding : 1px; width : 100%; background-color: #DFE8F6; border : 1px dotted #a3bae9;/*generalTextColor*/}
+</style>
+</head>
+
+<body style="margin : 30px">
+
+<input class="cb_font cb_width">
+
+<select class="cb_font cb_width">
+ <option>Item<option>
+ <option>Item<option>
+ <option>Item<option>
+ <option>Item<option>
+ <option>Item<option>
+</select>
+ <br><br>
+<div class="cb_width cb_font cb_shell">
+ <input type="Text" value="Input text or select option" class="cb_width cb_font cb_field">
+ <input readonly="" type="Text" value="" class="cb_button cb_font cb_button_bg">
+ <input readonly="" type="Text" value="" class="cb_button cb_font cb_button_arrow">
+ <input type="Text"class="cb_width cb_strut cb_font"><div class="cb_list_cord">
+ <div class="cb_list_position cb_width">
+ <div class="cb_list_decoration">
+ <div class="cb_list_scroll">
+ <div class="cb_option cb_font">Option 1</div>
+ <div class="cb_option cb_font">Option 2</div>
+ <div class="cb_option cb_font">Option 3</div>
+ <div class="cb_option cb_font">Option 4</div>
+ <div class="cb_option cb_font cb_select">Opt</div>
+ <div class="cb_option cb_font">Option 6</div>
+ <div class="cb_option cb_font">Option 7</div>
+ <div class="cb_option cb_font">Option 8</div>
+ <div class="cb_option cb_font">Option 9</div>
+ <div class="cb_option cb_font">Option 0</div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+
+
+
+</body>
+</html>
16 years, 12 months
JBoss Rich Faces SVN: r5091 - branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-12-28 12:32:11 -0500 (Fri, 28 Dec 2007)
New Revision: 5091
Modified:
branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
RF-1800
Modified: branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-12-28 17:20:22 UTC (rev 5090)
+++ branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-12-28 17:32:11 UTC (rev 5091)
@@ -498,9 +498,10 @@
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
JSFunction result = new JSFunction("new Date");
- result.addParameter(Integer.valueOf(calendar.get(Calendar.YEAR)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.MONTH)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.DATE)));
+ //Fix for jdk 1.4 compatibility.
+ result.addParameter(new Integer(calendar.get(Calendar.YEAR)));
+ result.addParameter(new Integer(calendar.get(Calendar.MONTH)));
+ result.addParameter(new Integer(calendar.get(Calendar.DATE)));
return result;
}
@@ -509,11 +510,12 @@
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
JSFunction result = new JSFunction("new Date");
- result.addParameter(Integer.valueOf(calendar.get(Calendar.YEAR)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.MONTH)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.DATE)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.HOUR_OF_DAY)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.MINUTE)));
+ //Fix for jdk 1.4 compatibility.
+ result.addParameter(new Integer(calendar.get(Calendar.YEAR)));
+ result.addParameter(new Integer(calendar.get(Calendar.MONTH)));
+ result.addParameter(new Integer(calendar.get(Calendar.DATE)));
+ result.addParameter(new Integer(calendar.get(Calendar.HOUR_OF_DAY)));
+ result.addParameter(new Integer(calendar.get(Calendar.MINUTE)));
result.addParameter(new Integer(0));
return result;
}
16 years, 12 months
JBoss Rich Faces SVN: r5090 - branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-12-28 12:20:22 -0500 (Fri, 28 Dec 2007)
New Revision: 5090
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
Log:
PS-134
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2007-12-28 17:01:56 UTC (rev 5089)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2007-12-28 17:20:22 UTC (rev 5090)
@@ -391,7 +391,7 @@
private void checkRange() {
int rows = getRows();
- if (getRowCount() <= getFirst() + getRows()) {
+ if (getRowCount() < getFirst() + rows) {
setFirst(0);
setScrollPos("0,0," + rows);
}
16 years, 12 months
JBoss Rich Faces SVN: r5089 - trunk/sandbox/samples/pickList-sample/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-12-28 12:01:56 -0500 (Fri, 28 Dec 2007)
New Revision: 5089
Modified:
trunk/sandbox/samples/pickList-sample/src/main/webapp/WEB-INF/web.xml
Log:
Modified: trunk/sandbox/samples/pickList-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/pickList-sample/src/main/webapp/WEB-INF/web.xml 2007-12-28 17:01:28 UTC (rev 5088)
+++ trunk/sandbox/samples/pickList-sample/src/main/webapp/WEB-INF/web.xml 2007-12-28 17:01:56 UTC (rev 5089)
@@ -6,6 +6,10 @@
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
16 years, 12 months
JBoss Rich Faces SVN: r5088 - trunk/sandbox/ui/pickList/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-12-28 12:01:28 -0500 (Fri, 28 Dec 2007)
New Revision: 5088
Modified:
trunk/sandbox/ui/pickList/src/main/config/component/picklist.xml
Log:
add additional properties
Modified: trunk/sandbox/ui/pickList/src/main/config/component/picklist.xml
===================================================================
--- trunk/sandbox/ui/pickList/src/main/config/component/picklist.xml 2007-12-28 17:01:05 UTC (rev 5087)
+++ trunk/sandbox/ui/pickList/src/main/config/component/picklist.xml 2007-12-28 17:01:28 UTC (rev 5088)
@@ -62,10 +62,55 @@
<name>validator</name>
<classname>javax.el.MethodExpression</classname>
<methodargs>javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object</methodargs>
-
</property>
+ <property>
+ <name>value</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ &ui_component_attributes;
+ &html_universal_attributes;
+ &html_events;
+ &html_control_events;
+ <property>
+ <name>enabledClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>disabledClass</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>forceId</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>forceIndex</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>onSuccess</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>onFailure</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+ <property>
+ <name>onStart</name>
+ <classname>java.lang.String</classname>
+ </property>
+
+
+
</properties>
</component>
16 years, 12 months
JBoss Rich Faces SVN: r5087 - trunk/sandbox/ui/pickList/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-12-28 12:01:05 -0500 (Fri, 28 Dec 2007)
New Revision: 5087
Modified:
trunk/sandbox/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java
Log:
Remove is Rendered
Modified: trunk/sandbox/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java
===================================================================
--- trunk/sandbox/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java 2007-12-28 17:00:17 UTC (rev 5086)
+++ trunk/sandbox/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java 2007-12-28 17:01:05 UTC (rev 5087)
@@ -10,13 +10,7 @@
//TODO forceId?
return super.getClientId(context);
}
-
- @Override
- public boolean isRendered() {
- // TODO userRoles?
- return super.isRendered();
- }
-
+
public abstract boolean isDisplayValueOnly();
public abstract void setDisplayValueOnly(boolean displayValueOnly);
16 years, 12 months