JBoss Rich Faces SVN: r22008 - in branches/4.0.X/ui/validator/ui/src: test/java/org/richfaces/javascript/client/converter and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2011-03-01 17:55:34 -0500 (Tue, 01 Mar 2011)
New Revision: 22008
Modified:
branches/4.0.X/ui/validator/ui/src/main/resources/META-INF/resources/org.richfaces/richfaces-csv.js
branches/4.0.X/ui/validator/ui/src/test/java/org/richfaces/javascript/client/converter/BooleanConverterTest.java
Log:
RESOLVED - issue RF-10629: CSV: boolean validation never returns valid
https://issues.jboss.org/browse/RF-10629
Modified: branches/4.0.X/ui/validator/ui/src/main/resources/META-INF/resources/org.richfaces/richfaces-csv.js
===================================================================
--- branches/4.0.X/ui/validator/ui/src/main/resources/META-INF/resources/org.richfaces/richfaces-csv.js 2011-03-01 22:55:29 UTC (rev 22007)
+++ branches/4.0.X/ui/validator/ui/src/main/resources/META-INF/resources/org.richfaces/richfaces-csv.js 2011-03-01 22:55:34 UTC (rev 22008)
@@ -3,12 +3,10 @@
rf.csv = rf.csv || {};
var _messages = {};
- var _validators = {};
- var _converters = {};
var RE_MESSAGE_PATTERN = /\'?\{(\d+)\}\'?/g;
- var __interpolateMessage = function (message, values) {
+ var interpolateMessage = function (message, values) {
if (message) {
var msgObject = message.replace(RE_MESSAGE_PATTERN,"\n$1\n").split("\n");
var value;
@@ -21,17 +19,105 @@
return "";
}
}
-
- var __getValue = function(id) {
+ var _value_query = function(control){
+ if(null !== control.value && undefined != control.value){
+ return control.value;
+ } else {
+ return "";
+ }
+ };
+
+ var _check_query = function(control){
+ if( control.checked ) {
+ return true;
+ } else {
+ return false;
+ }
+ };
+
+ var _addOption = function(value,option){
+ if ( option.selected ){
+ return value[value.length]=option.value;
+ }
+
+ };
+
+ var valueExtractors = {
+ hidden : function(control){
+ return _value_query(control);
+ },
+
+ text : function(control){
+ return _value_query(control);
+ },
+
+ textarea : function(control){
+ return _value_query(control);
+ },
+
+ 'select-one' : function(control){
+ if (control.selectedIndex != -1) {
+ return _value_query(control);
+ }
+ },
+
+ password : function(control){
+ return _value_query(control);
+ },
+
+ file : function(control){
+ return _value_query(control);
+ },
+
+ radio : function(control){
+ return _check_query(control);
+ },
+
+ checkbox : function(control){
+ return _check_query(control);
+ },
+
+
+ 'select-multiple' : function(control){
+ var cname = control.name;
+ var childs = control.childNodes;
+ var value = [];
+ for( var i=0 ;i< childs.length;i++ ){
+ var child=childs[i];
+ if( child.tagName === 'OPTGROUP' ){
+ var options = child.childNodes;
+ for(var j=0; j < options.length; j++){
+ value = _addOption(value, options[j]);
+ }
+ } else {
+ value =_addOption(value, child);
+ }
+ }
+ return value;
+ },
+
+ // command inputs
+
+
+ // same as link, but have additional field - control, for input
+ // submit.
+ input : function(control){
+ return _value_query(control);
+ }
+ };
+
+ var getValue = function(id) {
var value;
var element = rf.getDomElement(id);
- if (element.value) {
+ if (valueExtractors[element.type]) {
+ value = valueExtractors[element.type](element);
+ } else if(undefined !== element.value ){
value = element.value;
} else {
var component = rf.$(element);
// TODO: add getValue to baseComponent and change jsdocs
- value = component && typeof component["getValue"] == "function" ? component.getValue() : "";
+ value = component && typeof component["getValue"] === "function" ? component.getValue() : "";
}
return value;
}
@@ -52,10 +138,10 @@
},
getMessage: function(customMessage, messageId, values) {
var message = customMessage ? customMessage : _messages[messageId] || {detail:"",summary:"",severity:0};
- return {detail:__interpolateMessage(message.detail,values),summary:__interpolateMessage(message.summary,values),severity:message.severity};
+ return {detail:interpolateMessage(message.detail,values),summary:interpolateMessage(message.summary,values),severity:message.severity};
},
interpolateMessage: function(message,values){
- return {detail:__interpolateMessage(message.detail,values),summary:__interpolateMessage(message.summary,values),severity:message.severity};
+ return {detail:interpolateMessage(message.detail,values),summary:interpolateMessage(message.summary,values),severity:message.severity};
},
sendMessage: function (componentId, message) {
rf.Event.fire(window.document, rf.Event.MESSAGE_EVENT_TYPE, {'sourceId':componentId, 'message':message});
@@ -64,7 +150,7 @@
rf.Event.fire(window.document, rf.Event.MESSAGE_EVENT_TYPE, {'sourceId':componentId });
},
validate: function (event, id, element, params) {
- var value = __getValue(element || id);
+ var value = getValue(element || id);
var convertedValue;
var converter = params.c;
rf.csv.clearMessage(id);
@@ -131,10 +217,15 @@
*/
$.extend(rf.csv, {
"convertBoolean": function (value,label,params,msg) {
- var result; value = $.trim(value).toLowerCase();
- result = value=='true' ? true : value.length<1 ? null : false;
-
- return result;
+ if( typeof value === "string"){
+ var lcvalue = $.trim(value).toLowerCase();
+ if(lcvalue === 'on' || lcvalue==='true' || lcvalue=== 'yes'){
+ return true;
+ }
+ } else if(true === value){
+ return true;
+ }
+ return false;
},
"convertDate": function (value,label,params,msg) {
var result; value = $.trim(value);
@@ -207,7 +298,7 @@
$.extend(rf.csv, {
"validateLongRange": function (value,label,params,msg) {
var type = typeof value;
- if (type != "number") {
+ if (type !== "number") {
if (type != "string") {
throw rf.csv.getMessage(msg, 'LONG_RANGE_VALIDATOR_TYPE', [componentId, ""]);
} else {
@@ -222,8 +313,8 @@
},
"validateDoubleRange": function (value,label,params,msg) {
var type = typeof value;
- if (type != "number") {
- if (type != "string") {
+ if (type !== "number") {
+ if (type !== "string") {
throw rf.csv.getMessage(msg, 'DOUBLE_RANGE_VALIDATOR_TYPE', [componentId, ""]);
} else {
value = $.trim(value);
@@ -255,12 +346,12 @@
}
},
"validateTrue": function (value,label,params,msg) {
- if (!value ) {
+ if ( value !== true ) {
throw msg;
}
},
"validateFalse": function (value,label,params,msg) {
- if (value ) {
+ if (value !== false) {
throw msg;
}
},
Modified: branches/4.0.X/ui/validator/ui/src/test/java/org/richfaces/javascript/client/converter/BooleanConverterTest.java
===================================================================
--- branches/4.0.X/ui/validator/ui/src/test/java/org/richfaces/javascript/client/converter/BooleanConverterTest.java 2011-03-01 22:55:29 UTC (rev 22007)
+++ branches/4.0.X/ui/validator/ui/src/test/java/org/richfaces/javascript/client/converter/BooleanConverterTest.java 2011-03-01 22:55:34 UTC (rev 22008)
@@ -26,6 +26,6 @@
@Parameters
public static List<RunParameters[]> getRunParameterss() {
- return options(pass("true"), pass("ok"), pass("123"),pass("0"),pass("1"));
+ return options(pass("true"), pass("ok"), pass("123"),pass("0"),pass("1"),pass("no"));
}
}
13 years, 10 months
JBoss Rich Faces SVN: r22007 - in branches/4.0.X/examples/validator-demo/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2011-03-01 17:55:29 -0500 (Tue, 01 Mar 2011)
New Revision: 22007
Added:
branches/4.0.X/examples/validator-demo/src/main/java/org/richfaces/example/BooleanBean.java
Modified:
branches/4.0.X/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml
branches/4.0.X/examples/validator-demo/src/main/webapp/examples/beanValidation.xhtml
Log:
RESOLVED - issue RF-10629: CSV: boolean validation never returns valid
https://issues.jboss.org/browse/RF-10629
Added: branches/4.0.X/examples/validator-demo/src/main/java/org/richfaces/example/BooleanBean.java
===================================================================
--- branches/4.0.X/examples/validator-demo/src/main/java/org/richfaces/example/BooleanBean.java (rev 0)
+++ branches/4.0.X/examples/validator-demo/src/main/java/org/richfaces/example/BooleanBean.java 2011-03-01 22:55:29 UTC (rev 22007)
@@ -0,0 +1,41 @@
+/**
+ *
+ */
+package org.richfaces.example;
+
+import javax.validation.constraints.AssertTrue;
+
+
+/**
+ * @author asmirnov
+ *
+ */
+public class BooleanBean extends Validable<Boolean> {
+
+ @AssertTrue()
+ private Boolean value = false;
+
+ /**
+ * @return the intValue
+ */
+ public Boolean getValue() {
+ return value;
+ }
+
+ /**
+ * @param intValue the intValue to set
+ */
+ public void setValue(Boolean intValue) {
+ this.value = intValue;
+ }
+
+
+ public String getDescription() {
+ return "Boolean Value, should be true";
+ }
+
+ public String getLabel() {
+ return "assertTrue";
+ }
+
+}
Property changes on: branches/4.0.X/examples/validator-demo/src/main/java/org/richfaces/example/BooleanBean.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: branches/4.0.X/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/4.0.X/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml 2011-03-01 17:48:42 UTC (rev 22006)
+++ branches/4.0.X/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml 2011-03-01 22:55:29 UTC (rev 22007)
@@ -16,6 +16,11 @@
<managed-bean-class>org.richfaces.example.DataBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+<managed-bean>
+ <managed-bean-name>booleanBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.example.BooleanBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+</managed-bean>
<validator>
<validator-id>custom</validator-id>
<validator-class>org.richfaces.example.CustomValidator</validator-class>
Modified: branches/4.0.X/examples/validator-demo/src/main/webapp/examples/beanValidation.xhtml
===================================================================
--- branches/4.0.X/examples/validator-demo/src/main/webapp/examples/beanValidation.xhtml 2011-03-01 17:48:42 UTC (rev 22006)
+++ branches/4.0.X/examples/validator-demo/src/main/webapp/examples/beanValidation.xhtml 2011-03-01 22:55:29 UTC (rev 22007)
@@ -15,12 +15,17 @@
<h:form id="form">
<h:panelGrid columns="3">
<c:forEach items="#{dataBean.beans}" var="bean">
- <h:outputLabel for="#{bean.label}" value="#{bean.description}" />
- <h:inputText id="#{bean.label}" value="#{bean.value}" label="#{bean.label}" converter="#{bean.converter}">
+ <h:outputLabel for="${bean.label}" value="#{bean.description}" />
+ <h:inputText id="${bean.label}" value="#{bean.value}" label="#{bean.label}" converter="#{bean.converter}">
<csv:validator summary="Invalid value" />
</h:inputText>
- <csv:message for="#{bean.label}" />
+ <csv:message for="${bean.label}" />
</c:forEach>
+ <h:outputLabel for="assertTrue" value="#{booleanBean.description}" />
+ <h:selectBooleanCheckbox id="assertTrue" value="#{booleanBean.value}" label="#{booleanBean.label}" >
+ <csv:validator summary="Required checkbox" />
+ </h:selectBooleanCheckbox>
+ <csv:message for="assertTrue" />
</h:panelGrid>
<h:commandButton value="Submit"></h:commandButton>
<csv:messages />
13 years, 10 months
JBoss Rich Faces SVN: r22006 - branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2011-03-01 12:48:42 -0500 (Tue, 01 Mar 2011)
New Revision: 22006
Modified:
branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuItem.js
Log:
https://jira.jboss.org/browse/RF-10563
https://jira.jboss.org/browse/RF-10486
reviewed and additional tested by Anton Belevich
Modified: branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuItem.js
===================================================================
--- branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuItem.js 2011-03-01 16:01:27 UTC (rev 22005)
+++ branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuItem.js 2011-03-01 17:48:42 UTC (rev 22006)
@@ -203,7 +203,7 @@
* @return {void} TODO ...
*/
select: function () {
- var continueProcess = this.__fireEvent("beforeSelect");
+ var continueProcess = this.__fireBeforeSelect();
if (!continueProcess) {
return false;
}
@@ -300,6 +300,12 @@
__unselect: function () {
this.__header().removeClass(this.selectionClass);
},
+
+ __fireBeforeSelect : function () {
+ return rf.Event.fireById(this.id, "beforeselect", {
+ item: this
+ });
+ },
__fireSelect : function () {
return rf.Event.fireById(this.id, "select", {
13 years, 10 months
JBoss Rich Faces SVN: r22005 - branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2011-03-01 11:01:27 -0500 (Tue, 01 Mar 2011)
New Revision: 22005
Modified:
branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenu.js
branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js
branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuItem.js
Log:
RF-10626 Panel Menu - @expandSingle doesn't work
Modified: branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenu.js
===================================================================
--- branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenu.js 2011-03-01 14:27:15 UTC (rev 22004)
+++ branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenu.js 2011-03-01 16:01:27 UTC (rev 22005)
@@ -51,19 +51,6 @@
this.activeItem = this.__getValueInput().value;
this.nestingLevel = 0;
- var menuGroup = this;
- if (menuGroup.options.expandSingle) {
- menuGroup.__panelMenu().bind("expand", function (event) {
- menuGroup.__childGroups().each (function (index, group) {
- if (event.target.id != group.id) {
- rf.$(group.id).__collapse();
- }
- });
-
- event.stopPropagation();
- });
- }
-
this.__addUserEventHandler("collapse");
this.__addUserEventHandler("expand");
},
@@ -208,6 +195,16 @@
return item.itemName == this.activeItem;
},
+ __collapseGroups : function (event) {
+ var topGroup = rf.$(event.target.id).__rfTopGroup();
+ this.__childGroups().each (function (index, group) {
+ if (group.id != event.target.id && (!topGroup || group.id != topGroup.id)) {
+ rf.$(group.id).__collapse();
+ }
+ });
+
+ },
+
destroy: function () {
rf.Event.unbindById(this.id, "."+this.namespace);
$super.destroy.call(this);
Modified: branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js
===================================================================
--- branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js 2011-03-01 14:27:15 UTC (rev 22004)
+++ branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js 2011-03-01 16:01:27 UTC (rev 22005)
@@ -204,20 +204,10 @@
}
if (menuGroup.options.expandSingle) {
+ var component = this;
menuGroup.__group().bind("expand", function (event) {
- if (menuGroup.__isMyEvent(event)) {
- return;
- }
-
- menuGroup.__childGroups().each (function (index, group) {
- var rfGroup = rf.$(group);
- if (!rfGroup.__isMyEvent(event)) {
- rfGroup.collapse();
- }
- });
-
- //TODO nick - why?
- event.stopPropagation();
+ component.__rfPanelMenu().__collapseGroups(event);
+ event.stopPropagation();
});
}
Modified: branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuItem.js
===================================================================
--- branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuItem.js 2011-03-01 14:27:15 UTC (rev 22004)
+++ branches/4.0.X/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuItem.js 2011-03-01 16:01:27 UTC (rev 22005)
@@ -326,6 +326,11 @@
rf.Event.bindById(this.id, name, handler);
}
},
+
+ __rfTopGroup : function () {
+ var res = this.__item().parents(".rf-pm-top-gr")[0];
+ return res ? res : null;
+ },
destroy: function () {
var panelMenu = this.__rfPanelMenu();
13 years, 10 months
JBoss Rich Faces SVN: r22004 - in branches/4.0.X/ui/output/ui/src: test/resources/org/richfaces/renderkit/html and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2011-03-01 09:27:15 -0500 (Tue, 01 Mar 2011)
New Revision: 22004
Modified:
branches/4.0.X/ui/output/ui/src/main/java/org/richfaces/renderkit/html/TabPanelRenderer.java
branches/4.0.X/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xmlunit.xml
branches/4.0.X/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xmlunit.xml
Log:
https://issues.jboss.org/browse/RF-10634 Tab panel: attribute style doesn't work correctly. The fix was reviewed by Gleb Galkin.
Modified: branches/4.0.X/ui/output/ui/src/main/java/org/richfaces/renderkit/html/TabPanelRenderer.java
===================================================================
--- branches/4.0.X/ui/output/ui/src/main/java/org/richfaces/renderkit/html/TabPanelRenderer.java 2011-03-01 13:51:45 UTC (rev 22003)
+++ branches/4.0.X/ui/output/ui/src/main/java/org/richfaces/renderkit/html/TabPanelRenderer.java 2011-03-01 14:27:15 UTC (rev 22004)
@@ -140,7 +140,7 @@
@Override
protected String getStyle(UIComponent component) {
- return concatStyles(attributeAsString(component, "style"), "width: 100%;");
+ return attributeAsString(component, "style");
}
@Override
Modified: branches/4.0.X/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xmlunit.xml
===================================================================
--- branches/4.0.X/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xmlunit.xml 2011-03-01 13:51:45 UTC (rev 22003)
+++ branches/4.0.X/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xmlunit.xml 2011-03-01 14:27:15 UTC (rev 22004)
@@ -1,4 +1,4 @@
-<div id="f:tabPanel" class="rf-tbp" style="width: 100%;">
+<div id="f:tabPanel" class="rf-tbp">
<input type="hidden" value="tab" id="f:tabPanel-value" name="f:tabPanel-value"/>
<script type="text/javascript">
//<![CDATA[
Modified: branches/4.0.X/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xmlunit.xml
===================================================================
--- branches/4.0.X/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xmlunit.xml 2011-03-01 13:51:45 UTC (rev 22003)
+++ branches/4.0.X/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xmlunit.xml 2011-03-01 14:27:15 UTC (rev 22004)
@@ -1,4 +1,4 @@
-<div id="f:tabPanel" class="rf-tbp" style="width: 100%;">
+<div id="f:tabPanel" class="rf-tbp">
<input type="hidden" value="tab" id="f:tabPanel-value" name="f:tabPanel-value"/>
<script type="text/javascript">
//<![CDATA[
13 years, 10 months
JBoss Rich Faces SVN: r22000 - management/design-4x/dropDownMenu-new.
by richfaces-svn-commits@lists.jboss.org
Author: Ochikvina
Date: 2011-03-01 07:54:13 -0500 (Tue, 01 Mar 2011)
New Revision: 22000
Modified:
management/design-4x/dropDownMenu-new/dropDownMenu_new.html
Log:
RF-10631
Modified: management/design-4x/dropDownMenu-new/dropDownMenu_new.html
===================================================================
--- management/design-4x/dropDownMenu-new/dropDownMenu_new.html 2011-03-01 12:30:45 UTC (rev 21999)
+++ management/design-4x/dropDownMenu-new/dropDownMenu_new.html 2011-03-01 12:54:13 UTC (rev 22000)
@@ -23,8 +23,6 @@
/*--- RF DropDownMenu styles ---*/
.rf-ddm{
- font-family:Arial, Verdana, sans-serif;
- font-size:11px;
position:relative;
}
.rf-ddm-unsel {
@@ -53,7 +51,9 @@
position:absolute;
}
.rf-ddm-lbl {
- font-weight:bold;
+ font-family:Arial, Verdana, sans-serif; /*generalFamilyFont*/
+ font-size:11px; /*generalSizeFont*/
+ font-weight:bold; /*headerWeightFont*/
}
.rf-ddm-lst {
border:1px solid #BED6F8; /*panelBorderColor*/
@@ -73,8 +73,8 @@
.rf-ddm-itm {
padding : 1px 35px 1px 1px;
white-space : nowrap;
- font-family : verdana; /*generalFamilyFont*/
- font-size : 12px; /*generalSizeFont*/
+ font-family:Arial, Verdana, sans-serif; /*generalFamilyFont*/
+ font-size:11px; /*generalSizeFont*/
position : relative;
}
.rf-ddm-itm-unsel {
@@ -102,6 +102,7 @@
color : #000000; /*generalTextColor*/
display:inline-block;
text-decoration : none;
+ vertical-align:middle;
z-index:2;
}
.rf-ddm-sep {
13 years, 10 months
JBoss Rich Faces SVN: r21999 - management/design-4x/dropDownMenu-new.
by richfaces-svn-commits@lists.jboss.org
Author: Ochikvina
Date: 2011-03-01 07:30:45 -0500 (Tue, 01 Mar 2011)
New Revision: 21999
Modified:
management/design-4x/dropDownMenu-new/dropDownMenu_new.html
Log:
RF-10630
Modified: management/design-4x/dropDownMenu-new/dropDownMenu_new.html
===================================================================
--- management/design-4x/dropDownMenu-new/dropDownMenu_new.html 2011-03-01 09:18:10 UTC (rev 21998)
+++ management/design-4x/dropDownMenu-new/dropDownMenu_new.html 2011-03-01 12:30:45 UTC (rev 21999)
@@ -28,9 +28,15 @@
position:relative;
}
.rf-ddm-unsel {
- border:0 solid transparent;
+ border:1px solid transparent;
padding:3px 6px;
}
+ .rf-ddm-sel {
+ background : url(images/menu_item_bg.gif) /*from additionalBackgroundColor (top) to tabBackgroundColor (bottom)*/ repeat-x bottom left #ECF4FE /*additionalBackgroundColor*/;
+ border : 1px solid #BED6F8; /*headerBackgroundColor*/
+ cursor:pointer;
+ padding:3px 6px;
+ }
.rf-ddm{
height:auto;
padding:2px 5px;
@@ -50,7 +56,7 @@
font-weight:bold;
}
.rf-ddm-lst {
- border:1px solid #bfbfc0; /*panelBorderColor*/
+ border:1px solid #BED6F8; /*panelBorderColor*/
background-color: #e7f2fb; /*additionalBackgroundColor*/
min-width:250px;
position:absolute;
@@ -76,10 +82,10 @@
padding : 1px 36px 2px 2px;
}
.rf-ddm-itm-sel {
- border : 1px solid #4a70ab; /*headerBackgroundColor*/
+ background : url(images/menu_item_bg.gif) /*from additionalBackgroundColor (top) to tabBackgroundColor (bottom)*/ repeat-x bottom left #ECF4FE /*additionalBackgroundColor*/;
+ border : 1px solid #BED6F8; /*headerBackgroundColor*/
cursor : pointer;
padding : 1px 36px 2px 2px;
- background : url(menu_item_bg.gif) /*from additionalBackgroundColor (top) to tabBackgroundColor (bottom)*/ repeat-x top #a9c5e7;
z-index:10;
}
.rf-ddm-itm-dis {
@@ -100,7 +106,7 @@
}
.rf-ddm-sep {
font-size : 0px;
- border-top: 1px solid #bfbfc0; /*panelBorderColor*/
+ border-top: 1px solid #BED6F8; /*panelBorderColor*/
margin : 2px 0px 2px 24px;
}
.rf-ddm-nd {
@@ -129,7 +135,7 @@
<body>
<h1>DropDownMenu</h1>
- <div class="rf-ddm rf-ddm-unsel">
+ <div class="rf-ddm rf-ddm-unsel" onmouseover="this.className='rf-ddm rf-ddm-sel'" onmouseout="this.className='rf-ddm rf-ddm-unsel'">
<div class="rf-ddm-lbl">
<img width="16" height="16" class="icon" src="images/copy.gif" alt="Menu icon"/> File
</div>
13 years, 10 months