JBoss Rich Faces SVN: r19555 - in trunk/ui/input/ui/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-10-13 11:35:34 -0400 (Wed, 13 Oct 2010)
New Revision: 19555
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js
trunk/ui/input/ui/src/main/templates/inplaceSelect.template.xml
Log:
remove odd css class, fix selection, fix inplace specific popup behavior
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js 2010-10-13 15:01:05 UTC (rev 19554)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js 2010-10-13 15:35:34 UTC (rev 19555)
@@ -46,7 +46,7 @@
},
processItem: function(event, element) {
- var key = element.attr("id");
+ var key = $(element).attr("id");
var value = this.getItemValue(key);
this.saveItemValue(value);
@@ -54,7 +54,7 @@
//inplace label
this.setValue(label);
this.select.hide();
-
+ this.openPopup = false;
this.__setInputFocus();
},
@@ -114,7 +114,7 @@
__isPopupList: function(target) {
var parentId = target.parents(".rf-is-lst-cord").attr("id");
- return (parentId && (parentId == this.select.__getId()));
+ return (parentId && (parentId == this.select.getId()));
}
}
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js 2010-10-13 15:01:05 UTC (rev 19554)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js 2010-10-13 15:35:34 UTC (rev 19555)
@@ -8,13 +8,13 @@
this.popup = $(document.getElementById(id));
this.visible = options.visible;
- this.popup.bind("mouseover", $.proxy(this.__onMouseOver, this));
- this.popup.bind("click", $.proxy(this.__onClick, this));
+ this.popup.bind("mouseover", $.proxy(this.__onMouseOver, this));
+ this.popup.bind("click", $.proxy(this.__onClick, this));
};
rf.BaseComponent.extend(rf.ui.Popup);
var $super = rf.ui.Popup.$super;
-
+
$.extend(rf.ui.Popup.prototype, (function () {
return{
@@ -22,12 +22,12 @@
name : "popup",
show: function() {
- this.popup.css("display", "");
+ this.popup.css('display', '');
this.visible = true;
},
hide: function() {
- this.popup.css("display", "none");
+ this.popup.css('display', 'none');
this.visible = false;
},
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js 2010-10-13 15:01:05 UTC (rev 19554)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js 2010-10-13 15:35:34 UTC (rev 19555)
@@ -53,20 +53,36 @@
this.__selectByIndex(index);
},
- __selectByIndex: function(index) {
+ __selectByIndex: function(index, isOffset) {
+ if (this.items.length==0 || (!isOffset && this.index == index)) return;
+
var item;
if (this.index != -1) {
item = this.items.eq(this.index);
this.__unSelectItem(item);
}
-
- this.index += index;
- if (this.index < 0 ) {
- this.index = this.items.length - 1;
- } else if (this.index >= this.items.length) {
- this.index = 0;
- }
+
+ if (index==undefined) {
+ this.index = -1;
+ return;
+ }
+ if (isOffset) {
+ this.index += index;
+ if ( this.index<0 ) {
+ this.index = this.items.length - 1;
+ } else if (this.index >= this.items.length) {
+ this.index = 0;
+ }
+ } else {
+ if (index<0) {
+ index = 0;
+ } else if (index>=this.items.length) {
+ index = this.items.length - 1;
+ }
+ this.index = index;
+ }
+
item = this.items.eq(this.index);
this.__selectItem(item);
},
@@ -85,17 +101,19 @@
//remove event, rename
__onKeyUp: function(e) {
- this.__select(-1);
+ this.__selectByIndex(-1, true);
},
//remove event, rename
__onKeyDown: function(e) {
- this.__select(1);
+ this.__selectByIndex(1, true);
},
__onMouseOver: function(e) {
var item = this.__getItem(e);
- this.__select(item);
+ if(item) {
+ this.__select(item);
+ }
},
__onClick: function(e) {
@@ -105,7 +123,7 @@
},
__getItem: function(e) {
- return $(e.target).closest("."+this.itemCss, e.currentTarget);
+ return $(e.target).closest("."+this.itemCss, e.currentTarget).get(0);
},
__getItems: function () {
Modified: trunk/ui/input/ui/src/main/templates/inplaceSelect.template.xml
===================================================================
--- trunk/ui/input/ui/src/main/templates/inplaceSelect.template.xml 2010-10-13 15:01:05 UTC (rev 19554)
+++ trunk/ui/input/ui/src/main/templates/inplaceSelect.template.xml 2010-10-13 15:35:34 UTC (rev 19555)
@@ -79,7 +79,7 @@
</span>
</span>
</c:if>
- <span id="#{clientId}List" class="rf-is-none rf-is-lst-cord">
+ <span id="#{clientId}List" class="rf-is-lst-cord">
<span class="rf-is-lst-pos" style="width: #{component.attributes['listWidth']}">
<span class="rf-is-shdw">
<span class="rf-is-shdw-t"></span>
13 years, 8 months
JBoss Rich Faces SVN: r19554 - sandbox/trunk/prototypes/calendar.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-10-13 11:01:05 -0400 (Wed, 13 Oct 2010)
New Revision: 19554
Modified:
sandbox/trunk/prototypes/calendar/calendar-utils.js
sandbox/trunk/prototypes/calendar/calendar.js
sandbox/trunk/prototypes/calendar/jquery.position.js
sandbox/trunk/prototypes/calendar/json-dom.js
sandbox/trunk/prototypes/calendar/test.html
Log:
https://jira.jboss.org/browse/RF-9152
https://jira.jboss.org/browse/RF-9168
calendar prototype
Modified: sandbox/trunk/prototypes/calendar/calendar-utils.js
===================================================================
--- sandbox/trunk/prototypes/calendar/calendar-utils.js 2010-10-13 13:01:27 UTC (rev 19553)
+++ sandbox/trunk/prototypes/calendar/calendar-utils.js 2010-10-13 15:01:05 UTC (rev 19554)
@@ -146,7 +146,7 @@
{
var yy = parseInt(match[y],10); if (isNaN(yy)) return null; else if (yy<70) yy+=2000; else if (yy<100) yy+=1900;
var mm = parseInt(match[m],10); if (isNaN(mm)) mm = Richfaces.Calendar.getMonthByLabel(match[m], shortLabel ? monthNamesShort : monthNames); else if (--mm<0 || mm>11) return null;
- var dd = parseInt(match[d],10); if (isNaN(dd) || dd<1 || dd>daysInMonth(yy, mm)) return null;
+ var dd = parseInt(match[d],10); if (isNaN(dd) || dd<1 || dd>this.daysInMonth(yy, mm)) return null;
// time parsing
if (min!=undefined && h!=undefined)
@@ -262,5 +262,58 @@
}
});
+
+ rf.calendarTemplates = rf.calendarTemplates || {};
+
+ $.extend(rf.calendarTemplates, (function (){
+ var VARIABLE_NAME_PATTERN = /^\s*[_,A-Z,a-z][\w,_\.]*\s*$/;
+
+ var getObjectValue = function (str, object) {
+ var a=str.split(".");
+ var value=object[a[0]];
+ var c=1;
+ while (value && c<a.length) value = value[a[c++]];
+ return (value ? value : "");
+ };
+
+ return {
+ evalMacro: function(template, object)
+ {
+ var _value_="";
+ // variable evaluation
+ if (VARIABLE_NAME_PATTERN.test(template))
+ {
+ if (template.indexOf('.')==-1) {
+ _value_ = object[template];
+ if (!_value_) _value_=window[template];
+ }
+ // object's variable evaluation
+ else {
+ _value_ = getObjectValue(template, object);
+ if (!_value_) _value_=getObjectValue(template, window);
+ }
+ if (_value_ && typeof _value_=='function') _value_ = _value_(object);
+ if (!_value_) _value_="";
+ }
+ //js string evaluation
+ else {
+ try {
+ if (object.eval) {
+ _value_ = object.eval(template);
+ }
+ else with (object) {
+ _value_ = eval(template) ;
+ }
+
+ if (typeof _value_ == 'function') {
+ _value_ = _value_(object);
+ }
+ } catch (e) { LOG.warn("Exception: "+e.Message + "\n[" + template + "]"); }
+ }
+ return _value_;
+ }
+ };
+ })());
+
})(jQuery, RichFaces);
\ No newline at end of file
Modified: sandbox/trunk/prototypes/calendar/calendar.js
===================================================================
--- sandbox/trunk/prototypes/calendar/calendar.js 2010-10-13 13:01:27 UTC (rev 19553)
+++ sandbox/trunk/prototypes/calendar/calendar.js 2010-10-13 15:01:05 UTC (rev 19554)
@@ -92,27 +92,27 @@
[
new E('td',{'class': 'rich-calendar-tool'},
[
- new ET(function (context) { return Richfaces.evalMacro("previousYearControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("previousYearControl", context)})
]),
new E('td',{'class': 'rich-calendar-tool'},
[
- new ET(function (context) { return Richfaces.evalMacro("previousMonthControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("previousMonthControl", context)})
]),
new E('td',{'class': 'rich-calendar-month'},
[
- new ET(function (context) { return Richfaces.evalMacro("currentMonthControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("currentMonthControl", context)})
]),
new E('td',{'class': 'rich-calendar-tool'},
[
- new ET(function (context) { return Richfaces.evalMacro("nextMonthControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("nextMonthControl", context)})
]),
new E('td',{'class': 'rich-calendar-tool'},
[
- new ET(function (context) { return Richfaces.evalMacro("nextYearControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("nextYearControl", context)})
]),
new E('td',{'class': 'rich-calendar-tool rich-calendar-tool-close', 'style':function(context){return (this.isEmpty ? 'display:none;' : '');}},
[
- new ET(function (context) { return Richfaces.evalMacro("closeControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("closeControl", context)})
])
])
])
@@ -128,24 +128,24 @@
[
new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '');}},
[
- new ET(function (context) { return Richfaces.evalMacro("selectedDateControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("selectedDateControl", context)})
]),
new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '');}},
[
- new ET(function (context) { return Richfaces.evalMacro("cleanControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("cleanControl", context)})
]),
new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '');}},
[
- new ET(function (context) { return Richfaces.evalMacro("timeControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("timeControl", context)})
]),
new E('td',{'class': 'rich-calendar-toolfooter', 'style': 'background-image:none;', 'width': '100%'}, []),
new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '')+(context.calendar.params.disabled || context.calendar.params.readonly || !context.calendar.params.showApplyButton ? 'background-image:none;' : '');}},
[
- new ET(function (context) { return Richfaces.evalMacro("todayControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("todayControl", context)})
]),
new E('td',{'class': 'rich-calendar-toolfooter', 'style':function(context){return (this.isEmpty ? 'display:none;' : '')+'background-image:none;';}},
[
- new ET(function (context) { return Richfaces.evalMacro("applyControl", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("applyControl", context)})
])
])
])
@@ -162,7 +162,7 @@
[
new E('td',{'class': 'rich-calendar-time-layout-fields', 'colspan': '2', 'align': 'center'},
[
- new ET(function (context) { return Richfaces.evalMacro("timeEditorFields", context)})
+ new ET(function (context) { return rf.calendarTemplates.evalMacro("timeEditorFields", context)})
])
]),
new E('tr',{},
@@ -481,10 +481,10 @@
if (this.params.popup && !this.params.disabled)
{
var handler = new Function ('event', "RichFaces.$('"+this.id+"').doSwitch();");
- rf.Event.bindById(this.POPUP_BUTTON_ID, "click"+this.namespace, handler);
+ rf.Event.bindById(this.POPUP_BUTTON_ID, "click"+this.namespace, handler, this);
if (!this.params.enableManualInput)
{
- rf.Event.bindById(this.INPUT_DATE_ID, "click"+this.namespace, handler);
+ rf.Event.bindById(this.INPUT_DATE_ID, "click"+this.namespace, handler, this);
}
}
@@ -518,7 +518,8 @@
{
if (this.params.popup && this.isVisible)
{
- rf.Event.unbindScrollEventHandlers(this.scrollElements, this);
+ this.scrollElements && rf.Event.unbindScrollEventHandlers(this.scrollElements, this);
+ this.scrollElements = null;
rf.Event.unbind(window.document, "click"+this.namespace);
}
},
@@ -527,19 +528,19 @@
{
if (this.dateEditorYearID)
{
- Element.removeClassName(this.dateEditorYearID, 'rich-calendar-editor-btn-selected');
+ $(rf.getDomElement(this.dateEditorYearID)).removeClass('rich-calendar-editor-btn-selected');
}
this.dateEditorYear = this.dateEditorStartYear + value;
this.dateEditorYearID = this.DATE_EDITOR_LAYOUT_ID+'Y'+value;
- Element.addClassName(this.dateEditorYearID, 'rich-calendar-editor-btn-selected');
+ $(rf.getDomElement(this.dateEditorYearID)).addClass('rich-calendar-editor-btn-selected');
},
dateEditorSelectMonth: function(value)
{
this.dateEditorMonth = value;
- Element.removeClassName(this.dateEditorMonthID, 'rich-calendar-editor-btn-selected');
+ $(rf.getDomElement(this.dateEditorMonthID)).removeClass('rich-calendar-editor-btn-selected');
this.dateEditorMonthID = this.DATE_EDITOR_LAYOUT_ID+'M'+value;
- Element.addClassName(this.dateEditorMonthID, 'rich-calendar-editor-btn-selected');
+ $(rf.getDomElement(this.dateEditorMonthID)).addClass('rich-calendar-editor-btn-selected');
},
scrollEditorYear: function(value)
@@ -548,7 +549,7 @@
if (this.dateEditorYearID)
{
- Element.removeClassName(this.dateEditorYearID, 'rich-calendar-editor-btn-selected');
+ $(rf.getDomElement(this.dateEditorYearID)).removeClass('rich-calendar-editor-btn-selected');
this.dateEditorYearID='';
}
@@ -558,9 +559,9 @@
if (this.dateEditorMonth != this.getCurrentMonth())
{
this.dateEditorMonth = this.getCurrentMonth();
- Element.removeClassName(this.dateEditorMonthID, 'rich-calendar-editor-btn-selected');
+ $(rf.getDomElement(this.dateEditorMonthID)).removeClass('rich-calendar-editor-btn-selected');
this.dateEditorMonthID = this.DATE_EDITOR_LAYOUT_ID+'M'+this.dateEditorMonth;
- Element.addClassName(this.dateEditorMonthID, 'rich-calendar-editor-btn-selected');
+ $(rf.getDomElement(this.dateEditorMonthID)).addClass('rich-calendar-editor-btn-selected');
}
}
@@ -575,14 +576,14 @@
div.firstChild.innerHTML=year;
if (year == this.dateEditorYear)
{
- Element.addClassName(div.firstChild, 'rich-calendar-editor-btn-selected');
+ $(div.firstChild).addClass('rich-calendar-editor-btn-selected');
this.dateEditorYearID = div.firstChild.id;
}
div = div.nextSibling;
div.firstChild.innerHTML=year+5;
if (year+5 == this.dateEditorYear)
{
- Element.addClassName(div.firstChild, 'rich-calendar-editor-btn-selected');
+ $(div.firstChild).addClass('rich-calendar-editor-btn-selected');
this.dateEditorYearID = div.firstChild.id;
}
year++;
@@ -686,7 +687,7 @@
var onclick = (buttonType==1 ? 'RichFaces.$(\''+this.id+'\').dateEditorSelectMonth('+param+');':
'RichFaces.$(\''+this.id+'\').dateEditorSelectYear('+param+');' );
return '<div id="'+id+'" class="rich-calendar-editor-btn'+(className ? ' '+className : '')+
- '" onmouseover="Element.addClassName(this, \'rich-calendar-editor-btn-over\');" onmouseout="Element.removeClassName(this,\'rich-calendar-editor-btn-over\');" onclick="'+onclick+'">'+value+'</div>';
+ '" onmouseover="jQuery(this).addClass(\'rich-calendar-editor-btn-over\');" onmouseout="$(this).removeClass(\'rich-calendar-editor-btn-over\');" onclick="'+onclick+'">'+value+'</div>';
}
},
@@ -717,15 +718,15 @@
this.dateEditorMonthID = this.DATE_EDITOR_LAYOUT_ID+'M'+this.dateEditorMonth;
htmlContent+='</tr><tr><td colspan="2" class="rich-calendar-date-layout-ok">'+
- '<div id="'+this.DATE_EDITOR_BUTTON_OK+'" class="rich-calendar-time-btn" style="float:right;" onmousedown="Element.addClassName(this, \'rich-calendar-time-btn-press\');" onmouseout="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onmouseup="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onclick="RichFaces.$(\''+this.id+'\').hideDateEditor(true);"><span>'+this.params.labels.ok+'</span></div>'+
+ '<div id="'+this.DATE_EDITOR_BUTTON_OK+'" class="rich-calendar-time-btn" style="float:right;" onmousedown="jQuery(this).addClass(\'rich-calendar-time-btn-press\');" onmouseout="$(this).removeClass(\'rich-calendar-time-btn-press\');" onmouseup="$(this).removeClass(\'rich-calendar-time-btn-press\');" onclick="RichFaces.$(\''+this.id+'\').hideDateEditor(true);"><span>'+this.params.labels.ok+'</span></div>'+
'</td><td colspan="2" class="rich-calendar-date-layout-cancel">'+
- '<div id="'+this.DATE_EDITOR_BUTTON_CANCEL+'" class="rich-calendar-time-btn" style="float:left;" onmousedown="Element.addClassName(this, \'rich-calendar-time-btn-press\');" onmouseout="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onmouseup="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onclick="RichFaces.$(\''+this.id+'\').hideDateEditor(false);"><span>'+this.params.labels.cancel+'</span></div>'+
+ '<div id="'+this.DATE_EDITOR_BUTTON_CANCEL+'" class="rich-calendar-time-btn" style="float:left;" onmousedown="jQuery(this).addClass(\'rich-calendar-time-btn-press\');" onmouseout="$(this).removeClass(\'rich-calendar-time-btn-press\');" onmouseup="$(this).removeClass(\'rich-calendar-time-btn-press\');" onclick="RichFaces.$(\''+this.id+'\').hideDateEditor(false);"><span>'+this.params.labels.cancel+'</span></div>'+
'</td>';
Element.insert(this.EDITOR_LAYOUT_SHADOW_ID, {after:htmlBegin+htmlContent+htmlEnd});
- Element.addClassName(this.dateEditorMonthID, 'rich-calendar-editor-btn-selected');
+ $(rf.getDomElement(this.dateEditorMonthID)).addClass('rich-calendar-editor-btn-selected');
this.correctEditorButtons(editor, this.DATE_EDITOR_BUTTON_OK, this.DATE_EDITOR_BUTTON_CANCEL);
@@ -852,10 +853,11 @@
if (this.invokeEvent("collapse", element))
{
if (this.isEditorVisible) this.hideEditor();
- rf.Event.unbindScrollEventHandlers(this.scrollElements, this);
+ this.scrollElements && rf.Event.unbindScrollEventHandlers(this.scrollElements, this);
+ this.scrollElements = null;
rf.Event.unbind(window.document, "click"+this.namespace);
- Element.hide(element);
+ $(element).hide();
this.isVisible = false;
}
@@ -889,35 +891,21 @@
//rect calculation
- var offsetBase = Position.cumulativeOffset(baseButton);
-
if (this.params.showInput)
{
- var offsetBase1 = Position.cumulativeOffset(baseInput);
-
- offsetBase = [offsetBase[0]<offsetBase1[0] ? offsetBase[0] : offsetBase1[0],
- offsetBase[1]<offsetBase1[1] ? offsetBase[1] : offsetBase1[1]];
- var offsetDimInput = Richfaces.Calendar.getOffsetDimensions(baseInput);
- }
-
- var offsetDimBase = Richfaces.Calendar.getOffsetDimensions(base);
- var offsetDimButton = Richfaces.Calendar.getOffsetDimensions(baseButton);
- var offsetTemp = (window.opera ? [0,0] : Position.realOffset(baseButton));
- //alert("offsetBase:"+offsetBase+" offsetTemp:"+offsetTemp+' scrollTop:'+baseButton.offsetParent.scrollTop+" offsetParent:"+baseButton.offsetParent);
- var o = {left: offsetBase[0]-offsetTemp[0],
- top: offsetBase[1]-offsetTemp[1],
- width: offsetDimBase.width,
- height: (offsetDimInput && offsetDimInput.height>offsetDimButton.height ? offsetDimInput.height : offsetDimButton.height)};
+ base = baseInput;
+ } else {
+ base = baseButton;
+ };
- Richfaces.Calendar.setElementPosition(element, o, this.params.jointPoint, this.params.direction, this.popupOffset);
-
- Element.show(element);
+ $(element).setPosition(base, {type:"TOOLTIP", from: this.params.jointPoint, to:this.params.direction, offset: this.popupOffset}).show();
this.isVisible = true;
- rf.Event.bind(window.document, "click"+this.namespace, this.eventOnCollapse);
+ rf.Event.bind(window.document, "click"+this.namespace, this.eventOnCollapse, this);
- rf.Event.unbindScrollEventHandlers(this.scrollElements, this);
+ this.scrollElements && rf.Event.unbindScrollEventHandlers(this.scrollElements, this);
+ this.scrollElements = null;
if (this.params.hidePopupOnScroll) {
this.scrollElements = rf.Event.bindScrollEventHandlers(element, this.eventOnScroll, this);
}
@@ -943,11 +931,8 @@
return true;
}
- if (Event.element(e).id == this.POPUP_BUTTON_ID || (!this.params.enableManualInput && Event.element(e).id == this.INPUT_DATE_ID) ) return true;
+ if (e.target.id == this.POPUP_BUTTON_ID || (!this.params.enableManualInput && e.target.id == this.INPUT_DATE_ID) ) return true;
- //Position.prepare();
- // TODO: remove line below and check functionality
- if (Position.within(rf.getDomElement(this.id), Event.pointerX(e), Event.pointerY(e))) return true;
this.doCollapse();
return true;
@@ -972,7 +957,7 @@
getSelectedDateString: function(pattern) {
if (!this.selectedDate) return "";
if (!pattern) pattern = this.params.datePattern;
- return Richfaces.Calendar.formatDate(this.selectedDate, pattern, this.params.monthLabels, this.params.monthLabelsShort);
+ return rf.calendarUtils.formatDate(this.selectedDate, pattern, this.params.monthLabels, this.params.monthLabelsShort);
},
getPrevYear: function() {
@@ -1068,7 +1053,9 @@
var daydata = this.days[parseInt(obj.id.substr(this.DATE_ELEMENT_ID.length),10)];
if (this.invokeEvent("datemouseover", obj, e, daydata.date) && daydata.enabled)
{
- if (daydata._month==0 && obj.id!=this.selectedDateCellId && obj.id!=this.todayCellId) Element.addClassName(obj,'rich-calendar-hover');
+ if (daydata._month==0 && obj.id!=this.selectedDateCellId && obj.id!=this.todayCellId) {
+ $(obj).addClass('rich-calendar-hover');
+ }
}
},
@@ -1076,7 +1063,9 @@
var daydata = this.days[parseInt(obj.id.substr(this.DATE_ELEMENT_ID.length),10)];
if (this.invokeEvent("datemouseout", obj, e, daydata.date) && daydata.enabled)
{
- if (daydata._month==0 && obj.id!=this.selectedDateCellId && obj.id!=this.todayCellId) Element.removeClassName(obj,'rich-calendar-hover');
+ if (daydata._month==0 && obj.id!=this.selectedDateCellId && obj.id!=this.todayCellId) {
+ $(obj).removeClass('rich-calendar-hover');
+ }
}
},
@@ -1124,7 +1113,7 @@
this.currentDate.setDate(1);
return daysData;
}
- var idx = daysInMonthByDate(daysData.startDate)-daysData.startDate.getDate()+1;
+ var idx = rf.calendarUtils.daysInMonthByDate(daysData.startDate)-daysData.startDate.getDate()+1;
while (daysData.days[idx])
{
@@ -1149,10 +1138,10 @@
}
if (element_id)
{
- var e = $(rf.getElementById(element_id));
- e.css('backgroundColor') = '';
+ var e = $(rf.getDomElement(element_id));
+ e.css('backgroundColor', '');
if (className) e.removeClass(className);
- if (className1) Element.addClass(className1);
+ if (className1) e.addClass(className1);
}
return null;
},
@@ -1389,7 +1378,7 @@
var result = [];
var m;
for (var i=0; i<markup.length; i++) {
- m = markup[i]['getContent'];
+ m = markup[i];
if (m['getContent']) {
result.push(m.getContent(context));
}
@@ -1399,7 +1388,7 @@
onUpdate: function()
{
- var formattedDate = Richfaces.Calendar.formatDate(this.getCurrentDate(),"MM/yyyy");
+ var formattedDate = rf.calendarUtils.formatDate(this.getCurrentDate(),"MM/yyyy");
rf.getDomElement(this.id+'InputCurrentDate').value=formattedDate;
if (this.submitFunction)
@@ -1546,7 +1535,7 @@
{
if (typeof date=='string')
{
- date = Richfaces.Calendar.parseDate(date,this.params.datePattern, this.params.monthLabels, this.params.monthLabelsShort);
+ date = rf.calendarUtils.parseDate(date,this.params.datePattern, this.params.monthLabels, this.params.monthLabelsShort);
}
newSelectedDate = date;
}
@@ -1797,6 +1786,10 @@
{
this.changeCurrentDate(this.dateEditorYear, this.dateEditorMonth);
}
+ },
+
+ getNamespace: function () {
+ return this.namespace;
}
});
})(jQuery, RichFaces);
\ No newline at end of file
Modified: sandbox/trunk/prototypes/calendar/jquery.position.js
===================================================================
--- sandbox/trunk/prototypes/calendar/jquery.position.js 2010-10-13 13:01:27 UTC (rev 19553)
+++ sandbox/trunk/prototypes/calendar/jquery.position.js 2010-10-13 15:01:05 UTC (rev 19554)
@@ -135,7 +135,21 @@
function getElementRect (element) {
var jqe = $(element);
var offset = jqe.offset();
- return {width: jqe.width(), height: jqe.height(), left: Math.floor(offset.left), top: Math.floor(offset.top)};
+ var rect = {width: jqe.width(), height: jqe.height(), left: Math.floor(offset.left), top: Math.floor(offset.top)};
+ /*if (jge.length>1) {
+ var width, height, offset;
+ var e;
+ for (var i=1;i<jqe.length;i++) {
+ e = jqe.eq(i);
+ offset = e.offset();
+ if (offset.left < rect.left) rect.left = offset.left;
+ if (offset.top < rect.top) rect.top = offset.top;
+ width = e.width(); height = e.height();
+ if (rect.left + width > rect)
+ }
+ }*/
+
+ return rect;
/*
var jqe = $(element);
var offset = jqe.offset();
Modified: sandbox/trunk/prototypes/calendar/json-dom.js
===================================================================
--- sandbox/trunk/prototypes/calendar/json-dom.js 2010-10-13 13:01:27 UTC (rev 19553)
+++ sandbox/trunk/prototypes/calendar/json-dom.js 2010-10-13 15:01:05 UTC (rev 19554)
@@ -39,11 +39,11 @@
// Escape XML symbols - < > & ' ...
xmlEscape : function(value) {
var text = value ? value.toString() : "";
- /*for(var i in this._symbols ) {
+ for(var i in this._symbols ) {
text = text.replace(i,this._symbols[i]);
- */
- return text.escapeHTML();
+ }
+ return text;
}
};
Modified: sandbox/trunk/prototypes/calendar/test.html
===================================================================
--- sandbox/trunk/prototypes/calendar/test.html 2010-10-13 13:01:27 UTC (rev 19553)
+++ sandbox/trunk/prototypes/calendar/test.html 2010-10-13 15:01:05 UTC (rev 19554)
@@ -13,7 +13,10 @@
<script type="text/javascript" src="richfaces-base-component.js"></script>
<script type="text/javascript" src="calendar-utils.js"></script>
<script type="text/javascript" src="calendar.js"></script>
+ <style>
+.rich-color-picker-wrapper{display:none;overflow:hidden;position:absolute;width:350px;z-index:3;}.rich-color-picker-ext{border:1px solid;position:relative;height:170px;padding:0;margin:0;}.rich-color-picker-rainbow div{background:transparent no-repeat scroll left top;}.rich-color-picker-color{background:#F00 none repeat scroll 0 0;cursor:crosshair;left:7px;top:7px;position:absolute;overflow:hidden;height:150px;width:150px;border:1px solid;}.rich-color-picker-color div{left:0;position:absolute;top:0;height:150px;width:150px;}.rich-color-picker-color div div{left:0;top:0;position:absolute;margin:-6px 0 0 -6px;overflow:hidden;width:11px;height:11px;}.rich-color-picker-rainbow{cursor:n-resize;height:150px;left:160px;position:absolute;top:7px;width:35px;text-align:center;}.rich-color-picker-rainbow div{height:9px;left:1px;margin:-4px 0 0;overflow:hidden;position:absolute;width:35px;}.rich-color-picker-new-color,.rich-color-picker-current-color{position:absolute;top:7px;width:60p!
x;height:30px;border:1px solid;}.rich-color-picker-current-color{right:7px;top:7px;}.rich-color-picker-new-color{left:198px;}.rich-color-picker-hex-wrapper{height:22px;right:72px;position:absolute;top:119px;}.rich-color-picker-rgb-wrapper{right:97px;position:absolute;padding:0;text-align:right;margin-bottom:2px;}.rich-color-picker-hsb-wrapper{right:16px;position:absolute;padding:0;text-align:right;margin-bottom:2px;}.rich-color-picker-hsb-h,.rich-color-picker-rgb-r{top:45px;}.rich-color-picker-hsb-s,.rich-color-picker-rgb-g{top:70px;}.rich-color-picker-hsb-b,.rich-color-picker-rgb-b{top:95px;}.rich-color-picker-rgb-wrapper label{padding-top:2px;font-size:16px;}.rich-color-picker-colors-input{width:35px;border:1px solid;}.rich-color-picker-hex-wrapper input{width:60px;font-size:13px;}.rich-color-picker-submit,.rich-color-picker-cancel{position:absolute;right:75px;top:144px;}.rich-color-picker-cancel{right:7px;}.rich-color-picker-span input{border:1px solid;vertical-align:mid!
dle;}.rich-color-picker-icon{display:inline;cursor:pointer;hei!
ght:16px
;width:16px;vertical-align:middle;border:1px solid;}.rich-color-picker-icon-disabled{background-color:#ccc;height:16px;width:16px;}.rich-color-picker-ext{border-color:#BED6F8;background-color:#FFF;font-family:Arial,Verdana,sans-serif;}.rich-color-picker-span input{background-repeat:repeat-x;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.InputBackgroundImage/DATB/eAFjYGDg!vflzf!!!5kAGqIF6Q__.jsf);border-color:#BED6F8;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-color-picker-ext input{color:#000;background-color:#fff;}.rich-color-picker-ext label{color:#000;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-color-picker-icon{border-color:#BED6F8;}.rich-color-picker-color{border-color:#BED6F8;}.rich-color-picker-new-color{border-color:#BED6F8;}.rich-color-picker-current-color{border-color:#BED6F8;}.rich-color-picker-cancel{font-family:Arial,Verdana,sans-serif;color:#000;border-color:#BED6F8;}.rich-color-picker-sub!
mit{font-family:Arial,Verdana,sans-serif;color:#000;border-color:#BED6F8;}.rich-color-picker-color div{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/colorpicker_overlay.png.jsf);}.rich-color-picker-colors-input{font-size:11px;font-family:Arial,Verdana,sans-serif;color:#000;border-color:#BED6F8;background-color:#fff;}.rich-color-picker-color div div{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/colorpicker_select.gif.jsf);}.rich-color-picker-rainbow div{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/rangearrows.gif.jsf);}.rich-color-picker-submit,.rich-color-picker-cancel{color:#000;border-color:#BED6F8;font-size:11px;font-family:Arial,Verdana,sans-serif;background-color:#BED6F8;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.ButtonBackgroundImage/DATB/eAFjYGDg!v!9049r-5gAGcAFgg__.jsf);border-width:1px;ba!
ckground-repeat:repeat-x;background-position:top left;}.drgind!
_fly{z-i
ndex:1000;top:40px;left:40px;position:absolute;}.drgind_internal{opacity:.93;filter:alpha(opacity=93);}.drgind_wordcut{padding:0 0 0 3px;width:200px;overflow:hidden;float:left;white-space:nowrap;}.drgind_text{border-top-width:1px;border-top-style:solid;border-bottom-width:2px;border-bottom-style:solid;border-right-width:2px;border-right-style:solid;}.drgind_marker{border-top-width:1px;border-top-style:solid;border-bottom-width:2px;border-bottom-style:solid;border-left-width:1px;border-left-style:solid;vertical-align:top;}.rich-dragindicator-iframe{position:absolute;display:inline;z-index:999;top:0;left:0;filter:Alpha(opacity=0);}.drgind_reject .drgind_marker{background-color:#EF6771;border-top-color:#96000B;border-left-color:#96000B;border-bottom-color:#96000B;vertical-align:top;}.drgind_accept .drgind_marker,.drgind_default .drgind_marker{background-color:#9CDC48;border-top-color:#589900;border-left-color:#589900;border-bottom-color:#589900;vertical-align:top;}.drgind_text{!
border-top-color:#BED6F8;border-bottom-color:#BED6F8;border-right-color:#BED6F8;background-color:#F2F7FF;color:#000;}.drgind_text_content{color:#000;font-weight:bold;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-panel{background-color:#FFF;border-color:#BED6F8;}.rich-panel-header{background-color:#BED6F8;border-color:#BED6F8;font-size:11px;color:#000;font-weight:bold;font-family:Arial,Verdana,sans-serif;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);}.rich-panel-body{font-size:11px;color:#000;font-family:Arial,Verdana,sans-serif;}.rich-panel{border-width:1px;border-style:solid;padding:1px;}.rich-panel-header{padding:2px;border-width:1px;border-style:solid;background-position:top left;background-repeat:repeat-x;}.rich-panel-body{padding:10px;}.rich-panelbar{border:1px solid;padding:1px;}.rich-panelbar-interior{border-bottom:0!important;}.rich-panelbar-header{border:0 solid red;padding:0!
1px 1px 5px;cursor:pointer;}.rich-panelbar-header-act{border:!
0 solid
red;padding:0 1px 1px 5px;cursor:pointer;}.rich-panelbar-content{padding:10px;text-align:left;vertical-align:top;}.rich-panelbar-b{border-top-width:0!important;border-left-width:0!important;border-right-width:0!important;padding:0;}.rich-panelbar{border-color:#BED6F8;}.rich-panelbar-header{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);background-position:top left;background-repeat:repeat-x;vertical-align:middle;color:#000;background-color:#BED6F8;font-size:11px;font-weight:bold;font-family:Arial,Verdana,sans-serif;}.rich-panelbar-header-act{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);background-position:top left;background-repeat:repeat-x;vertical-align:middle;color:#000;background-color:#BED6F8;font-size:11px;font-weight:bold;font-family:Arial,Verdana,sans-serif;}.rich-panelbar-content{color:#000;}.rich-panelbar-interi!
or{background-color:#FFF;}.slider-container{background-color:transparent;width:100%;position:relative;}.rich-dataFilterSlider-container{background-color:transparent;width:100%;position:relative;}.range{background-color:transparent;height:10px;overflow:hidden;float:left;border-width:1px;border-style:solid;}.rich-dataFilterSlider-range{background-color:transparent;height:10px;overflow:hidden;float:left;border-width:1px;border-style:solid;}.range-decor{height:100%;width:100%;border-width:1px;border-style:solid;}.rich-dataFilterSlider-range-decor{height:100%;width:100%;border-width:1px;border-style:solid;}.trailer{background-color:transparent;background-position:top right;background-repeat:repeat-x;height:10px;}.rich-dataFilterSlider-trailer{background-color:transparent;background-position:top right;background-repeat:repeat-x;height:10px;}.track{background-color:transparent;height:8px;overflow:hidden;position:absolute;}.rich-dataFilterSlider-track{background-color:transparent;h!
eight:8px;overflow:hidden;position:absolute;}.handle{position:!
absolute
;width:10px;height:8px;background-color:transparent;line-height:1px;font-size:1px;}.rich-dataFilterSlider-handle{position:absolute;width:10px;height:8px;background-color:transparent;line-height:1px;font-size:1px;}.slider-input-field{border:1px solid;background:left top repeat-x;padding:0 0 0 3px;width:40px;margin:0 0 0 10px;float:left;}.rich-dataFilterSlider-input-field{border:1px solid;background:left top repeat-x;padding:0 0 0 3px;width:40px;margin:0 0 0 10px;float:left;}.range{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderTrackGradient/DATB/eAH7f-!Y!!!!mQAZCwWj.jsf);border-color:#BED6F8;}.rich-dataFilterSlider-range{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderTrackGradient/DATB/eAH7f-!Y!!!!mQAZCwWj.jsf);border-color:#BED6F8;}.range{border-color:#fff;}.rich-dataFilterSlider-range{border-color:#fff;}.trailer{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richface!
s/renderkit/html/images/sldr_trailer3_bg.gif.jsf);}.rich-dataFilterSlider-trailer{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/sldr_trailer3_bg.gif.jsf);}.slider-input-field{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderFieldGradient/DATB/eAH79-XN!!!!mQAaRgXe.jsf);background-color:#fff;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;border-color:#BED6F8;border-bottom-color:#fff;border-right-color:#fff;}.rich-dataFilterSlider-input-field{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderFieldGradient/DATB/eAH79-XN!!!!mQAaRgXe.jsf);background-color:#fff;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;border-color:#BED6F8;border-bottom-color:#fff;border-right-color:#fff;}.rich-gmap{width:400px;height:400px;}.rich-virtualEarth{width:400px;height:400px;}.rich-separator{height:6px;background-repeat:repeat-x;back!
ground-position:center;}.rich-tab-active{border-width:1px;bord!
er-style
:solid;padding:3px 10px 4px 10px;background-repeat:repeat-x;background-position:top;border-bottom-width:0;cursor:default;}.rich-tab-disabled{background-repeat:repeat-x;background-position:center top;border-width:1px 1px 0;border-style:solid;cursor:default;}.rich-tab-header{padding:2px 10px 2px 10px;text-align:center;}.rich-tabhdr-cell-disabled,.rich-tabhdr-cell-inactive{padding-top:2px;}.rich-tabhdr-side-cell{border-top-width:1px;border-top-style:solid;}.rich-tabhdr-side-border{background-repeat:no-repeat;background-position:top;}.rich-tabpanel{width:100%;}.rich-tabpanel-content{border-bottom-width:1px;border-bottom-style:solid;border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid;vertical-align:top;}.rich-tabpanel-content-position{height:100%;position:relative;}.rich-tbpnl-tb-sel{border-width:1px;border-style:solid;border-bottom:0;background-repeat:repeat-x;background-position:top;cursor:default;}.rich-tab-header{color:#000;font-size:!
11px;font-family:Arial,Verdana,sans-serif;}.rich-tab-active{color:#000;border-color:#fff;}.rich-tab-disabled{border-color:#fff;color:#8DB7F3;background-color:#C6DEFF;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.images.TabGradientB/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);}.dr-tbpnl-tb-sel{border-color:#E79A00;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.images.TabGradientB/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);}.rich-tabhdr-side-cell{border-top-color:#BED6F8;}.rich-tabpanel-content{background-color:#FFF;color:#000;border-bottom-color:#BED6F8;border-right-color:#BED6F8;border-left-color:#BED6F8;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-tab-inactive{background-color:#C6DEFF;border-color:#fff;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.images.TabGradientB/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);border-width:1px;border-style:solid;background-repeat:repeat-x;background-position:top;border-!
bottom-width:0;cursor:default;}.rich-tab-bottom-line{border-bo!
ttom-col
or:#BED6F8;border-bottom-style:solid;border-bottom-width:1px;}.rich-tab-active{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.images.TabGradientA/DATB/eAH7f-!Y!!!!mQAZCwWj.jsf);background-color:#FFF;}.rich-tabhdr-side-border{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.images.TabStripeImage/DATB/eAH7cW0fAAVVAo0_.jsf);}.rich-stglpanel{border-width:1px;border-style:solid;padding:1px;background-position:top right;background-repeat:no-repeat;}.rich-stglpnl-marker{padding-right:3px;}.rich-stglpanel-header{border-width:1px;border-style:solid;cursor:pointer;padding:2px;background-position:top left;background-repeat:repeat-x;}.rich-stglpanel-body{padding:10px;text-align:left;vertical-align:top;overflow:auto;}.rich-stglpanel-marker{float:right;}.rich-stglpanel{background-color:#FFF;border-color:#BED6F8;}.rich-stglpanel-header{background-color:#BED6F8;border-color:#BED6F8;font-size:11px;color:#000;font-weight:bold;font-fa!
mily:Arial,Verdana,sans-serif;}.rich-stglpanel-body{background-color:#FFF;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-stglpanel-header{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);}.rich-toolbar{border:1px solid;border-color:#BED6F8;padding:0;background-color:#BED6F8;background-position:top left;background-repeat:repeat-x;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);}.rich-toolbar-item{font-size:11px;color:#000;font-weight:bold;font-family:Arial,Verdana,sans-serif;padding:2px 10px 2px 10px;white-space:nowrap;}.rich-inslider{height:20px;}.rich-inslider-vertical{width:20px;}.rich-inslider-tip{position:absolute;white-space:nowrap;padding:2px 2px 2px 2px;border:1px solid;}.rich-inslider-size{width:100%;}.rich-inslider-size-height{height:100%;width:7px;padding:0 3px;}.rich-inslider-left-num{text-align:left;bo!
rder-left:1px solid;padding:0 3px 0 3px;}.rich-inslider-right-!
num{text
-align:right;border-right:1px solid;padding:0 3px 0 3px;}.rich-inslider-top-num{text-align:left;border-top:1px solid;border-color:#C4C0B9;color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;line-height:11px;vertical-align:top;}.rich-inslider-bottom-num{text-align:left;border-bottom:1px solid;padding:0 3px 0 3px;border-color:#C4C0B9;color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;line-height:11px;vertical-align:bottom;}.rich-inslider-vert-spacer{padding:3px 0;vertical-align:bottom;}.rich-inslider-handler{background-color:transparent;width:7px;height:8px;font-size:1px;position:absolute;text-align:center;z-index:1;}.rich-inslider-handler-vertical{background-color:transparent;width:7px;height:8px;font-size:1px;position:absolute;text-align:center;z-index:1;}.rich-inslider-tip{position:absolute;white-space:nowrap;padding:2px 2px 2px 2px;border:1px solid;}.rich-inslider-handler-selected{background-color:transparent;width:7px;height:8px;font-size:1px;positi!
on:absolute;text-align:center;z-index:1;}.rich-inslider-handler-selected-vertical{background-color:transparent;width:7px;height:8px;font-size:1px;position:absolute;text-align:center;z-index:1;}.rich-inslider-track{background-position:left top;background-repeat:repeat-x;height:8px;font-size:1px;}.rich-inslider-track-vertical{background-position:left top;background-repeat:repeat-y;height:100%;font-size:1px;width:7px;background-color:#FFF;}.rich-inslider-track-decor-1{height:100%;width:100%;border:1px solid;}.rich-inslider-track-decor-2{border:1px solid white;}.rich-inslider-field{border:1px inset;padding:0 0 0 3px;margin-top:0;margin-bottom:0;background-position:left top;background-repeat:repeat-x;}.rich-inslider-field-left{margin-right:10px;}.rich-inslider-field-right{margin-left:10px;}.rich-inslider-field-top{margin-bottom:7px;}.rich-inslider-field-bottom{margin-top:7px;}.rich-inslider-arrow{background-repeat:no-repeat;width:15px;height:15px;}.rich-inslider-dec-horizontal{b!
ackground-position:5px 4px;}.rich-inslider-inc-horizontal{back!
ground-p
osition:4px 4px;}.rich-inslider-inc-vertical{background-position:3px 5px;}.rich-inslider-dec-vertical{background-position:3px 3px;}.rich-inslider-dec-horizontal-selected{background-position:5px 4px;}.rich-inslider-inc-horizontal-selected{background-position:4px 4px;}.rich-inslider-inc-vertical-selected{background-position:3px 5px;}.rich-inslider-dec-vertical-selected{background-position:3px 3px;}.rich-inslider-td-arrow{text-align:left;vertical-align:bottom;}.rich-inslider-tip{background-color:#FAE6B0;border-color:#E5973E;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-inslider-tip-step{background-color:#FAE6B0;border-color:#E5973E;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-inslider-left-num{font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;border-color:#BED6F8;line-height:11px;}.rich-inslider-right-num{font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;border-color:#BED6F8;line-height:11px;}.rich-inslider-track{background-c!
olor:#fff;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderTrackGradient/DATB/eAH7f-!Y!!!!mQAZCwWj.jsf);}.rich-inslider-track-decor-1{border-color:#BED6F8;}.rich-inslider-handler{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowImage/DATB/eAH7z8DAAAAEAAEA.jsf);}.rich-inslider-handler-vertical{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowImageRight/DATB/eAH7z8DAAAAEAAEA.jsf);}.rich-inslider-track-vertical{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderTrackGradientVertical/DATB/eAH7f-!Y!!!!mQAZCwWj.jsf);}.rich-inslider-dec-horizontal{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowImageLeft/DATB/eAH7z8DAAAAEAAEA.jsf);}.rich-inslider-inc-horizontal{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderki!
t.html.images.SliderArrowImageRight/DATB/eAH7z8DAAAAEAAEA.jsf)!
;}.rich-
inslider-inc-vertical{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowImageTop/DATB/eAH7z8DAAAAEAAEA.jsf);}.rich-inslider-dec-vertical{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowImage/DATB/eAH7z8DAAAAEAAEA.jsf);}.rich-inslider-dec-horizontal-selected{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowSelectedImageLeft/DATA/eAFb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGi4P!T6XYAt6AedA__.jsf);}.rich-inslider-inc-horizontal-selected{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowSelectedImageRight/DATA/eAFb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGi4P!T6XYAt6AedA__.jsf);}.rich-inslider-inc-vertical-selected{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfa!
ces.renderkit.html.images.SliderArrowSelectedImageTop/DATA/eAFb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGi4P!T6XYAt6AedA__.jsf);}.rich-inslider-dec-vertical-selected{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowSelectedImage/DATA/eAFb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGi4P!T6XYAt6AedA__.jsf);}.rich-inslider-handler-selected{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowSelectedImage/DATA/eAFb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGi4P!T6XYAt6AedA__.jsf);}.rich-inslider-handler-selected-vertical{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderArrowSelectedImageRight/DATA/eAFb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGi4!
P!T6XYAt6AedA__.jsf);}.rich-inslider-track-decor-2{border-colo!
r:#fff;}
.rich-inslider-field{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SliderFieldGradient/DATB/eAH79-XN!!!!mQAaRgXe.jsf);background-color:#fff;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;border-color:#BED6F8;}.rich-spinner-input-container{padding:0;margin:0;background-position:left top;background-repeat:repeat-x;border-style:inset;border-width:1px 0 1px 1px;}input.rich-spinner-input{border:0;padding:0 0 0 3px;background:none transparent scroll repeat 0 0;margin:0;}.rich-spinner-buttons{border-width:1px;border-style:solid;padding:0;margin:0;background-position:left top;background-repeat:repeat-x;font-size:0;}.rich-spinner-btn{margin:0 1px 1px 0;display:block;border-style:none;}.rich-spinner-btn-press{margin:1px 0 0 1px;display:block;border-style:none;}.rich-spinner-buttons{background-color:#BED6F8;border-color:#BED6F8;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerBut!
tonGradient/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);}.rich-spinner-input{font-size:11;font-family:Arial,Verdana,sans-serif;}.rich-spinner-input-container{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerFieldGradient/DATB/eAH79-XN!!!!mQAaRgXe.jsf);background-color:#fff;border-color:#BED6F8;}.rich-tree-node{width:100%;}.rich-tree-node-children{zoom:1;margin-left:8px;padding-left:10px;}.rich-tree-h{display:none;}.rich-tree-node-icon,.rich-tree-node-icon-leaf,.rich-tree-node-handleicon{width:16px;padding:1px;}.rich-tree-h-ic-img,.rich-tree-node-handleicon-collapsed,.rich-tree-node-handleicon-expanded{width:16px;height:16px;margin:0;display:block;overflow:hidden;}.rich-tree-h-ic-line{background-position:left;background-repeat:repeat-y;}.rich-tree-h-ic-line-node,.rich-tree-h-ic-line-last,.rich-tree-h-ic-line-exp,.rich-tree-h-ic-line-clp{background-position:center;background-repeat:no-repeat;}.rich-tree-node-text{width:100%;cursor:default;pa!
dding:1px 4px 1px 4px;white-space:nowrap;}.rich-tree-node-sele!
cted{pad
ding:0 3px 0 3px;border:1px solid;background-color:transparent;background-position:top left;background-repeat:repeat-x;}.rich-tree-node-highlighted{text-decoration:underline;}.rich-tree-node-handleicon-collapsed,.rich-tree-node-handleicon-expanded{cursor:pointer;}.rich-tree-last-node-marker{display:none;}.rich-tree-node-handle{outline-style:none;}.rich-tree-node-highlighted{color:#E79A00;}.rich-tree-node-selected{border-color:#BED6F8;}.rich-tree-h-ic-line{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.TreeLineImage/DATB/eAH7!!!!72fXGBgYACWpBbU_.jsf);}.rich-tree-h-ic-line-node{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.TreeLineNodeImage/DATB/eAH7!!!!72fXGBgYACWpBbU_.jsf);}.rich-tree-h-ic-line-last{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.TreeLineLastImage/DATB/eAH7!!!!72fXGBgYACWpBbU_.jsf);}p.rich-tree-last-node-marker+* .rich-tree-h-ic-li!
ne-node{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.TreeLineLastImage/DATB/eAH7!!!!72fXGBgYACWpBbU_.jsf);}p.rich-tree-last-node-marker+*+div.rich-tree-h-ic-line{background-image:none;}.rich-tree-h-ic-line-exp{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.TreeLineExpandedImage/DATB/eAH7!!!!72fXGBgYACWpBbU_.jsf);}.rich-tree-h-ic-line-clp{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.TreeLineCollapsedImage/DATB/eAH7!!!!72fXGBgYACWpBbU_.jsf);}.rich-tree-node-selected .rich-tree-node-highlighted{color:#E79A00;}.rich-sb-common-container{position:absolute;text-align:left;background-color:inherit;}.rich-sb-ext-decor-1{position:absolute;height:100%;width:100%;z-index:2;}.rich-sb-ext-decor-2{border:1px solid;height:100%;width:100%;}.rich-sb-ext-decor-3{height:100%;width:100%;}.rich-sb-overflow{overflow:auto;}.rich-sb-int-decor-table{width:100%;}.rich-s!
b-shadow{position:absolute;height:100%;width:100%;border:1px s!
olid;z-i
ndex:1;}.rich-sb-int-sel{cursor:default;background-position:left top;background-repeat:repeat-x;}.rich-sb-cell-padding{padding:1px 3px 1px 5px;}.rich-sb-int{cursor:pointer;}.rich-sb-ext-decor-2{border-color:#BED6F8;background-color:#ECF4FE;}.rich-sb-shadow{background-color:#000;border-color:#000;opacity:1;}.rich-sb-int{font-size:11px;font-family:Arial,Verdana,sans-serif;color:#000;}.rich-sb-int-sel{background-color:#BED6F8;font-size:11px;font-family:Arial,Verdana,sans-serif;color:#000;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);}.rich-table{border-top:solid 1px #C0C0C0;border-left:solid 1px #C0C0C0;background-color:#FFF;empty-cells:show;border-collapse:collapse;}.rich-table-cell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px 4px 4px 4px;font-size:11px;color:#000;font-family:Arial,Verdana,sans-serif;}.rich-subtable-cell{border-right:solid 1px #C0C0C0;border-bottom:solid!
1px #C0C0C0;padding:4px 4px 4px 4px;font-size:11px;color:#000;font-family:Arial,Verdana,sans-serif;}.rich-table-header{background-color:#BED6F8;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);background-position:top left;background-repeat:repeat-x;}.rich-table-header-continue{background-color:#BED6F8;}.rich-table-headercell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px 4px 4px 4px;color:#000;text-align:center;font-weight:bold;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-table-subheader{background-color:#ECF4FE;}.rich-table-thead{border-bottom:solid 1px #C0C0C0;}.rich-table-subheadercell{border-right:solid 1px #C0C0C0;padding:4px 4px 4px 4px;text-align:center;font-size:11px;color:#000;font-family:Arial,Verdana,sans-serif;white-space:nowrap;}.rich-table-sortable-header{background-position:right center;background-repeat:no-repeat;white-space:nowrap;}.rich-tab!
le-cursor-pointer{cursor:pointer;}.rich-inplace-edit,.rich-inp!
lace-vie
w{cursor:default;}.rich-sort-icon{vertical-align:middle;}.rich-table-footer{background-color:#ccc;}.rich-table-footer-continue{background-color:#ccc;}.rich-table-footercell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px 4px 4px 4px;color:#000;text-align:left;font-weight:bold;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-table-subfooter{background-color:#f1f1f1;}.rich-table-subfootercell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px 4px 4px 4px;text-align:left;font-size:11px;color:#000;font-family:Arial,Verdana,sans-serif;}.rich-subtable-header{background-color:#ECF4FE;}.rich-subtable-headercell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px 4px 4px 4px;text-align:center;font-size:11px;color:#000;font-family:Arial,Verdana,sans-serif;}.rich-subtable-footer{background-color:#f1f1f1;}.rich-subtable-footercell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px!
4px 4px 4px;text-align:left;}.rich-sort-asc{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.iconimages.DataTableIconSortAsc/DATB/eAFjYGD4!!8!AAYAAv4_.jsf);}.rich-sort-desc{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.iconimages.DataTableIconSortDesc/DATB/eAFjYGD4!!8!AAYAAv4_.jsf);}.rich-mpnl-body{font-size:11px;color:#000;font-family:Arial,Verdana,sans-serif;}.rich-mpnl-header{background-color:#BED6F8;border-color:#BED6F8;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);}.rich-mpnl-shadow{background-color:#000;}.rich-mpnl-spacer,.rich-mpnl-resizer{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/spacer.gif.jsf);}.rich-mpnl-text{font-size:11px;color:#000;font-weight:bold;font-family:Arial,Verdana,sans-serif;}.rich-mpnl-ovf-hd{overflow:hidden;}.rich-mpnl-trim{position:relative;z-index:0;}.!
rich-mpnl-iframe{position:absolute;left:0;top:0;background-col!
or:white
;overflow-y:hidden;z-index:-1;}.rich-mpnl-mask-div{position:fixed;top:0;left:0;border:0;margin:0;padding:0;width:100%;height:100%;border-style:none;background-color:#d0d0d0;}.rich-mpnl-mask-div-opaque{filter:alpha(opacity=50);opacity:.5;}.rich-mpnl-mask-div-transparent{background-color:transparent;}.rich-mpnl-panel{position:fixed;margin:0;padding:0;background-color:inherit;z-index:9;left:0;top:0;}.rich-mpnl-resizer{line-height:1px;font-size:1px;position:absolute;}.rich-mpnl-header-cell{height:20px;width:100%;vertical-align:middle;z-index:5;}.rich-mpnl-button{outline-style:none;position:absolute;border:10px solid red;position:absolute;clip:rect(0px 0 1px 1px);height:10px;width:10px;left:0;top:0;z-index:-300;}.rich-mpnl-controls{position:absolute;top:3px;right:3px;z-index:1;}.rich-modalpanel{left:0;top:0;}.rich-mpnl-content{border-width:1px;border-style:solid;padding:1px;background-color:inherit;}.rich-mpnl-header{padding:2px;border-width:1px;border-style:solid;background-posi!
tion:top left;background-repeat:repeat-x;}.rich-mpnl-body{padding:10px;}.rich-mpnl-shadow{position:absolute;height:100%;width:100%;z-index:-1;top:4px;left:4px;filter:alpha(opacity=10);opacity:.1;}.rich-mpnl-content{background-color:#FFF;border-color:#BED6F8;}.rich-dtascroller-table{border-width:1px;border-style:solid;}.rich-datascr-button,.rich-datascr-ctrls-separator{border-width:1px;border-style:solid;width:25px;cursor:pointer;text-align:center;}.rich-datascr-button-dsbld{cursor:default;}.rich-datascr-act{border-top-width:2px;border-top-style:solid;width:25px;text-align:center;}.rich-datascr-inact{border-top-width:2px;border-top-style:solid;width:25px;cursor:pointer;text-align:center;}.rich-datascr-button,.rich-datascr-ctrls-separator{background-color:#ECF4FE;border-color:#BED6F8;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-datascr-button-dsbld{color:#BED6F8;}.rich-datascr-act{border-top-color:#000;color:#000;font-family:Arial,Verdana,sans-serif;font-size:11!
px;}.rich-datascr-inact{border-top-color:#BED6F8;color:#BED6F8!
;font-fa
mily:Arial,Verdana,sans-serif;font-size:11px;}.rich-dtascroller-table{border-color:#BED6F8;background-color:#FFF;}.rich-menu-list-border{border:1px solid;float:left;position:absolute;}.rich-menu-list-bg{border-top-style:solid;border-left-style:solid;border-right-style:solid;border-top-width:1px;border-left-width:1px;border-right-width:1px;background:repeat-y left;}.rich-ddmenu-label,.rich-ddmenu-label-disabled{left:0;top:0;padding:2px 5px 2px 5px;white-space:nowrap;width:auto;height:auto;}.rich-ddmenu-label-unselect{border:0 solid transparent;padding:3px 6px;}.rich-ddmenu-label-select{border:1px solid;cursor:pointer;}.rich-menu-list-strut{font-size:0;border:0;margin:0;position:relative;}.underneath_iframe{position:absolute;z-index:90;visibility:hidden;left:0;top:0;height:1px;width:1px;}.rich-label-text-decor{font-weight:bold;}.rich-menu-list-border{border-color:#BED6F8;background-color:#ECF4FE;}.rich-menu-list-bg{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.rich!
faces.renderkit.html.images.background.MenuListBackground/DATB/eAH79-XN!3vHmAAZcQWE.jsf);border-top-color:#ECF4FE;border-left-color:#ECF4FE;border-right-color:#ECF4FE;}.rich-ddmenu-label,.rich-ddmenu-label-disabled{font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-ddmenu-label-select{border-color:#BED6F8;background-color:#fff;color:#000;}.rich-ddmenu-label-disabled{color:#8DB7F3;}.rich-menu-separator{font-size:0;border-top:1px solid;margin:2px 0 2px 24px;cursor:default;}.rich-menu-item,.rich-menu-group{padding:1px 35px 1px 1px;white-space:nowrap;position:relative;}.rich-menu-item-enabled,.rich-menu-group-enabled{border:0 solid transparent;padding:2px 36px 2px 2px;}.rich-menu-item-hover,.rich-menu-group-hover{border:1px solid;cursor:pointer;}.rich-menu-item-disabled,.rich-menu-group-disabled{border:0 solid transparent;cursor:default;}.rich-menu-item-icon,.rich-menu-group-icon{margin-right:10px;}.rich-menu-item-icon img,.rich-menu-group-icon img{vertical-align:middle!
;}.rich-menu-item a,.rich-menu-group a{text-decoration:none;}.!
rich-men
u-node{position:absolute;width:16px;height:16px;font-size:1px;top:1px;right:1px;}.rich-menu-item-disabled .rich-menu-node,.rich-menu-group-disabled .rich-menu-node{background-position:bottom;}.rich-menu-list-border{border:1px solid;float:left;position:absolute;}.rich-menu-list-bg{border-top-style:solid;border-left-style:solid;border-right-style:solid;border-top-width:1px;border-left-width:1px;border-right-width:1px;background:repeat-y left;}.rich-ddmenu-label,.rich-ddmenu-label-disabled{left:0;top:0;padding:2px 5px 2px 5px;white-space:nowrap;width:auto;height:auto;}.rich-ddmenu-label-unselect{border:0 solid transparent;padding:3px 6px;}.rich-ddmenu-label-select{border:1px solid;cursor:pointer;}.rich-menu-list-strut{font-size:0;border:0;margin:0;position:relative;}.underneath_iframe{position:absolute;z-index:90;visibility:hidden;left:0;top:0;height:1px;width:1px;}.rich-menu-separator{border-top-color:#BED6F8;}.rich-menu-item,.rich-menu-item a,.rich-menu-item a:hover,.rich-men!
u-item a:visited,.rich-menu-group,.rich-menu-group a,.rich-menu-group a:hover,.rich-menu-group a:visited{color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-menu-item-disabled,.rich-menu-group-disabled{color:#8DB7F3;}.rich-menu-item-hover,.rich-menu-group-hover{background-position:top left;background-repeat:repeat-x;border-color:#E5973E;background-color:#FAE6B0;}.rich-menu-node-icon{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.MenuNodeImage/DATB/eAFjYGD4vL0XAATaAjg_.jsf);}.rich-label-text-decor{font-weight:bold;}.rich-menu-list-border{border-color:#BED6F8;background-color:#ECF4FE;}.rich-menu-list-bg{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.background.MenuListBackground/DATB/eAH79-XN!3vHmAAZcQWE.jsf);border-top-color:#ECF4FE;border-left-color:#ECF4FE;border-right-color:#ECF4FE;}.rich-ddmenu-label,.rich-ddmenu-label-disabled{font-family:Arial,Verdana,sans-serif;font!
-size:11px;}.rich-ddmenu-label-select{border-color:#BED6F8;bac!
kground-
color:#fff;color:#000;}.rich-tool-tip{background-color:#FAE6B0;padding:7px;border:1px solid;border-color:#E5973E;font-size:11px;font-family:Arial,Verdana,sans-serif;float:left;position:absolute;display:none;}.rich-pmenu{overflow:hidden;padding-right:4px;}.rich-pmenu-group{padding:2px 1px 1px;margin-top:1px;cursor:pointer;border-top:1px solid;}.rich-pmenu-top-group{height:20px;border-top:none;margin-top:0;background-repeat:repeat-x;background-position:left top;padding:2px 1px 2px 2px;cursor:pointer;}.rich-pmenu-item{border-top:1px solid;cursor:pointer;padding:2px 1px 1px;margin-top:1px;}.rich-pmenu-top-group-div{border:1px solid;margin-bottom:3px;padding:1px;overflow:hidden;width:100%;}.rich-pmenu-group-self-label{padding-left:5px;width:100%;}.rich-pmenu-nowrap{white-space:nowrap;}.rich-pmenu-group{font-weight:bold;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;border-top-color:#C0C0C0;}.rich-pmenu-top-group{font-weight:bold;font-family:Arial,Verdana,sans-seri!
f;font-size:11px;color:#000;background-color:#BED6F8;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.PanelMenuGroupGradient/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);}.rich-pmenu-item{font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;border-top-color:#C0C0C0;}.rich-pmenu-top-group-div{border-color:#BED6F8;}.rich-pmenu-disabled-element{color:#8DB7F3;}.rich-pmenu-hovered-element{background-color:#ECF4FE;}.rich-pmenu-disabled-element{cursor:default;}.rich-pmenu-selected-element{font-style:italic;}.rich-calendar-exterior{border:1px solid;}.rich-calendar-btn{cursor:pointer;}.rich-calendar-header-optional{border-bottom:1px solid;padding:7px;height:22px;font-weight:bold;}.rich-calendar-header{border-right:0 solid;border-bottom:1px solid;}.rich-calendar-cell-size{width:25px;height:22px;}.rich-calendar-cell-div{overflow:hidden;}.rich-calendar-cell{border-bottom:1px solid;border-right:1px solid;padding:0;vertical-align:middle;text-a!
lign:center;}.rich-calendar-tool{vertical-align:middle;text-al!
ign:cent
er;width:20px;height:22px;}.rich-calendar-month{vertical-align:middle;text-align:center;height:22px;}.rich-calendar-days{border-bottom:1px solid;border-right:0 solid;vertical-align:middle;text-align:center;height:22px;}.rich-calendar-week{border-bottom:1px solid;border-right:1px solid;vertical-align:middle;text-align:center;width:25px;}.rich-right-cell{border-right:0;}.rich-bottom-cell{border-bottom:0;}.rich-calendar-toolfooter{height:22px;padding:1px 2px 1px 1px;}.rich-calendar-footer-optional{border-top:1px solid;border-right:0 solid;padding:7px;height:22px;font-weight:bold;}.rich-calendar-footer{border-top:1px solid;border-right:0 solid;}.rich-calendar-spinner-input{border:0;padding:0 0 0 3px;background:none transparent scroll repeat 0 0;}.rich-calendar-spinner-input-container{background-position:left top;background-repeat:repeat-x;border:1px solid;}.rich-calendar-spinner-buttons{border-width:1px;border-style:solid;background-position:left top;background-repeat:repeat-x;f!
ont-size:0;}.rich-calendar-exterior{border-color:#BED6F8;}.rich-calendar-header-optional{border-bottom-color:#BED6F8;background-color:#ECF4FE;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-calendar-header{border-bottom-color:#BED6F8;background-color:#ECF4FE;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-calendar-cell{border-bottom-color:#BED6F8;border-right-color:#BED6F8;background-color:#FFF;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-calendar-tool{background-color:#BED6F8;font-size:11px;font-family:Arial,Verdana,sans-serif;font-weight:bold;color:#000;}.rich-calendar-month{background-color:#BED6F8;font-size:11px;font-family:Arial,Verdana,sans-serif;font-weight:bold;color:#000;white-space:nowrap;}.rich-calendar-days{border-bottom-color:#BED6F8;border-right-color:#BED6F8;background:#ECF4FE;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-calendar-weekends{color:red;}.rich-calendar-week{background:#ECF4FE;border-bottom-color:#B!
ED6F8;background-color:#F5F5F5;border-right-color:#BED6F8;font!
-size:11
px;font-family:Arial,Verdana,sans-serif;}.rich-calendar-holly{background-color:#FFEBDA;color:#FF7800;}.rich-calendar-boundary-dates{color:#a0a0a0;}.rich-calendar-today{background-color:#FF7800;color:#FFEBDA;font-weight:bold;}.rich-calendar-select{background-color:#BED6F8;color:#000;font-weight:bold;}.rich-calendar-hover{background-color:#E4F5E2;color:#000;}.rich-calendar-toolfooter{background:#ECF4FE;font-size:11px;font-family:Arial,Verdana,sans-serif;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.iconimages.CalendarSeparator/DATB/eAFjYGAAAAADAAE_.jsf);background-repeat:no-repeat;background-position:right center;}.rich-calendar-tool-btn{cursor:pointer;padding:2px 3px 2px 3px;white-space:nowrap;}.rich-calendar-tool-btn-disabled{padding:2px 3px 2px 3px;white-space:nowrap;}.rich-calendar-tool-btn-hover{background-color:#F5F5F5;color:#000;border:1px solid;border-color:#FFF;border-right-color:#BED6F8;border-bottom-color:#BED6F8;padding:1px 2px !
1px 2px;}.rich-calendar-tool-btn-press{border-color:#BED6F8;border-right-color:#FFF;border-bottom-color:#FFF;}.rich-calendar-footer-optional{border-top-color:#BED6F8;border-right-color:#BED6F8;background:#ECF4FE;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-calendar-footer{border-top-color:#BED6F8;border-right-color:#BED6F8;background:#ECF4FE;font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-calendar-tool-close{padding:2px 2px 2px 4px;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.iconimages.CalendarSeparator/DATB/eAFjYGAAAAADAAE_.jsf);background-repeat:no-repeat;background-position:left center;}.rich-calendar-button{cursor:pointer;vertical-align:middle;}.rich-calendar-editor-shadow{background:#FFF;opacity:.5;filter:alpha(opacity=50);}.rich-calendar-time-layout{background:#ECF4FE;border:1px solid;border-color:#BED6F8;position:relative;}.rich-calendar-date-layout{background:#FFF;border:1px solid;border-color:#BED6F8;p!
osition:relative;}.rich-calendar-time-layout,.rich-calendar-da!
te-layou
t,.rich-calendar-time-layout input{font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-calendar-time-layout-fields{padding:7px 7px 5px 7px;white-space:nowrap;}.rich-calendar-time-layout-cancel{padding:0 7px 7px 1px;}.rich-calendar-time-layout-ok{padding:0 1px 7px 7px;}.rich-calendar-date-layout-cancel{background:#ECF4FE;border-top:1px solid;border-top-color:#BED6F8;padding:5px 5px 5px 1px;}.rich-calendar-date-layout-ok{background:#ECF4FE;border-top:1px solid;border-top-color:#BED6F8;padding:5px 1px 5px 5px;}.rich-calendar-date-layout-split{border-right:1px solid;border-right-color:#BED6F8;}.rich-calendar-time-btn{width:45px;border:1px solid;border-color:#FFF;border-right-color:#BED6F8;border-bottom-color:#BED6F8;background:#ECF4FE;text-align:center;padding:2px;white-space:nowrap;text-align:center;cursor:pointer;}.rich-calendar-time-btn-press{border:1px solid;border-color:#BED6F8;border-right-color:#FFF;border-bottom-color:#FFF;background-color:#F5F5F5;}.rich-calendar-!
time-input{width:22px;margin:0 2px;}.rich-calendar-spinner-up{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerButtonUp/DATB/eAFjYGD4!!8!AAYAAv4_.jsf);height:7px;width:14px;margin:0 1px 1px 0;}.rich-calendar-spinner-down{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerButtonDown/DATB/eAFjYGD4!!8!AAYAAv4_.jsf);height:7px;width:14px;margin:0 1px 1px 0;}.rich-calendar-spinner-pressed{margin:1px 0 0 1px;}.rich-calendar-spinner-buttons{background-color:#BED6F8;border-color:#BED6F8;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerButtonGradient/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);}.rich-calendar-spinner-input{font-size:11;font-family:Arial,Verdana,sans-serif;width:18px;}.rich-calendar-spinner-input-container{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerFieldGradient/DATB/eAH79-XN!!!!mQAaRgXe!
.jsf);background-color:#fff;border-color:#BED6F8;border-bottom!
-color:#
fff;border-right-color:#fff;}.rich-calendar-editor-layout-shadow{background-color:#000;opacity:.3;filter:alpha(opacity=30);position:absolute;}.rich-calendar-editor-btn{width:36px;padding:2px;margin:2px;text-align:center;cursor:pointer;}.rich-calendar-editor-btn-over{padding:1px;border:1px solid;border-color:#BED6F8;background:#E4F5E2;}.rich-calendar-editor-btn-selected{background-color:#FF7800;padding:2px;border:0;color:#FFEBDA;font-weight:bold;cursor:default;}.rich-calendar-editor-tool-over{padding:1px;border:1px solid;background:#ECF4FE;border-color:#FFF;border-right-color:#BED6F8;border-bottom-color:#BED6F8;}.rich-calendar-editor-tool-press{padding:1px;border:1px solid;background:#ECF4FE;border-color:#BED6F8;border-right-color:#FFF;border-bottom-color:#FFF;}.rich-sdt-sort-asc,.rich-sdt-sort-desc{width:16px;height:6px;background-position:50% 50%;background-repeat:no-repeat;}.rich-sdt-sort-icon{position:absolute;visibility:hidden;}.rich-sdt{padding:0;margin:0;z-index:0;bord!
er-style:solid;}.rich-sdt-header-cell{-o-text-overflow:ellipsis;text-overflow:ellipsis;font-weight:normal;box-sizing:border-box;-moz-box-sizing:border-box;-moz-outline:none;-moz-user-focus:normal;border-right-style:solid;}.rich-sdt-header-cell .sort-asc,.rich-sdt-header-cell .sort-desc{background-position:right;background-repeat:no-repeat;width:16px!important;position:absolute;}.rich-sdt-hsep{background-position:center;background-repeat:repeat-y;cursor:e-resize;font-size:20px;top:0;width:6px;height:100%;position:absolute;display:block;z-index:60;}.rich-sdt-hsplit{width:1px;border-right:1px dashed;cursor:col-resize;z-index:100;}.rich-sdt-fb{z-index:50;}.rich-sdt-nb{z-index:20;}.rich-std-footer-row{border-top:1px solid #cbc7b8;}.rich-sdt-footer-cell{-o-text-overflow:ellipsis;text-overflow:ellipsis;font-weight:normal;box-sizing:border-box;-moz-box-sizing:border-box;-moz-outline:none;-moz-user-focus:normal;border-right:1px solid;}.rich-sdt-column-cell{box-sizing:border-box;-moz!
-box-sizing:border-box;-moz-outline:none;-moz-user-focus:norma!
l;border
-right:1px solid;border-bottom:1px solid;}.rich-sdt-ho{position:absolute;height:10px;width:10px;}.rich-sdt-row{font-weight:normal;white-space:nowrap;box-sizing:border-box;-moz-box-sizing:border-box;}.rich-sdt-header-cell-body,.rich-sdt-column-cell-body,.rich-sdt-footer-cell-body{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;-moz-box-sizing:border-box;-moz-outline:none;height:20px;}.rich-sdt-substrate{z-index:48;filter:Alpha(opacity=0);position:absolute;top:0;left:0;display:block;}.rich-sdt-fb,.rich-sdt-nb{display:block;float:left;position:absolute;}.rich-sdt-inlinebox{position:relative;display:block;overflow:hidden;}.rich-sdt{background-color:#FFF;border-color:#C0C0C0;border-width:1px;}.rich-std-header-row{background-color:#BED6F8;}.rich-sdt-header-cell{color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;border-bottom-width:1px;border-bottom-color:#C0C0C0;border-right-width:1px;border-right-color:#C0C0C0;}.rich-sdt-hsplit{bord!
er-right-color:#E5973E;}.rich-std-footer-row{background-color:#f1f1f1;}.rich-sdt-footer-cell{border-right-color:#C0C0C0;}.rich-sdt-column-cell{border-right-color:#C0C0C0;border-bottom-color:#C0C0C0;}.rich-sdt-row-selected{background-color:#ECF4FE;}.rich-sdt-row-active{color:#8DB7F3;}.rich-sdt-header-cell-body,.rich-sdt-column-cell-body,.rich-sdt-footer-cell-body{font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-sdt-sort-asc{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.iconimages.DataTableIconSortAsc/DATB/eAFjYGD4!!8!AAYAAv4_.jsf);}.rich-sdt-sort-desc{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.iconimages.DataTableIconSortDesc/DATB/eAFjYGD4!!8!AAYAAv4_.jsf);}.rich-sdt-hsep{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.iconimages.ScrollableDataTableIconSplit/DATB/eAFjYGD4cW0fAAVYAo0_.jsf);}.java_plain{color:#000;}.java_keyword{color:#000;font-weight:bold;!
}.java_type{color:#002cdd;}.java_operator{color:#007c1f;}.java!
_separat
or{color:#0021ff;}.java_literal{color:#bc0000;}.java_comment{color:#939393;background-color:#f7f7f7;}.java_javadoc_comment{color:#939393;background-color:#f7f7f7;font-style:italic;}.java_javadoc_tag{color:#939393;background-color:#f7f7f7;font-style:italic;font-weight:bold;}.xml_plain{color:#000;}.xml_char_data{color:#000;}.xml_tag_symbols{color:#003bff;}.xml_comment{color:#939393;background-color:#f7f7f7;}.xml_attribute_value{color:#c10000;}.xml_attribute_name{color:#000;font-weight:bold;}.xml_processing_instruction{color:#000;font-weight:bold;font-style:italic;}.xml_tag_name{color:#0037ff;}.xml_rife_tag{color:#000;background-color:#e4e6a0;}.xml_rife_name{color:#0000c4;background-color:#e4e6a0;}.cpp_plain{color:#000;}.cpp_keyword{color:#000;font-weight:bold;}.cpp_type{color:#002cdd;}.cpp_operator{color:#007c1f;}.cpp_separator{color:#0021ff;}.cpp_literal{color:#bc0000;}.cpp_comment{color:#939393;background-color:#f7f7f7;}.cpp_doxygen_comment{color:#939393;background-color:#f7!
f7f7;font-style:italic;}.cpp_doxygen_tag{color:#939393;background-color:#f7f7f7;font-style:italic;font-weight:bold;}.cpp_preproc{color:purple;}.dr-insert-error{color:red;font-weight:bold;}.rich-ordering-control-img{margin:0;padding:0;border:0;width:15px;height:15px;}.rich-ordering-control-disabled{border:1px solid;margin-bottom:3px;}.rich-ordering-control-top{border:1px solid;margin-bottom:3px;}.rich-ordering-control-bottom{border:1px solid;margin-bottom:3px;}.rich-ordering-control-up{border:1px solid;margin-bottom:3px;}.rich-ordering-control-down{border:1px solid;margin-bottom:3px;}.rich-ordering-list-button{background:top left repeat-x;cursor:pointer;padding:2px;}.rich-ordering-list-button-disabled{background:top left repeat-x;padding:2px;cursor:default;}.rich-ordering-list-button-light{background:top left repeat-x;border-style:solid;cursor:pointer;padding:1px;}.rich-ordering-list-button-press{background:top left repeat-x;border-style:solid;padding:2px 0 0 2px;cursor:poin!
ter;cursor:hand;}.rich-ordering-list-button-valign{vertical-al!
ign:midd
le;}.rich-ordering-list-button-layout{padding:15px 0 15px 0;}.rich-ordering-list-button-content{padding:0 1px 0 1px;text-align:left;white-space:nowrap;}.rich-ordering-list-button-content img{margin-right:2px;vertical-align:middle;}a.rich-ordering-list-button-selection:visited,a.rich-ordering-list-button-selection:link{color:inherit;}.rich-ordering-list-caption{text-align:left;height:8px;padding:3px 3px 3px 8px;}.rich-ordering-list-body{border:0 solid;}.rich-ordering-list-output{border:1px solid;margin:0 8px 8px 8px;background:none repeat scroll 0 50%;}.rich-ordering-list-content{overflow:auto;}.rich-ordering-list-header{overflow:hidden;}.rich-ordering-list-active{background:repeat scroll left top;width:100%;}.rich-ordering-list-disabled{background:repeat scroll left top;width:100%;}.rich-ordering-list-row-active{background:transparent none repeat-x scroll left top;width:100%;}.rich-ordering-list-row-selected{background:transparent none repeat-x scroll left top;width:100%;}.r!
ich-ordering-list-table-header-cell,.rich-ordering-list-table-header-cell-last{white-space:nowrap;background-repeat:repeat-x;border-style:solid;padding:2px;font-weight:normal;border-top:0;border-left:0;}.rich-ordering-list-cell{padding:2px;white-space:nowrap;}.rich-ordering-list-cell-selected{padding:2px 2px;white-space:nowrap;}.rich-ordering-list-cell-active{padding:1px 2px;white-space:nowrap;border-top:1px dotted;border-bottom:1px dotted;}.rich-ordering-list-ds{-moz-user-select:-moz-none;}.rich-ordering-list-ds input{-moz-user-select:text;}.rich-ordering-list-button{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);background-color:#C6DEFF;color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-ordering-list-button-disabled{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eA!
H7!!!!!3vHmAAaGQWj.jsf);background-color:#C6DEFF;color:#8DB7F3!
;font-fa
mily:Arial,Verdana,sans-serif;font-size:11px;}.rich-ordering-list-button-light{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);background-color:#C6DEFF;border-color:#E79A00;border-width:1px;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;}.rich-ordering-list-button-press{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient/DATB/eAH7f-!Y!!!!mQAZCwWj.jsf);background-color:#C6DEFF;border-color:#C0C0C0;border-width:1px;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;}.rich-ordering-list-table-header-cell,.rich-ordering-list-table-header-cell-last{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);background-color:#C6DEFF;color:#000;font-family:Arial,Verdana,sans-serif;!
font-size:11px;border-right-width:1px;border-bottom-width:1px;border-right-color:#C0C0C0;border-bottom-color:#C0C0C0;}.rich-ordering-list-table-header-cell-last{border-right-width:0;}.rich-ordering-list-output{background-color:#FFF;border-color:#C0C0C0;border-width:1px;}.rich-ordering-list-cell,.rich-ordering-list-cell *{color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-ordering-list-cell-selected,.rich-ordering-list-cell-selected *{color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-ordering-list-cell-active *{font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-ordering-list-cell-active{font-size:11px;font-family:Arial,Verdana,sans-serif;border-top-color:#000;border-bottom-color:#000;}.rich-ordering-control-disabled,.rich-ordering-control-top,.rich-ordering-control-bottom,.rich-ordering-control-up,.rich-ordering-control-down{border-color:#C0C0C0;}.rich-ordering-list-button-content{font-family:Arial,Verdana,sans-serif;font-size:1!
1px;}.rich-ordering-list-button-selection{color:#000;text-deco!
ration:n
one;display:block;}.rich-ordering-list-caption{font-family:Arial,Verdana,sans-serif;font-size:11px;font-weight:bold;}.rich-ordering-list-row-selected{background-color:#ECF4FE;}.rich-list-shuttle{-moz-user-select:none;}.rich-shuttle-controls{padding:0 8px 5px 8px;}.rich-shuttle-list-content{overflow:auto;}.rich-shuttle-list-header{overflow:hidden;}.rich-shuttle-header-tab-cell,.rich-shuttle-header-tab-cell-last{padding:2px;border-style:solid;font-weight:normal;white-space:nowrap;background-repeat:repeat-x;border-top:0;border-left:0;}.rich-shuttle-internal-tab{width:100%;}.rich-shuttle-list{background-color:#FFF;border-width:0;border-style:none;}.rich-shuttle-source-cell,.rich-shuttle-target-cell,.rich-shuttle-source-cell *,.rich-shuttle-target-cell *{color:#000;font-size:11px;font-family:Arial,Verdana,sans-serif;white-space:nowrap;}.rich-shuttle-control-disabled,.rich-shuttle-control-top,.rich-shuttle-control-bottom,.rich-shuttle-control-up,.rich-shuttle-control-down,.rich-sh!
uttle-control-copyall,.rich-shuttle-control-copy,.rich-shuttle-control-remove,.rich-shuttle-control-removeall{border:1px solid;margin-bottom:3px;}.rich-list-shuttle-button,.rich-list-shuttle-button-disabled{background:top left repeat-x;padding:2px;}.rich-list-shuttle-button{cursor:pointer;}.rich-list-shuttle-button-disabled{cursor:default;}.rich-list-shuttle-button-light{background:top left repeat-x;border-style:solid;cursor:pointer;padding:1px;}.rich-list-shuttle-button-press{background:top left repeat-x;border-style:solid;padding:2px 0 0 2px;cursor:pointer;}.rich-list-shuttle-button-valign{vertical-align:middle;}.rich-list-shuttle-button-layout{padding:15px 8px 15px 0;}.rich-list-shuttle-button-content{padding:0 1px 0 1px;text-align:left;white-space:nowrap;}.rich-list-shuttle-button-content img{margin-right:2px;vertical-align:middle;}a.rich-list-shuttle-button-selection:visited,a.rich-list-shuttle-button-selection:link{color:inherit;}.rich-list-shuttle-caption{text-align:!
left;padding:1px;}.rich-shuttle-source-caption{padding:3px 3px!
3px 8px
;}.rich-shuttle-target-caption{padding:3px 3px 3px 0;}.rich-shuttle-source-items{margin:0 0 8px 8px;}.rich-shuttle-target-items{margin:0 0 8px 0;}.rich-shuttle-source-row-active,.rich-shuttle-target-row-active{background:transparent none repeat-x scroll left top;}.rich-shuttle-source-row-selected,.rich-shuttle-target-row-selected{background:transparent none repeat-x scroll left top;}.rich-shuttle-source-cell,.rich-shuttle-target-cell{padding:2px;white-space:nowrap;border:0;}.rich-shuttle-source-cell-selected,.rich-shuttle-target-cell-selected{padding:2px;white-space:nowrap;}.rich-shuttle-source-cell-active,.rich-shuttle-target-cell-active{padding:1px 2px;white-space:nowrap;border-top:1px dotted;border-bottom:1px dotted;}.rich-list-shuttle{-moz-user-select:-moz-none;}.rich-shuttle-header-tab-cell,.rich-shuttle-header-tab-cell-last{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient/DATB/eAH7!!!!!3vHmAAaG!
QWj.jsf);background-color:#C6DEFF;color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;border-right-width:1px;border-bottom-width:1px;border-right-color:#C0C0C0;border-bottom-color:#C0C0C0;}.rich-shuttle-header-tab-cell-last{border-right-width:0;}.rich-list-shuttle-button{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);background-color:#C6DEFF;color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-list-shuttle-button-disabled{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);background-color:#C6DEFF;color:#8DB7F3;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-list-shuttle-button-light{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eAH7!!!!!3vHmAA!
aGQWj.jsf);background-color:#C6DEFF;border-color:#E79A00;borde!
r-width:
1px;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;}.rich-list-shuttle-button-press{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient/DATB/eAH7f-!Y!!!!mQAZCwWj.jsf);background-color:#C6DEFF;border-color:#C0C0C0;border-width:1px;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;}.rich-shuttle-source-cell-last,.rich-shuttle-target-cell-last{border-right-color:#E79A00;}.rich-shuttle-source-items,.rich-shuttle-target-items{background-color:#FFF;border-color:#C0C0C0;border-width:1px;border-style:solid;}.rich-shuttle-source-cell-selected,.rich-shuttle-target-cell-selected,.rich-shuttle-source-cell-selected *,.rich-shuttle-target-cell-selected *{color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-shuttle-source-cell-active,.rich-shuttle-target-cell-active,.rich-shuttle-source-cell-active *,.rich-shuttle-target-cell-active *{font-size:11px;font-family:Arial,Verd!
ana,sans-serif;}.rich-shuttle-source-cell-active,.rich-shuttle-target-cell-active{border-top-color:#000;border-bottom-color:#000;}.rich-shuttle-control-disabled,.rich-shuttle-control-top,.rich-shuttle-control-bottom,.rich-shuttle-control-up,.rich-shuttle-control-down,.rich-shuttle-control-copyall,.rich-shuttle-control-copy,.rich-shuttle-control-remove,.rich-shuttle-control-removeall{border-color:#C0C0C0;}.rich-list-shuttle-button-content{font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-list-shuttle-button-selection,.rich-list-shuttle-button-selection:hover{color:#000;text-decoration:none;display:block;}.rich-shuttle-source-caption,.rich-shuttle-target-caption{font-family:Arial,Verdana,sans-serif;font-size:11px;font-weight:bold;}.rich-shuttle-source-row-selected,.rich-shuttle-target-row-selected{background-color:#ECF4FE;}input.rich-combobox-input{width:240px;position:absolute;top:0;left:0;padding-left:3px;margin:0;border-style:solid;border-width:1px;border-left-col!
or:#000;border-top-color:#000;background-position:left top;bac!
kground-
repeat:repeat-x;}input.rich-combobox-input-disabled{width:240px;position:absolute;top:0;left:0;padding-left:3px;margin:0;border-style:solid;border-width:1px;border-left-color:#000;border-top-color:#000;background-position:left top;background-repeat:repeat-x;}input.rich-combobox-input-inactive{width:240px;position:absolute;top:0;left:0;padding-left:3px;margin:0;border-style:solid;border-width:1px;border-left-color:#000;border-top-color:#000;background-position:left top;background-repeat:repeat-x;}input.rich-combobox-font-disabled{color:#AAA;}.rich-combobox-list-position{position:absolute;top:1px;left:0;}.rich-combobox-list-decoration{border:1px solid #c0c0c0;padding:0;background:#FFF;}.rich-combobox-list-scroll{overflow:auto;overflow-x:hidden;}.rich-combobox-list-cord{position:relative;}.rich-combobox-item{padding:2px;white-space:nowrap;display:block;}.rich-combobox-item-selected{padding:1px;border:1px solid #4a75b5;background-color:#4a75b5;cursor:pointer;width:100%;}.rich-co!
mbobox-strut{width:240px;position:relative;visibility:hidden;margin:0;padding-left:3px;border:1px solid #c0c0c0;}.rich-combobox-shell{position:relative;}input.rich-combobox-button{position:absolute;top:0;right:0;width:17px;padding-left:0;padding-right:0;margin:0;border-style:solid;border-right-color:#000;border-bottom-color:#000;border-width:1px;}input.rich-combobox-button-disabled{position:absolute;top:0;right:0;width:17px;padding-left:0;padding-right:0;margin:0;border-style:solid;border-right-color:#000;border-bottom-color:#000;border-width:1px;}input.rich-combobox-button-inactive{position:absolute;top:0;right:0;width:17px;padding-left:0;padding-right:0;margin:0;border-style:solid;border-right-color:#000;border-bottom-color:#000;border-width:1px;}input.rich-combobox-button-background{background-color:#4a75b5;background-repeat:repeat-x;background-position:top;cursor:pointer;}input.rich-combobox-button-background-disabled{background-color:#4a75b5;background-repeat:repeat-x;!
background-position:top;cursor:pointer;}input.rich-combobox-bu!
tton-bac
kground-inactive{background-color:#4a75b5;background-repeat:repeat-x;background-position:top;}input.rich-combobox-button-pressed-background{background-color:#4a75b5;background-repeat:repeat-x;background-position:bottom;}input.rich-combobox-button-icon{background:center no-repeat;cursor:pointer;}input.rich-combobox-button-icon-disabled{background:center no-repeat;cursor:pointer;}input.rich-combobox-button-icon-inactive{background:center no-repeat;cursor:pointer;}input.rich-combobox-button-hovered{border-width:1px;border-style:solid;}.rich-combobox-shadow{position:absolute;}.rich-combobox-shadow-tl{background-position:top left;background-repeat:repeat-x;}.rich-combobox-shadow-tr{background-repeat:repeat-x;background-position:top right;}.rich-combobox-shadow-bl{background-repeat:repeat-x;background-position:bottom left;}.rich-combobox-shadow-br{background-repeat:repeat-x;background-position:bottom right;}.rich-combobox-shadow-tl,.rich-combobox-shadow-tr,.rich-combobox-shadow-bl!
,.rich-combobox-shadow-br{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/bg_shadow.png.jsf);}input.rich-combobox-button-background,input.rich-combobox-button-background-disabled,input.rich-combobox-button-background-inactive{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerButtonGradient/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);background-color:#C6DEFF;}input.rich-combobox-button-pressed-background{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.ComboBoxButtonPressGradient/DATB/eAH7cW3f!--fmAAYUAV3.jsf);background-color:#C6DEFF;}input.rich-combobox-button-icon,input.rich-combobox-button-icon-inactive{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.ComboBoxArrowImage/DATB/eAFjYGD4f-!Y!!!!ARNrBaE_.jsf);}input.rich-combobox-button-icon-disabled{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.ren!
derkit.html.images.ComboBoxArrowImageDisable/DATB/eAH7vL33!71j!
!!!!BwAl
iQfY.jsf);}input.rich-combobox-button,input.rich-combobox-button-inactive,input.rich-combobox-button-disabled{border-top-color:#BED6F8;border-left-color:#BED6F8;}.rich-combobox-font,input.rich-combobox-font{font-size:11px;font-family:Arial,Verdana,sans-serif;color:#000;}input.rich-combobox-font-disabled,.rich-combobox-font-disabled{font-family:Arial,Verdana,sans-serif;font-size:11px;}input.rich-combobox-font-inactive,.rich-combobox-font-inactive,.rich-combobox-item{font-size:11px;font-family:Arial,Verdana,sans-serif;color:#000;}.rich-combobox-input,.rich-combobox-input-disabled,.rich-combobox-input-inactive{background-color:#fff;border-bottom-color:#BED6F8;border-right-color:#BED6F8;}.rich-combobox-item-selected{background-color:#BED6F8;border-color:#BED6F8;color:#000;}.rich-combobox-list-decoration{border-color:#BED6F8;background:#FFF;}input.rich-combobox-button-hovered{border-color:#E79A00;}.rich-picklist-controls{padding:0 8px 5px 8px;}.rich-picklist-list-content{overflow!
:auto;}.rich-picklist-internal-tab{width:100%;}.rich-picklist-body{-moz-user-select:none;}.rich-picklist-list{background-color:#FFF;border-width:0;border-style:none;}.rich-picklist-source-cell,.rich-picklist-target-cell,.rich-picklist-source-cell *,.rich-picklist-target-cell *{color:#000;font-size:11px;font-family:Arial,Verdana,sans-serif;white-space:nowrap;}.rich-picklist-control-disabled,.rich-picklist-control-top,.rich-picklist-control-bottom,.rich-picklist-control-up,.rich-picklist-control-down,.rich-picklist-control-copyall,.rich-picklist-control-copy,.rich-picklist-control-remove,.rich-picklist-control-removeall{border:1px solid;margin-bottom:3px;}.rich-list-picklist-button,.rich-list-picklist-button-disabled{background:top left repeat-x;padding:2px;}.rich-list-picklist-button{cursor:pointer;}.rich-list-picklist-button-disabled{cursor:default;}.rich-list-picklist-button-light{background:top left repeat-x;border-style:solid;cursor:pointer;padding:1px;}.rich-list-pickli!
st-button-press{background:top left repeat-x;border-style:soli!
d;paddin
g:2px 0 0 2px;cursor:pointer;}.rich-list-picklist-button-valign{vertical-align:middle;}.rich-list-picklist-button-layout{padding:15px 8px 15px 0;}.rich-list-picklist-button-content{padding:0 4px 0 1px;text-align:left;white-space:nowrap;}.rich-list-picklist-button-content img{margin-right:2px;vertical-align:middle;}a.rich-list-picklist-button-selection:visited,a.rich-list-picklist-button-selection:link{color:inherit;}.rich-list-picklist-button-a-disabled{cursor:default;text-decoration:none;}.rich-picklist-source-items{margin:0 0 8px 8px;}.rich-picklist-target-items{margin:0 0 8px 0;}.rich-picklist-source-row-active,.rich-picklist-target-row-active{background:transparent none repeat-x scroll left top;}.rich-picklist-source-row-selected,.rich-picklist-target-row-selected{background:transparent none repeat-x scroll left top;}.rich-picklist-source-cell,.rich-picklist-target-cell{padding:2px;white-space:nowrap;border:0;}.rich-picklist-source-cell-selected,.rich-picklist-target-cel!
l-selected{padding:2px;white-space:nowrap;}.rich-picklist-source-cell-active,.rich-picklist-target-cell-active{padding:1px 2px;white-space:nowrap;border-top:1px dotted;border-bottom:1px dotted;}.rich-picklist-control-img{margin:0;padding:0;border:0;width:15px;height:15px;}.rich-list-picklist{-moz-user-select:-moz-none;}.rich-list-picklist-button{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);background-color:#C6DEFF;color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-list-picklist-button-disabled{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eAH7!!!!!3vHmAAaGQWj.jsf);background-color:#C6DEFF;color:#8DB7F3;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-list-picklist-button-light{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.!
html.gradientimages.OrderingListButtonGradient/DATB/eAH7!!!!!3!
vHmAAaGQ
Wj.jsf);background-color:#C6DEFF;border-color:#E79A00;border-width:1px;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;}.rich-list-picklist-button-press{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient/DATB/eAH7f-!Y!!!!mQAZCwWj.jsf);background-color:#C6DEFF;border-color:#C0C0C0;border-width:1px;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;}.rich-picklist-source-cell-last,.rich-picklist-target-cell-last{border-right-color:#E79A00;}.rich-picklist-source-items,.rich-picklist-target-items{background-color:#FFF;border-color:#C0C0C0;border-width:1px;border-style:solid;}.rich-picklist-source-cell-selected,.rich-picklist-target-cell-selected,.rich-picklist-source-cell-selected *,.rich-picklist-target-cell-selected *{color:#000;font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-picklist-source-cell-active,.rich-picklist-target-cell-active,.rich-picklist-source-cell-ac!
tive *,.rich-picklist-target-cell-active *{font-size:11px;font-family:Arial,Verdana,sans-serif;}.rich-picklist-source-cell-active,.rich-picklist-target-cell-active{border-top-color:#000;border-bottom-color:#000;}.rich-picklist-control-disabled,.rich-picklist-control-top,.rich-picklist-control-bottom,.rich-picklist-control-up,.rich-picklist-control-down,.rich-picklist-control-copyall,.rich-picklist-control-copy,.rich-picklist-control-remove,.rich-picklist-control-removeall{border-color:#C0C0C0;}.rich-list-picklist-button-content{font-family:Arial,Verdana,sans-serif;font-size:11px;}.rich-list-picklist-button-selection{color:#000;text-decoration:none;display:block;}a.rich-list-picklist-button-a-disabled a{color:#8DB7F3;}.rich-picklist-source-row-selected,.rich-picklist-target-row-selected{background-color:#ECF4FE;}.rich-progress-bar-height{height:13px;}.rich-progress-bar-width{width:200px;}.rich-progress-bar-block{white-space:nowrap;}.rich-progress-bar-uploaded{background-repe!
at:repeat-x;}.rich-progress-bar-uploaded-dig{overflow:hidden;p!
osition:
absolute;top:0;left:0;}.rich-progress-bar-shell{margin-bottom:2px;border:1px solid;}.rich-progress-bar-shell-dig{position:relative;margin-bottom:2px;border:1px solid;overflow:hidden;}.rich-progress-bar-remained{text-align:center;font-weight:bold;position:relative;}.rich-progress-bar-completed{text-align:center;font-weight:bold;background-repeat:repeat-x;}.rich-progress-bar-padding{padding:0;}.rich-progress-bar-uploaded{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.ProgressBarAnimatedBg/DATB/eAFjmPUcAAIeAYI_.jsf);background-color:#E79A00;}.rich-progress-bar-shell{background-color:#fff;border-color:#BED6F8;}.rich-progress-bar-uploaded-dig{border-color:#BED6F8;}.rich-progress-bar-shell-dig{border-color:#BED6F8;font-family:Arial,Verdana,sans-serif;font-size:11px;color:#000;}.rich-progress-bar-remained{background-color:#fff;text-color:#000;}.rich-progress-bar-completed{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.!
renderkit.html.images.ProgressBarAnimatedBg/DATB/eAFjmPUcAAIeAYI_.jsf);background-color:#E79A00;text-color:#fff;}.rich-fileupload-list-overflow{overflow:auto;overflow-y:auto;overflow-x:hidden;}.rich-fileupload-name{width:100%;height:58px;padding:2px 10px 2px 10px;}.rich-fileupload-del{width:90px;text-align:center;padding-top:3px;padding-bottom:3px;}.rich-fileupload-scroll{width:10px;text-align:center;}.rich-fileupload-bold-label{font-weight:bold;}input[type="file"][class~="rich-fileupload-hidden"]::-webkit-rich-fileupload-button{font-size:10em;-webkit-appearance:button;}.rich-fileupload-button-content{padding:2px 6px 2px 3px;text-align:left;white-space:nowrap;}.rich-fileupload-name-padding{padding:2px 0 2px 0;}.rich-fileupload-ico{background-position:0 50%;background-repeat:no-repeat;padding-left:19px;vertical-align:middle;}input.rich-fileupload-hidden{FILTER:alpha(opacity:0);POSITION:relative;TEXT-ALIGN:left;opacity:0;moz-opacity:0;}.rich-fileupload-font{font-family:Arial,!
Verdana,sans-serif;font-size:11px;}.rich-fileupload-table-td{b!
order-bo
ttom-color:#C0C0C0;border-bottom:1px solid;white-space:nowrap;}.rich-fileupload-list-decor{border:1px solid;border-color:#C0C0C0;background-color:#FFF;}.rich-fileupload-anc{color:#0078D0;}.rich-fileupload-toolbar-decor{border-bottom:1px solid;border-top:1px solid;border-left:1px solid;padding:2px;background-color:#ECF4FE;border-bottom-color:#C0C0C0;border-top-color:#FFF;border-left-color:#FFF;width:100%;}.rich-fileupload-button-border{border:1px solid;margin:2px;border-color:#C0C0C0;}.rich-fileupload-button-dis{background-repeat:repeat-x;cursor:pointer;padding:2px;}.rich-fileupload-enrty-dis{background-repeat:repeat-x;background-color:#D6E6FB;text-color:red;a.color:red;padding:2px;}.rich-fileupload-button-content{color:#000;text-decoration:none;display:block;}.rich-fileupload-button{background-repeat:repeat-x;background-position:top left;background-color:#D6E6FB;padding:2px;cursor:pointer;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.imag!
es.UploadButtonBgGradient/DATB/eAH79-XN72fXmAAZmQWY.jsf);}.rich-fileupload-button-light{background-repeat:repeat;background-position:top left;background-color:#D6E6FB;border:1px solid;cursor:pointer;padding:1px;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.UploadButtonBgLightGradient/DATB/eAH79-XN!--fmAAaFAXJ.jsf);border-color:#E79A00;}.rich-fileupload-button-press{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.UploadButtonPressedBgGradient/DATB/eAH79-XN72fXmAAZmQWY.jsf);border-color:#E79A00;border:1px solid;padding:2px 0 0 2px;background-repeat:repeat-x;background-position:top left;background-color:#ECF4FE;}.rich-fileupload-ico-add{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/ico_add.gif.jsf);}.rich-fileupload-ico-add-dis{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/ico_add_dis.gif.jsf);color:#C0C0C!
0;}.rich-fileupload-ico-start{background-image:url(/richfaces-!
demo/a4j
/g/3_3_3.Finalorg/richfaces/renderkit/html/images/ico_start.gif.jsf);}.rich-fileupload-ico-start-dis{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/ico_start_dis.gif.jsf);color:#C0C0C0;}.rich-fileupload-ico-stop{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/ico_stop.gif.jsf);}.rich-fileupload-ico-clear{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/ico_clear.gif.jsf);}.rich-fileupload-ico-clear-dis{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/ico_clear_dis.gif.jsf);color:#C0C0C0;}.rich-inplace{position:relative;}.rich-inplace-changed{background-position:left top;background-repeat:no-repeat;border-bottom-width:1px;border-bottom-style:dashed;white-space:nowrap;}.rich-inplace-view{border-bottom-width:1px;border-bottom-style:dashed;white-space:nowrap;}input.rich-inplace-field{border-width:1px;border-style:i!
nset;margin:0;padding:0;position:absolute;top:0;left:0;font:inherit;}.rich-inplace-input-view-hover{color:blue;}.rich-inplace-input-changed-hover{color:red;}.rich-inplace-input-strut{height:1px;}.rich-inplace-control{background-position:top;background-repeat:repeat-x;border-width:1px;border-style:outset;padding:0;margin:0;}.rich-inplace-controls-press{background-position:top;background-repeat:repeat-x;border-width:1px;border-style:inset;padding:0;margin:0;}.rich-inplace-input-controls-set{white-space:nowrap;z-index:3;}.rich-inplace-shadow{position:absolute;font-size:11px;}.rich-inplace-shadow-size{width:34px;height:16px;}.rich-inplace-shadow-tl{background-repeat:repeat-x;background-position:top left;border:0!important;}.rich-inplace-shadow-tr{background-repeat:repeat-x;background-position:top right;border:0!important;}.rich-inplace-shadow-bl{background-repeat:repeat-x;background-position:bottom left;border:0!important;}.rich-inplace-shadow-br{background-repeat:repeat-x;back!
ground-position:bottom right;border:0!important;}.rich-inplace!
-control
{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerButtonGradient/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);background-color:#C6DEFF;border-color:#BED6F8;}.rich-inplace-control-press{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.ComboBoxButtonPressGradient/DATB/eAH7cW3f!--fmAAYUAV3.jsf);background-color:#C6DEFF;border-color:#BED6F8;}.rich-inplace-shadow-tl{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/bg_shadow.png.jsf);}.rich-inplace-shadow-tr{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/bg_shadow.png.jsf);}.rich-inplace-shadow-bl{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/bg_shadow.png.jsf);}.rich-inplace-shadow-br{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/bg_shadow.png.jsf);}.rich-inplace-view{background-color:#F!
1F1F1;border-bottom-color:#000;}.rich-inplace-changed{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.EditIcon/DATB/eAFjYPgPAAECAQA_.jsf);background-color:#F1F1F1;border-bottom-color:#000;}input.rich-inplace-field{background-color:#FEFFDA;border-color:#BED6F8;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/spacer.gif.jsf);}.insel_view_block_div{position:relative;padding:2px 2px 2px 5px;border:0;margin:0;}input.rich-inplace-select-arrow{padding:0;border:0;margin:0;width:12px;position:absolute;background-position:center right;background-repeat:no-repeat;font:inherit;}.rich-inplace-select{position:relative;}.rich-inplace-select-view{white-space:nowrap;border-bottom-width:1px;border-bottom-style:dashed;}.rich-inplace-select-changed{background-position:top left;background-repeat:no-repeat;}.rich-inplace-select-view-hover{color:blue;}input.rich-inplace-select-field{padding:0;border-width:1px;borde!
r-style:inset;margin:0;font:inherit;position:absolute;top:0;le!
ft:0;}.r
ich-inplace-select-field{padding:0;border-width:1px;border-style:inset;margin:0;font:inherit;position:absolute;top:0;left:0;}.rich-inplace-select-strut{height:1px;}.rich-inplace-select-control-set{white-space:nowrap;}.rich-inplace-select-control{background-position:top;background-repeat:repeat-x;border-width:1px;border-style:outset;padding:0;margin:0;}.rich-inplace-select-control-press{background-position:top;background-repeat:repeat-x;border-width:1px;border-style:none;padding:0;margin:0;}.rich-inplace-select-shadow{top:0;left:0;position:absolute;font-size:11px;}.rich-inplace-select-shadow-size{width:34px;height:16px;}.rich-inplace-select-list_cord{position:relative;font-size:0;}.rich-inplace-select-list-scroll{overflow:auto;}.rich-inplace-select-list-position{position:absolute;top:-1px;left:0;}.rich-inplace-select-list-decoration{border-width:1px;border-style:outset;padding:0;}.rich-inplace-select-item{padding:2px;white-space:nowrap;display:block;}.rich-inplace-select-sele!
cted-item{padding:1px;background-color:#4a75b5;border:1px dotted #4a75b5;}.rich-inplace-select-shadow-tl{background-repeat:repeat-x;background-position:top left;border:0!important;}.rich-inplace-select-shadow-tr{background-repeat:repeat-x;background-position:top right;border:0!important;}.rich-inplace-select-shadow-bl{background-repeat:repeat-x;background-position:bottom left;border:0!important;}.rich-inplace-select-shadow-br{background-repeat:repeat-x;background-position:bottom right;border:0!important;}.rich-inplace-select-changed{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.EditIcon/DATB/eAFjYPgPAAECAQA_.jsf);}.insel_arrow{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerButtonDown/DATB/eAFjYGD4!!8!AAYAAv4_.jsf);}.rich-inplace-select-view{background-color:#F1F1F1;}input.rich-inplace-select-field{background-color:#FEFFDA;border-color:#BED6F8;background-image:url(/richfaces-demo/a4!
j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/spacer.gif.!
jsf);}.r
ich-inplace-select-field{background-color:#FEFFDA;border-color:#BED6F8;}.rich-inplace-select-control{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerButtonGradient/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);background-color:#C6DEFF;border-color:#BED6F8;}.rich-inplace-select-control-press{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.ComboBoxButtonPressGradient/DATB/eAH7cW3f!--fmAAYUAV3.jsf);background-color:#C6DEFF;border-color:#BED6F8;}.rich-inplace-select-list-decoration{border-color:#BED6F8;background-color:#FEFFDA;}.rich-inplace-select-selected-item{color:#000;background-color:#BED6F8;border-color:#BED6F8;}.rich-inplace-select-shadow-tl,.rich-inplace-select-shadow-tr,.rich-inplace-select-shadow-bl,.rich-inplace-select-shadow-br{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/bg_shadow.png.jsf);}input.rich-inplace-select-arrow{background-image:url(/ri!
chfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.images.SpinnerButtonDown/DATB/eAFjYGD4!!8!AAYAAv4_.jsf);background-color:#FEFFDA;}.extdt-table-layout{table-layout:fixed;border-spacing:0;}.extdt-subheadercell{overflow:hidden;}.extdt-menu-div-out{height:22px;position:absolute;width:20px;}.extdt-fakeierow{display:none;}.extdt-noData-cell{text-align:center;font-weight:bold;}.extdt-menu-div-on{height:22px;position:absolute;width:20px;}.extdt-group-row{height:15px;}.extdt-group-text{font-family:Arial,Verdana,sans-serif;font-size:11px;margin-left:10px;}.extdt-ss-hdn{display:none;position:absolute;}.extdt-ss-vsbl{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-color:white;background-repeat:no-repeat;background-position:center;z-index:4;}.extdt-group-cell{height:15px;padding:4px;background-color:#eee;border-bottom:1px #c0c0c0 solid;border-top:1px #c0c0c0 solid;font-family:Arial,Verdana,sans-serif;font-size:11px;}.extdt-group-image-expanded{h!
eight:10px;width:10px;background-repeat:no-repeat;background-p!
osition:
center;}.extdt-group-image-folded{height:10px;width:10px;background-repeat:no-repeat;background-position:center;}.extdt-hsplit{width:1px;border-right:1px dashed;cursor:e-resize;z-index:100;}.dt-menu{border:1px solid #718bb7;z-index:15000;zoom:1;background-color:#f0f0f0;background-repeat:repeat-y;padding:2px;position:absolute;}.dt-menu a{text-decoration:none!important;}.dt-menu-list{background:transparent none repeat scroll 0 50%;border:0 none;}.dt-menu-list-item{font:normal 11px tahoma,arial,sans-serif;white-space:nowrap;-moz-user-select:none;-khtml-user-select:none;display:block;padding:1px;}.dt-menu a.dt-menu-item{display:block;line-height:16px;padding:3px 21px 3px 3px;white-space:nowrap;text-decoration:none;color:#222;-moz-outline:0 none;outline:0 none;cursor:pointer;}.dt-menu-item-icon{border:0 none;height:16px;padding:0;vertical-align:top;width:16px;margin:0 8px 0 0;background-position:center;}.dt-menu-check-item .dt-menu-item-icon{background-color:transparent;backgroun!
d-repeat:no-repeat;background-position:center;}.extdt-hdrop{cursor:pointer;font-size:1px;width:10px;height:13px;top:0;position:absolute;display:block;white-space:nowrap;z-index:61;}.extdt-hdrop-top{background-repeat:no-repeat;display:block;width:100%;height:50%;position:relative;top:-9px;}.extdt-hdrop-top-left{background-position:top left;left:-5px;}.extdt-hdrop-top-right{background-position:top right;right:-4px;}.extdt-hdrop-bottom{background-repeat:no-repeat;display:block;width:100%;height:50%;position:relative;top:9px;}.extdt-caption{padding:4px;}.extdt-hdrop-bottom-left{background-position:bottom left;left:-5px;}.extdt-hdrop-bottom-right{background-position:bottom right;right:-4px;}.extdt-cell-div{cursor:default;font-weight:normal;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;-moz-box-sizing:border-box;-moz-outline:none;width:100%;}.extdt-innerdiv{top:0;left:0;position:absolute;}.extdt-outerdiv{position:relative;padding:0;width:100%!
;}.extdt-hsep{background-position:center;background-repeat:rep!
eat-y;cu
rsor:e-resize;font-size:1px;width:6px;height:13px;overflow:hidden;top:0;position:absolute;display:block;white-space:nowrap;z-index:60;}.extdt-content{overflow-x:hidden;overflow-y:auto;}.rich-filter-input{width:80%;}.extdt-menu-div-on{background:#ECF4FE url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/menuHover.gif.jsf);}.extdt-empty-cell{border-bottom:solid 1px #C0C0C0;}.extdt-fakeierow{background-color:#ECF4FE;}.extdt-hsplit{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/s.gif.jsf);}.extdt-hdrop{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/s.gif.jsf);}.extdt-ss-vsbl{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/loading.gif.jsf);}.extdt-table-layout{background-color:#FFF;empty-cells:show;border-collapse:collapse;}.extdt-maindiv{border:solid 1px #C0C0C0;}.extdt!
-group-image-expanded{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/minusIcon.gif.jsf);}.extdt-group-image-folded{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/plusIcon.gif.jsf);}.dt-menu{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/menu.gif.jsf);}.dt-menu-check-item .dt-menu-item-icon{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/unchecked.gif.jsf);}.dt-menu-item-checked .dt-menu-item-icon{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/checked.gif.jsf);}.extdt-hdrop-top{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/col-move-top.gif.jsf);}.extdt-hdrop-bottom{background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/col-move-bottom.gif.jsf);}.extdt-hsep{background-image:url(/richfaces!
-demo/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/images/s.g!
if.jsf);
}.extdt{border-top:solid 1px #C0C0C0;border-left:solid 1px #C0C0C0;border-right:solid 1px #C0C0C0;background-color:#FFF;empty-cells:show;border-collapse:collapse;}.extdt-cell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px 4px 4px 4px;font-size:11px;color:#000;font-family:Arial,Verdana,sans-serif;}.extdt-header{background-color:#BED6F8;background-image:url(/richfaces-demo/a4j/g/3_3_3.Finalorg.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.jsf);background-position:top left;background-repeat:repeat-x;}.extdt-header-continue{background-color:#BED6F8;}.extdt-headercell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px 4px 4px 4px;color:#000;text-align:center;font-weight:bold;font-size:11px;font-family:Arial,Verdana,sans-serif;}.extdt-subheader{background-color:#ECF4FE;}.extdt-table-filterrow{background-color:#ECF4FE;border-top:solid 1px #C0C0C0;}.extdt-subheadercell{border-right:solid 1px #C0C0C0;border-bottom:sol!
id 1px #C0C0C0;padding:4px 4px 4px 4px;text-align:center;font-size:11px;color:#000;font-family:Arial,Verdana,sans-serif;white-space:nowrap;}.extdt-sortable-header{background-position:right center;background-repeat:no-repeat;white-space:nowrap;}.extdt-cursor-pointer{cursor:pointer;}.rich-inplace-edit,.rich-inplace-view{cursor:default;}.extdt-header-sort-img{vertical-align:middle;width:15px;height:15px;}.extdt-footer{background-color:#ccc;}.extdt-footer-continue{background-color:#ccc;}.extdt-caption{border-bottom:solid 1px #C0C0C0;color:#000;font-weight:bold;font-size:11px;font-family:Arial,Verdana,sans-serif;background-color:#ECF4FE;}.extdt-footercell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px 4px 4px 4px;color:#000;text-align:left;font-weight:bold;font-size:11px;font-family:Arial,Verdana,sans-serif;}.extdt-subfooter{background-color:#f1f1f1;}.extdt-subfootercell{border-right:solid 1px #C0C0C0;border-bottom:solid 1px #C0C0C0;padding:4px 4px 4p!
x 4px;text-align:left;font-size:11px;color:#000;font-family:Ar!
ial,Verd
ana,sans-serif;}.extdt-row-selected{background-color:#ECF4FE;}.extdt-row-active{color:#8DB7F3;}.rich-page-footer{clear:both;}.rich-page{margin:auto;text-align:left;min-width:750px;}.rich-page-sidebar{position:relative;}.rich-page-sidebar,.rich-page-body{_position:static;}.rich-page-body{position:static;}.rich-page-main{width:100%;}.rich-page-content:after{content:'.';display:block;height:0;clear:both;visibility:hidden;}.rich-page-content{zoom:1;}
+ </style>
</head>
<body style="margin : 30px">
13 years, 8 months
JBoss Rich Faces SVN: r19553 - in modules/tests/metamer/trunk: ftest and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-10-13 09:01:27 -0400 (Wed, 13 Oct 2010)
New Revision: 19553
Modified:
modules/tests/metamer/trunk/application/pom.xml
modules/tests/metamer/trunk/ftest/pom.xml
Log:
added profiles for testing JSF RI (Mojarra) 2.1.0
Modified: modules/tests/metamer/trunk/application/pom.xml
===================================================================
--- modules/tests/metamer/trunk/application/pom.xml 2010-10-13 12:31:49 UTC (rev 19552)
+++ modules/tests/metamer/trunk/application/pom.xml 2010-10-13 13:01:27 UTC (rev 19553)
@@ -406,6 +406,41 @@
</build>
</profile>
<profile>
+ <id>war-mojarra_2_1_0</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>2.1.0-b05</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>2.1.0-b05</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>mojarra_2_1_0</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>war</goal>
+ </goals>
+ <configuration>
+ <classifier>mojarra_2_1_0</classifier>
+ <packagingExcludes>WEB-INF/lib/myfaces-api-*,WEB-INF/lib/myfaces-impl-*</packagingExcludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>myfaces-development</id>
<dependencies>
<dependency>
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2010-10-13 12:31:49 UTC (rev 19552)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2010-10-13 13:01:27 UTC (rev 19553)
@@ -330,6 +330,12 @@
</properties>
</profile>
<profile>
+ <id>tomcat6x-mojarra_2_1_0</id>
+ <properties>
+ <deployable.classifier>mojarra_2_1_0</deployable.classifier>
+ </properties>
+ </profile>
+ <profile>
<id>tomcat6x-myfaces</id>
<properties>
<deployable.classifier>myfaces</deployable.classifier>
@@ -343,6 +349,12 @@
</properties>
</profile>
<profile>
+ <id>jboss6x-mojarra_2_1_0</id>
+ <properties>
+ <deployable.classifier>mojarra_2_1_0</deployable.classifier>
+ </properties>
+ </profile>
+ <profile>
<id>jboss6x-myfaces</id>
<properties>
<deployable.classifier>myfaces</deployable.classifier>
@@ -356,6 +368,12 @@
</properties>
</profile>
<profile>
+ <id>jboss6x-snapshot-mojarra_2_1_0</id>
+ <properties>
+ <deployable.classifier>mojarra_2_1_0</deployable.classifier>
+ </properties>
+ </profile>
+ <profile>
<id>jboss6x-snapshot-myfaces</id>
<properties>
<deployable.classifier>jee6</deployable.classifier>
13 years, 8 months
JBoss Rich Faces SVN: r19552 - modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-10-13 08:31:49 -0400 (Wed, 13 Oct 2010)
New Revision: 19552
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/VersionBean.java
Log:
rewritten JSF version detection
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/VersionBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/VersionBean.java 2010-10-13 12:31:02 UTC (rev 19551)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/VersionBean.java 2010-10-13 12:31:49 UTC (rev 19552)
@@ -21,16 +21,9 @@
*******************************************************************************/
package org.richfaces.tests.metamer.bean;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
-import java.net.URL;
-import java.security.CodeSource;
import java.util.Properties;
-import java.util.jar.JarInputStream;
-import java.util.jar.Manifest;
import javax.annotation.PostConstruct;
import javax.faces.application.ProjectStage;
import javax.faces.bean.ApplicationScoped;
@@ -54,6 +47,7 @@
public final class VersionBean {
private static final Logger LOGGER = RichfacesLogger.APPLICATION.getLogger();
+ private static final String UNKNOWN_JSF = "Unknown version of JSF";
private String implementationVendor;
private String implementationVersion;
private String implementationTitle;
@@ -163,42 +157,28 @@
}
public String getJsfVersion() {
+
+
if (jsfVersion != null) {
return jsfVersion;
}
-
+
FacesContext facesContext = FacesContext.getCurrentInstance();
+
if (facesContext == null) {
- return null;
+ return UNKNOWN_JSF;
}
+
+ jsfVersion = UNKNOWN_JSF;
Class<?> applicationClass = facesContext.getApplication().getClass();
- JarInputStream jarInputStream = null;
-
- try {
- CodeSource codeSource = applicationClass.getProtectionDomain().getCodeSource();
- URL url = codeSource.getLocation();
- File file = new File(url.getFile());
- jarInputStream = new JarInputStream(new FileInputStream(file));
- Manifest manifest = jarInputStream.getManifest();
-
- if (manifest != null && manifest.getMainAttributes() != null) {
- jsfVersion = manifest.getMainAttributes().getValue("Implementation-Title");
- jsfVersion += " ";
- jsfVersion += manifest.getMainAttributes().getValue("Implementation-Version");
- } else {
- jsfVersion = "Unknown version of JSF";
+ Package pack = applicationClass.getPackage();
+
+ if (pack.getImplementationTitle() != null) {
+ jsfVersion = pack.getImplementationTitle();
+ if (pack.getImplementationVersion() != null) {
+ jsfVersion += " " + pack.getImplementationVersion();
}
- } catch (Exception e) {
- LOGGER.error(e);
- } finally {
- if (jarInputStream != null) {
- try {
- jarInputStream.close();
- } catch (IOException e) {
- LOGGER.error(e);
- }
- }
}
return jsfVersion;
13 years, 8 months
JBoss Rich Faces SVN: r19551 - modules/tests/metamer/trunk/application.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-10-13 08:31:02 -0400 (Wed, 13 Oct 2010)
New Revision: 19551
Modified:
modules/tests/metamer/trunk/application/pom.xml
Log:
added profile for myfaces development inside Eclipse
Modified: modules/tests/metamer/trunk/application/pom.xml
===================================================================
--- modules/tests/metamer/trunk/application/pom.xml 2010-10-13 10:53:02 UTC (rev 19550)
+++ modules/tests/metamer/trunk/application/pom.xml 2010-10-13 12:31:02 UTC (rev 19551)
@@ -405,6 +405,32 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>myfaces-development</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-api</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-impl</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
</project>
13 years, 8 months
JBoss Rich Faces SVN: r19550 - trunk/core/impl/src/main/resources/META-INF/resources.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-10-13 06:53:02 -0400 (Wed, 13 Oct 2010)
New Revision: 19550
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js
Log:
RF-9152, RF-9168
richfaces container fixes
RichFaces.$$ was added
Modified: trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js
===================================================================
--- trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js 2010-10-13 10:51:33 UTC (rev 19549)
+++ trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js 2010-10-13 10:53:02 UTC (rev 19550)
@@ -40,9 +40,20 @@
var element = richfaces.getDomElement(source);
if (element) {
- return (element["richfaces"] || {})["component"];
+ return (element[richfaces.RICH_CONTAINER] || {})["component"];
}
}
+
+ richfaces.$$ = function(componentName, element)
+ {
+ while (element.parentNode) {
+ var e = element[richfaces.RICH_CONTAINER];
+ if (e && e.component && e.component.name==componentName)
+ return e.component;
+ else
+ element = element.parentNode;
+ }
+ }
// find component and call his method
richfaces.invokeMethod = function(source, method) {
13 years, 8 months
JBoss Rich Faces SVN: r19549 - sandbox/trunk/prototypes/calendar.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-10-13 06:51:33 -0400 (Wed, 13 Oct 2010)
New Revision: 19549
Modified:
sandbox/trunk/prototypes/calendar/calendar-utils.js
sandbox/trunk/prototypes/calendar/calendar.js
sandbox/trunk/prototypes/calendar/richfaces.js
Log:
https://jira.jboss.org/browse/RF-9152
https://jira.jboss.org/browse/RF-9168
calendar prototype
Modified: sandbox/trunk/prototypes/calendar/calendar-utils.js
===================================================================
--- sandbox/trunk/prototypes/calendar/calendar-utils.js 2010-10-13 10:01:15 UTC (rev 19548)
+++ sandbox/trunk/prototypes/calendar/calendar-utils.js 2010-10-13 10:51:33 UTC (rev 19549)
@@ -226,7 +226,7 @@
getFirstWeek: function(year, mdifw, fdow) {
var date = new Date(year,0,1);
- var firstday = getDay(date, fdow);
+ var firstday = this.getDay(date, fdow);
var weeknumber = (7-firstday<mdifw) ? 0 : 1;
@@ -236,7 +236,7 @@
getLastWeekOfPrevYear: function(o) {
var year = o.date.getFullYear()-1;
var days = (isLeapYear(year) ? 366 : 365);
- var obj = getFirstWeek(year, o.mdifw, o.fdow);
+ var obj = this.getFirstWeek(year, o.mdifw, o.fdow);
days = (days - 7 + o.firstDay);
var weeks = Math.floor(days/7)+1;
@@ -245,7 +245,7 @@
weekNumber: function(year, month, mdifw, fdow) {
- var o = getFirstWeek(year, mdifw, fdow);
+ var o = this.getFirstWeek(year, mdifw, fdow);
if (month==0)
{
@@ -254,7 +254,7 @@
}
var oneweek = 604800000;
var d = new Date(year, month,1);
- d.setDate( 1+o.firstDay + (getDay(d,fdow)==0?1:0));
+ d.setDate( 1+o.firstDay + (this.getDay(d,fdow)==0?1:0));
weeknumber = o.weekNumber + Math.floor((d.getTime() - o.date.getTime()) / oneweek);
Modified: sandbox/trunk/prototypes/calendar/calendar.js
===================================================================
--- sandbox/trunk/prototypes/calendar/calendar.js 2010-10-13 10:01:15 UTC (rev 19548)
+++ sandbox/trunk/prototypes/calendar/calendar.js 2010-10-13 10:51:33 UTC (rev 19549)
@@ -169,7 +169,7 @@
[
new E('td',{'class': 'rich-calendar-time-layout-ok'},
[
- new E('div',{'id': function(context){return context.calendar.TIME_EDITOR_BUTTON_OK}, 'class': 'rich-calendar-time-btn', 'style': 'float:right;', 'onmousedown': "jQuery(this).addClass('rich-calendar-time-btn-press');", 'onmouseout': "jQuery(this).removeClass('rich-calendar-time-btn-press');", 'onmouseup': "jQuery(this).removeClass('rich-calendar-time-btn-press');", 'onclick': function(context){return "$('"+context.calendar.id+"').component.hideTimeEditor(true)";}},
+ new E('div',{'id': function(context){return context.calendar.TIME_EDITOR_BUTTON_OK}, 'class': 'rich-calendar-time-btn', 'style': 'float:right;', 'onmousedown': "jQuery(this).addClass('rich-calendar-time-btn-press');", 'onmouseout': "jQuery(this).removeClass('rich-calendar-time-btn-press');", 'onmouseup': "jQuery(this).removeClass('rich-calendar-time-btn-press');", 'onclick': function(context){return "RichFaces.$('"+context.calendar.id+"').hideTimeEditor(true)";}},
[
new E('span',{},
[
@@ -180,7 +180,7 @@
,
new E('td',{'class': 'rich-calendar-time-layout-cancel'},
[
- new E('div',{'id': function(context){return context.calendar.TIME_EDITOR_BUTTON_CANCEL}, 'class': 'rich-calendar-time-btn', 'style': 'float:left;', 'onmousedown': "jQuery(this).addClass('rich-calendar-time-btn-press');", 'onmouseout': "jQuery(this).removeClass('rich-calendar-time-btn-press');", 'onmouseup': "jQuery(this).removeClass('rich-calendar-time-btn-press');", 'onclick': function(context){return "$('"+context.calendar.id+"').component.hideTimeEditor(false)";}},
+ new E('div',{'id': function(context){return context.calendar.TIME_EDITOR_BUTTON_CANCEL}, 'class': 'rich-calendar-time-btn', 'style': 'float:left;', 'onmousedown': "jQuery(this).addClass('rich-calendar-time-btn-press');", 'onmouseout': "jQuery(this).removeClass('rich-calendar-time-btn-press');", 'onmouseup': "jQuery(this).removeClass('rich-calendar-time-btn-press');", 'onclick': function(context){return "RichFaces.$('"+context.calendar.id+"').hideTimeEditor(false)";}},
[
new E('span',{},
[
@@ -471,23 +471,20 @@
}
var div = rf.getDomElement(this.id);
- $(div).replaceWith(htmlTextHeader+htmlHeaderOptional+htmlControlsHeader+htmlTextWeekDayBar.join('')+htmlTextWeek.join('')+htmlControlsFooter+htmlFooterOptional+htmlTextFooter);
- this.attachToDom(div);
+ div = $(div).replaceWith(htmlTextHeader+htmlHeaderOptional+htmlControlsHeader+htmlTextWeekDayBar.join('')+htmlTextWeek.join('')+htmlControlsFooter+htmlFooterOptional+htmlTextFooter);
+ this.attachToDom(this.id); // TODO: optimize double $
// memory leaks fix // from old 3.3.x code, may be not needed now
div = null;
- if(this.params.submitFunction) this.submitFunction = this.params.submitFunction.bind(this);
- this.prepareEvents(); //TODO: function
-
// add onclick event handlers to input field and popup button
if (this.params.popup && !this.params.disabled)
{
- var handler = new Function ('event', "RichFaces.$('"+this.id+"').doSwitch();").bindAsEventListener();
- Event.observe(this.POPUP_BUTTON_ID, "click", handler, false);
+ var handler = new Function ('event', "RichFaces.$('"+this.id+"').doSwitch();");
+ rf.Event.bindById(this.POPUP_BUTTON_ID, "click"+this.namespace, handler);
if (!this.params.enableManualInput)
{
- Event.observe(this.INPUT_DATE_ID, "click", handler, false);
+ rf.Event.bindById(this.INPUT_DATE_ID, "click"+this.namespace, handler);
}
}
@@ -521,8 +518,8 @@
{
if (this.params.popup && this.isVisible)
{
- Richfaces.removeScrollEventHandlers(this.scrollElements, this.eventOnScroll);
- Event.stopObserving(window.document, "click", this.eventOnCollapse, false);
+ rf.Event.unbindScrollEventHandlers(this.scrollElements, this);
+ rf.Event.unbind(window.document, "click"+this.namespace);
}
},
@@ -547,7 +544,7 @@
scrollEditorYear: function(value)
{
- var element = $(this.DATE_EDITOR_LAYOUT_ID+'TR');
+ var element = rf.getDomElement(this.DATE_EDITOR_LAYOUT_ID+'TR');
if (this.dateEditorYearID)
{
@@ -602,9 +599,9 @@
updateTimeEditor: function()
{
- var th=$(this.id+'TimeHours');
- var ts=$(this.id+'TimeSign');
- var tm=$(this.id+'TimeMinutes');
+ var th=rf.getDomElement(this.id+'TimeHours');
+ var ts=rf.getDomElement(this.id+'TimeSign');
+ var tm=rf.getDomElement(this.id+'TimeMinutes');
var h = this.selectedDate.getHours();
var m = this.selectedDate.getMinutes();
@@ -621,31 +618,26 @@
createEditor: function()
{
- var element = $(this.id);
- var htmlBegin = '<div id="'+this.EDITOR_SHADOW_ID+'" class="rich-calendar-editor-shadow" style="position:absolute; display:none;"></div><table border="0" cellpadding="0" cellspacing="0" id="'+this.EDITOR_ID+'" style="position:absolute; display:none;" onclick="$(\''+this.id+'\').component.skipEventOnCollapse=true;"><tbody><tr><td class="rich-calendar-editor-container" align="center"><div style="position:relative; width:100%">';
+ var element = $(rf.getDomElement(this.id));
+ var zindex = parseInt(element.css('z-index'), 10);
+ var htmlBegin = '<div id="'+this.EDITOR_SHADOW_ID+'" class="rich-calendar-editor-shadow" style="position:absolute; display:none;z-index:'+zindex+'"></div><table border="0" cellpadding="0" cellspacing="0" id="'+this.EDITOR_ID+'" style="position:absolute; display:none;z-index:'+(zindex+1)+'" onclick="RichFaces.$(\''+this.id+'\').skipEventOnCollapse=true;"><tbody><tr><td class="rich-calendar-editor-container" align="center"><div style="position:relative; width:100%">';
var htmlContent = '<div id="'+this.EDITOR_LAYOUT_SHADOW_ID+'" class="rich-calendar-editor-layout-shadow"></div>';
var htmlEnd = '</div></td></tr></tbody></table>';
- new Insertion.After(element, htmlBegin+htmlContent+htmlEnd);
- //+this.evaluateMarkup(CalendarView.timeEditor, this.calendarContext)+
- var editor_shadow = $(this.EDITOR_SHADOW_ID);
- var editor = $(this.EDITOR_ID);
- var zindex = element.getStyle('z-index');
- editor_shadow.style.zIndex = zindex;
- editor.style.zIndex = parseInt(zindex,10)+1;
+ element.after(htmlBegin+htmlContent+htmlEnd);
this.isEditorCreated = true;
- return editor;
+ return rf.getDomElement(this.EDITOR_ID);
},
createTimeEditorLayout: function(editor)
{
Element.insert(this.EDITOR_LAYOUT_SHADOW_ID, {after:this.evaluateMarkup(CalendarView.timeEditorLayout, this.calendarContext)});
- var th=$(this.id+'TimeHours');
+ var th=rf.getDomElement(this.id+'TimeHours');
var ts;
- var tm=$(this.id+'TimeMinutes');
+ var tm=rf.getDomElement(this.id+'TimeMinutes');
if (this.timeType==1)
{
sbjQuery(th).SpinButton({digits:this.timeHoursDigits,min:0,max:23});
@@ -653,7 +645,7 @@
else
{
sbjQuery(th).SpinButton({digits:this.timeHoursDigits,min:1,max:12});
- ts=$(this.id+'TimeSign');
+ ts=rf.getDomElement(this.id+'TimeSign');
sbjQuery(ts).SpinButton({});
}
sbjQuery(tm).SpinButton({digits:2,min:0,max:59});
@@ -665,8 +657,8 @@
correctEditorButtons: function(editor, buttonID1, buttonID2)
{
- var button1 = $(buttonID1);
- var button2 = $(buttonID2);
+ var button1 = rf.getDomElement(buttonID1);
+ var button2 = rf.getDomElement(buttonID2);
editor.style.visibility = "hidden";
editor.style.display = "";
var width1 = Richfaces.Calendar.getOffsetDimensions(button1.firstChild).width;
@@ -687,12 +679,12 @@
if (buttonType==0)
{
return '<div id="'+id+'" class="rich-calendar-editor-btn'+(className ? ' '+className : '')+
- '" onmouseover="this.className=\'rich-calendar-editor-btn rich-calendar-editor-tool-over\';" onmouseout="this.className=\'rich-calendar-editor-btn\';" onmousedown="this.className=\'rich-calendar-editor-btn rich-calendar-editor-tool-press\';" onmouseup="this.className=\'rich-calendar-editor-btn rich-calendar-editor-tool-over\';" onclick="$(\''+this.id+'\').component.scrollEditorYear('+param+');">'+value+'</div>';
+ '" onmouseover="this.className=\'rich-calendar-editor-btn rich-calendar-editor-tool-over\';" onmouseout="this.className=\'rich-calendar-editor-btn\';" onmousedown="this.className=\'rich-calendar-editor-btn rich-calendar-editor-tool-press\';" onmouseup="this.className=\'rich-calendar-editor-btn rich-calendar-editor-tool-over\';" onclick="RichFaces.$(\''+this.id+'\').scrollEditorYear('+param+');">'+value+'</div>';
}
else
{
- var onclick = (buttonType==1 ? '$(\''+this.id+'\').component.dateEditorSelectMonth('+param+');':
- '$(\''+this.id+'\').component.dateEditorSelectYear('+param+');' );
+ var onclick = (buttonType==1 ? 'RichFaces.$(\''+this.id+'\').dateEditorSelectMonth('+param+');':
+ 'RichFaces.$(\''+this.id+'\').dateEditorSelectYear('+param+');' );
return '<div id="'+id+'" class="rich-calendar-editor-btn'+(className ? ' '+className : '')+
'" onmouseover="Element.addClassName(this, \'rich-calendar-editor-btn-over\');" onmouseout="Element.removeClassName(this,\'rich-calendar-editor-btn-over\');" onclick="'+onclick+'">'+value+'</div>';
}
@@ -725,9 +717,9 @@
this.dateEditorMonthID = this.DATE_EDITOR_LAYOUT_ID+'M'+this.dateEditorMonth;
htmlContent+='</tr><tr><td colspan="2" class="rich-calendar-date-layout-ok">'+
- '<div id="'+this.DATE_EDITOR_BUTTON_OK+'" class="rich-calendar-time-btn" style="float:right;" onmousedown="Element.addClassName(this, \'rich-calendar-time-btn-press\');" onmouseout="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onmouseup="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onclick="$(\''+this.id+'\').component.hideDateEditor(true);"><span>'+this.params.labels.ok+'</span></div>'+
+ '<div id="'+this.DATE_EDITOR_BUTTON_OK+'" class="rich-calendar-time-btn" style="float:right;" onmousedown="Element.addClassName(this, \'rich-calendar-time-btn-press\');" onmouseout="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onmouseup="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onclick="RichFaces.$(\''+this.id+'\').hideDateEditor(true);"><span>'+this.params.labels.ok+'</span></div>'+
'</td><td colspan="2" class="rich-calendar-date-layout-cancel">'+
- '<div id="'+this.DATE_EDITOR_BUTTON_CANCEL+'" class="rich-calendar-time-btn" style="float:left;" onmousedown="Element.addClassName(this, \'rich-calendar-time-btn-press\');" onmouseout="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onmouseup="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onclick="$(\''+this.id+'\').component.hideDateEditor(false);"><span>'+this.params.labels.cancel+'</span></div>'+
+ '<div id="'+this.DATE_EDITOR_BUTTON_CANCEL+'" class="rich-calendar-time-btn" style="float:left;" onmousedown="Element.addClassName(this, \'rich-calendar-time-btn-press\');" onmouseout="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onmouseup="Element.removeClassName(this, \'rich-calendar-time-btn-press\');" onclick="RichFaces.$(\''+this.id+'\').hideDateEditor(false);"><span>'+this.params.labels.cancel+'</span></div>'+
'</td>';
@@ -855,13 +847,13 @@
if (!this.params.popup || !this.isVisible) return;
- var element = $(this.id);
+ var element = rf.getDomElement(this.id);
if (this.invokeEvent("collapse", element))
{
if (this.isEditorVisible) this.hideEditor();
- Richfaces.removeScrollEventHandlers(this.scrollElements, this.eventOnScroll);
- Event.stopObserving(window.document, "click", this.eventOnCollapse, false);
+ rf.Event.unbindScrollEventHandlers(this.scrollElements, this);
+ rf.Event.unbind(window.document, "click"+this.namespace);
Element.hide(element);
this.isVisible = false;
@@ -882,11 +874,11 @@
if (e && e.type=='click') this.skipEventOnCollapse = true;
if (!this.params.popup || this.isVisible) return;
- var element = $(this.id);
+ var element = rf.getDomElement(this.id);
if (this.invokeEvent("expand", element, e))
{
- var base = $(this.POPUP_ID)
+ var base = rf.getDomElement(this.POPUP_ID)
var baseInput = base.firstChild;
var baseButton = baseInput.nextSibling;
@@ -923,11 +915,11 @@
this.isVisible = true;
- Event.observe(window.document, "click", this.eventOnCollapse, false);
+ rf.Event.bind(window.document, "click"+this.namespace, this.eventOnCollapse);
- Richfaces.removeScrollEventHandlers(this.scrollElements, this.eventOnScroll);
+ rf.Event.unbindScrollEventHandlers(this.scrollElements, this);
if (this.params.hidePopupOnScroll) {
- this.scrollElements = Richfaces.setupScrollEventHandlers(element, this.eventOnScroll);
+ this.scrollElements = rf.Event.bindScrollEventHandlers(element, this.eventOnScroll, this);
}
}
},
@@ -955,7 +947,7 @@
//Position.prepare();
// TODO: remove line below and check functionality
- if (Position.within($(this.id), Event.pointerX(e), Event.pointerY(e))) return true;
+ if (Position.within(rf.getDomElement(this.id), Event.pointerX(e), Event.pointerY(e))) return true;
this.doCollapse();
return true;
@@ -963,7 +955,7 @@
setInputField: function(dateStr, event)
{
- var field = $(this.INPUT_DATE_ID);
+ var field = rf.getDomElement(this.INPUT_DATE_ID);
if (field.value!=dateStr)
{
field.value=dateStr;
@@ -1022,49 +1014,6 @@
return (weekday == this.firstWeekendDayNumber || weekday == this.secondWeekendDayNumber);
},
- prepareEvents: function() {
- this.eventOnCollapse = this.eventOnCollapse.bindAsEventListener(this);
- this.eventOnScroll = this.eventOnScroll.bindAsEventListener(this);
- },
-
- invokeEvent: function(eventName, element, event, date) {
- var eventFunction = this.params['on'+eventName];
- var result;
-
- if (eventFunction)
- {
- var eventObj;
-
- if (event)
- {
- eventObj = event;
- }
- else if( document.createEventObject )
- {
- eventObj = document.createEventObject();
- }
- else if( document.createEvent )
- {
- eventObj = document.createEvent('Events');
- eventObj.initEvent( eventName, true, false );
- }
-
- eventObj.rich = {component:this};
- eventObj.rich.date = date;
-
- try
- {
- result = eventFunction.call(element, eventObj);
- }
- catch (e) { LOG.warn("Exception: "+e.Message + "\n[on"+eventName + "]"); }
-
- }
-
- if (result!=false) result = true;
-
- return result;
- },
-
setupTimeForDate: function (date) {
if (this.selectedDate && (!this.params.resetTimeOnDateSelect ||
(this.selectedDate.getFullYear() == date.getFullYear() &&
@@ -1144,7 +1093,6 @@
// styleClass
// }
- //if (!$(this.id).component) return;
if (daysData) {
this.daysData = this.indexData(daysData, isAjaxMode);
@@ -1188,26 +1136,8 @@
},
getCellBackgroundColor: function(element)
- {
- var result;
- if (Richfaces.browser.isSafari && this.params.popup && !this.isVisible)
- {
- // Safari 2.0 fix
- // if [display:none] Element.getStyle() function returns null;
- var els = $(this.id).style;
- var originalVisibility = els.visibility;
- var originalDisplay = els.display;
- els.visibility = 'hidden';
- els.display = '';
- result = Element.getStyle(element, 'background-color').parseColor();
- els.display = originalDisplay;
- els.visibility = originalVisibility;
- } else
- {
- result = Element.getStyle(element, 'background-color').parseColor();
- }
-
- return result;
+ {
+ return $(element).css('background-color');
},
clearEffect: function (element_id, effect, className, className1)
@@ -1219,10 +1149,10 @@
}
if (element_id)
{
- var e = $(element_id);
- e.style['backgroundColor'] = '';
- if (className) Element.removeClassName(e, className);
- if (className1) Element.addClassName(e, className1);
+ var e = $(rf.getElementById(element_id));
+ e.css('backgroundColor') = '';
+ if (className) e.removeClass(className);
+ if (className1) Element.addClass(className1);
}
return null;
},
@@ -1241,9 +1171,9 @@
var selectedflag = this.selectedDate && (currentYear == this.selectedDate.getFullYear() && currentMonth == this.selectedDate.getMonth())
var selecteddate = this.selectedDate && this.selectedDate.getDate();
- var wd = getDay(this.currentDate, this.params.firstWeekDay);
- var currentMonthDays = daysInMonthByDate(this.currentDate);
- var previousMonthDays = daysInMonth(currentYear, currentMonth-1);
+ var wd = rf.calendarUtils.getDay(this.currentDate, this.params.firstWeekDay);
+ var currentMonthDays = rf.calendarUtils.daysInMonthByDate(this.currentDate);
+ var previousMonthDays = rf.calendarUtils.daysInMonth(currentYear, currentMonth-1);
var p=0;
var month=-1;
@@ -1309,7 +1239,7 @@
var element;
var dataobj;
var wn;
- if (this.params.showWeeksBar) wn = weekNumber(currentYear, currentMonth, this.params.minDaysInFirstWeek, this.params.firstWeekDay); /// fix it
+ if (this.params.showWeeksBar) wn = rf.calendarUtils.weekNumber(currentYear, currentMonth, this.params.minDaysInFirstWeek, this.params.firstWeekDay); /// fix it
this.selectedDayElement=null;
var weekflag=true;
@@ -1321,7 +1251,7 @@
this.selectedDateCellId = this.clearEffect(this.selectedDateCellId, this.highlightEffect2);
//var _d=new Date();
- var obj = $(this.WEEKNUMBER_BAR_ID+"1");
+ var obj = rf.getDomElement(this.WEEKNUMBER_BAR_ID+"1");
for (var k=1;k<7;k++)
{
//
@@ -1446,10 +1376,10 @@
{
if (!markup) return;
- var e = $(elementId);
+ var e = rf.getDomElement(elementId);
if (!e) return;
- e.innerHTML = evaluateMarkup(markup, context);
+ e.innerHTML = this.evaluateMarkup(markup, context);
},
evaluateMarkup: function(markup, context)
@@ -1460,8 +1390,8 @@
var m;
for (var i=0; i<markup.length; i++) {
m = markup[i]['getContent'];
- if (m) {
- result.push(m(context));
+ if (m['getContent']) {
+ result.push(m.getContent(context));
}
}
return result.join('');
@@ -1470,10 +1400,10 @@
onUpdate: function()
{
var formattedDate = Richfaces.Calendar.formatDate(this.getCurrentDate(),"MM/yyyy");
- $(this.id+'InputCurrentDate').value=formattedDate;
+ rf.getDomElement(this.id+'InputCurrentDate').value=formattedDate;
if (this.submitFunction)
- this.submitFunction(formattedDate);
+ this.submitFunction.call(this, formattedDate);
else
this.render();
},
@@ -1498,7 +1428,7 @@
if (this.getCurrentMonth()!=month || this.getCurrentYear()!=year)
{
var date = new Date(year, month,1);
- if (this.invokeEvent("currentdateselect", $(this.id), null, date))
+ if (this.invokeEvent("currentdateselect", rf.getDomElement(this.id), null, date))
{
// fix for RF-2450.
// Additional event is fired: after the hidden input with current date
@@ -1506,7 +1436,7 @@
// the "currentdateselected" Event is fired.
this.currentDate = date;
if (noUpdate) this.render(); else this.onUpdate();
- this.invokeEvent("currentdateselected", $(this.id), null, date);
+ this.invokeEvent("currentdateselected", rf.getDomElement(this.id), null, date);
return true;
}
}
@@ -1516,7 +1446,7 @@
changeCurrentDateOffset: function(yearOffset, monthOffset) {
var date = new Date(this.currentDate.getFullYear()+yearOffset, this.currentDate.getMonth()+monthOffset,1);
- if (this.invokeEvent("currentdateselect", $(this.id), null, date))
+ if (this.invokeEvent("currentdateselect", rf.getDomElement(this.id), null, date))
{
// fix for RF-2450.
// Additional event is fired: after the hidden input with current date
@@ -1524,7 +1454,7 @@
// the "currentdateselected" Event is fired.
this.currentDate = date;
this.onUpdate();
- this.invokeEvent("currentdateselected", $(this.id), null, date);
+ this.invokeEvent("currentdateselected", rf.getDomElement(this.id), null, date);
}
},
@@ -1563,8 +1493,9 @@
this.clearEffect(this.todayCellId, this.highlightEffect);
if (this.todayCellColor!="transparent")
{
- this.highlightEffect = new Effect.Highlight($(this.todayCellId), {startcolor: this.todayCellColor, duration:0.3, transition: Effect.Transitions.sinoidal,
- afterFinish: this.onHighlightFinish});
+ // TODO: add jquery effects
+ /*this.highlightEffect = new Effect.Highlight($(this.todayCellId), {startcolor: this.todayCellColor, duration:0.3, transition: Effect.Transitions.sinoidal,
+ afterFinish: this.onHighlightFinish});*/
}
}
}
@@ -1583,7 +1514,7 @@
{
if (this.todayCellId)
{
- var daydata = this.days[parseInt($(this.todayCellId).id.substr(this.DATE_ELEMENT_ID.length),10)];
+ var daydata = this.days[parseInt(this.todayCellId.substr(this.DATE_ELEMENT_ID.length),10)];
var today = new Date();
var date = new Date(today.getFullYear(), today.getMonth(), today.getDate());
if (this.timeType)
@@ -1643,15 +1574,15 @@
if (!oldSelectedDate || (oldSelectedDate - this.selectedDate))
{
// find cell and change style class
- var e = $(this.DATE_ELEMENT_ID+(this.firstDateIndex + this.selectedDate.getDate()-1));
+ var e = $(rf.getDomElement(this.DATE_ELEMENT_ID+(this.firstDateIndex + this.selectedDate.getDate()-1)));
this.clearEffect(this.selectedDateCellId, this.highlightEffect2, "rich-calendar-select", (this.params.disabled || this.params.readonly ? null : "rich-calendar-btn"));
- this.selectedDateCellId = e.id;
+ this.selectedDateCellId = e.attr('id');
this.selectedDateCellColor = this.getCellBackgroundColor(e);
- Element.removeClassName(e, "rich-calendar-btn");
- Element.removeClassName(e, "rich-calendar-hover");
- Element.addClassName(e, "rich-calendar-select");
+ e.removeClass("rich-calendar-btn");
+ e.removeClass("rich-calendar-hover");
+ e.addClass("rich-calendar-select");
this.renderHF();
}
@@ -1746,8 +1677,9 @@
this.clearEffect(this.selectedDateCellId, this.highlightEffect2);
if (this.selectedDateCellColor!="transparent")
{
- this.highlightEffect2 = new Effect.Highlight($(this.selectedDateCellId), {startcolor: this.selectedDateCellColor, duration:0.3, transition: Effect.Transitions.sinoidal,
- afterFinish: this.onHighlightFinish});
+ // TODO: add jquery effects
+ /*this.highlightEffect2 = new Effect.Highlight($(this.selectedDateCellId), {startcolor: this.selectedDateCellColor, duration:0.3, transition: Effect.Transitions.sinoidal,
+ afterFinish: this.onHighlightFinish});*/
}
}
}
@@ -1778,20 +1710,20 @@
var editor;
if (this.timeType==0) return;
if (!this.isEditorCreated) editor = this.createEditor();
- else editor = $(this.EDITOR_ID);
+ else editor = rf.getDomElement(this.EDITOR_ID);
if (!this.isTimeEditorLayoutCreated) this.createTimeEditorLayout(editor);
- $(this.TIME_EDITOR_LAYOUT_ID).show();
+ $(rf.getDomElement(this.TIME_EDITOR_LAYOUT_ID)).show();
- var editor_shadow = $(this.EDITOR_SHADOW_ID);
+ var editor_shadow = rf.getDomElement(this.EDITOR_SHADOW_ID);
- this.setEditorPosition($(this.id), editor, editor_shadow);
+ this.setEditorPosition(rf.getDomElement(this.id), editor, editor_shadow);
this.updateTimeEditor();
- editor_shadow.show();
+ $(editor_shadow).show();
- editor.show();
+ $(editor).show();
Element.clonePosition(this.EDITOR_LAYOUT_SHADOW_ID, this.TIME_EDITOR_LAYOUT_ID, {offsetLeft: 3, offsetTop: 3});
this.isEditorVisible = true;
@@ -1799,10 +1731,10 @@
hideEditor: function()
{
- if (this.isTimeEditorLayoutCreated) $(this.TIME_EDITOR_LAYOUT_ID).hide();
- if (this.isDateEditorLayoutCreated) $(this.DATE_EDITOR_LAYOUT_ID).hide();
- $(this.EDITOR_ID).hide();
- $(this.EDITOR_SHADOW_ID).hide();
+ if (this.isTimeEditorLayoutCreated) $(rf.getDomElement(this.TIME_EDITOR_LAYOUT_ID)).hide();
+ if (this.isDateEditorLayoutCreated) $(rf.getDomElement(this.DATE_EDITOR_LAYOUT_ID)).hide();
+ $(rf.getDomElement(this.EDITOR_ID)).hide();
+ $(rf.getDomElement(this.EDITOR_SHADOW_ID)).hide();
this.isEditorVisible = false;
},
@@ -1811,11 +1743,11 @@
this.hideEditor();
if (updateTime && this.selectedDate)
{
- var m = parseInt($(this.id+'TimeMinutes').value,10);
- var h=parseInt($(this.id+'TimeHours').value,10);
+ var m = parseInt(rf.getDomElement(this.id+'TimeMinutes').value,10);
+ var h=parseInt(rf.getDomElement(this.id+'TimeHours').value,10);
if (this.timeType==2)
{
- if ($(this.id+'TimeSign').value.toLowerCase()=="am")
+ if (rf.getDomElement(this.id+'TimeSign').value.toLowerCase()=="am")
{
if (h==12) h = 0;
}
@@ -1840,18 +1772,18 @@
{
var editor;
if (!this.isEditorCreated) editor = this.createEditor();
- else editor = $(this.EDITOR_ID);
+ else editor = rf.getDomElement(this.EDITOR_ID);
if (!this.isDateEditorLayoutCreated) this.createDateEditorLayout(editor);
else this.updateDateEditor();
- $(this.DATE_EDITOR_LAYOUT_ID).show();
+ $(rf.getDomElement(this.DATE_EDITOR_LAYOUT_ID)).show();
- var editor_shadow = $(this.EDITOR_SHADOW_ID);
+ var editor_shadow = rf.getDomElement(this.EDITOR_SHADOW_ID);
- this.setEditorPosition($(this.id), editor, editor_shadow);
+ this.setEditorPosition(rf.getDomElement(this.id), editor, editor_shadow);
- editor_shadow.show();
- editor.show();
+ $(editor_shadow).show();
+ $(editor).show();
Element.clonePosition(this.EDITOR_LAYOUT_SHADOW_ID, this.DATE_EDITOR_LAYOUT_ID, {offsetLeft: 3, offsetTop: 3});
Modified: sandbox/trunk/prototypes/calendar/richfaces.js
===================================================================
--- sandbox/trunk/prototypes/calendar/richfaces.js 2010-10-13 10:01:15 UTC (rev 19548)
+++ sandbox/trunk/prototypes/calendar/richfaces.js 2010-10-13 10:51:33 UTC (rev 19549)
@@ -40,7 +40,7 @@
var element = richfaces.getDomElement(source);
if (element) {
- return (element["richfaces"] || {})["component"];
+ return (element[richfaces.RICH_CONTAINER] || {})["component"];
}
}
13 years, 8 months
JBoss Rich Faces SVN: r19548 - in trunk/ui/input/ui/src/main: resources/META-INF/resources/org.richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-10-13 06:01:15 -0400 (Wed, 13 Oct 2010)
New Revision: 19548
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/selectList.js
Log:
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2010-10-13 09:31:42 UTC (rev 19547)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2010-10-13 10:01:15 UTC (rev 19548)
@@ -55,7 +55,9 @@
@ResourceDependency(name = "richfaces-base-component.js"),
@ResourceDependency(name = "richfaces-selection.js"),
@ResourceDependency(library = "org.richfaces", name = "inplaceBase.js"),
- @ResourceDependency(library = "org.richfaces", name = "select.js"),
+ @ResourceDependency(library = "org.richfaces", name = "popup.js"),
+ @ResourceDependency(library = "org.richfaces", name = "popupList.js"),
+ @ResourceDependency(library = "org.richfaces", name = "selectList.js"),
@ResourceDependency(library = "org.richfaces", name = "inplaceInput.js"),
@ResourceDependency(library = "org.richfaces", name = "inplaceSelect.js"),
@ResourceDependency(library = "org.richfaces", name = "inplaceSelect.ecss") })
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js 2010-10-13 09:31:42 UTC (rev 19547)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js 2010-10-13 10:01:15 UTC (rev 19548)
@@ -4,7 +4,7 @@
rf.ui.InplaceSelect = function(id, options) {
$super.constructor.call(this, id, options)
- this.select = new rf.ui.Select(options.listCord, this, options);
+ this.select = new rf.ui.SelectList(options.listCord, this, options);
this.selectItems = options.selectItems;
this.selValueInput = $(document.getElementById(options.selValueInput));
this.openPopup = false;
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js 2010-10-13 09:31:42 UTC (rev 19547)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popup.js 2010-10-13 10:01:15 UTC (rev 19548)
@@ -4,12 +4,10 @@
rf.ui.Popup = function(id, options) {
this.id = id;
+ this.attachToDom(id);
this.popup = $(document.getElementById(id));
this.visible = options.visible;
- //TODO: remove this?
- this.popup.bind("blur", $.proxy(this.__onBlur, this));
-
this.popup.bind("mouseover", $.proxy(this.__onMouseOver, this));
this.popup.bind("click", $.proxy(this.__onClick, this));
};
@@ -24,12 +22,12 @@
name : "popup",
show: function() {
- this.select.css("display", "");
+ this.popup.css("display", "");
this.visible = true;
},
hide: function() {
- this.select.css("display", "none");
+ this.popup.css("display", "none");
this.visible = false;
},
@@ -45,11 +43,9 @@
},
__onClick: function(e) {
- },
-
- __onBlurHandler: function(e) {
- }
+ }
+ }
- })());
+ })());
})(jQuery, window.RichFaces);
\ No newline at end of file
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js 2010-10-13 09:31:42 UTC (rev 19547)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js 2010-10-13 10:01:15 UTC (rev 19548)
@@ -48,9 +48,13 @@
this.items = this.popup.find("."+this.itemCss);
},
- __select: function(index) {
- var item;
-
+ __select: function(item) {
+ var index = this.items.index(item);
+ this.__selectByIndex(index);
+ },
+
+ __selectByIndex: function(index) {
+ var item;
if (this.index != -1) {
item = this.items.eq(this.index);
this.__unSelectItem(item);
@@ -75,6 +79,7 @@
item.removeClass(this.selectItemCss);
},
+ //remove event, rename ???
__onEnter: function(e) {
},
@@ -90,15 +95,13 @@
__onMouseOver: function(e) {
var item = this.__getItem(e);
- var index = this.items.index(item);
- this.__select(index);
+ this.__select(item);
},
__onClick: function(e) {
var item = this.__getItem(e);
- var index = this.items.index(item);
- this.__select(index);
this.processItem(e, item);
+ this.__select(item);
},
__getItem: function(e) {
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/selectList.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/selectList.js 2010-10-13 09:31:42 UTC (rev 19547)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/selectList.js 2010-10-13 10:01:15 UTC (rev 19548)
@@ -3,7 +3,7 @@
rf.ui = rf.ui || {};
rf.ui.SelectList = function(id, listener, options) {
- $super.constructor.call(this, id, options);
+ $super.constructor.call(this, id, listener, options);
};
rf.ui.PopupList.extend(rf.ui.SelectList);
13 years, 8 months
JBoss Rich Faces SVN: r19547 - modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-10-13 05:31:42 -0400 (Wed, 13 Oct 2010)
New Revision: 19547
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml
Log:
* checkbox in composite component attributes changed to selectOneRadio so that null can be selected
Modified: modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml 2010-10-12 16:55:58 UTC (rev 19546)
+++ modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml 2010-10-13 09:31:42 UTC (rev 19547)
@@ -32,7 +32,11 @@
<c:choose>
<c:when test="#{entry.value.boolean}">
- <h:selectBooleanCheckbox id="#{entry.key}Input" value="#{entry.value.value}" onchange="#{cc.attrs.type == 'server' ? 'submit()' : 'submitAjax()'}" />
+ <h:selectOneRadio id="#{entry.key}Input" value="#{entry.value.value}" onchange="#{cc.attrs.type == 'server' ? 'submit()' : 'submitAjax()'}">
+ <f:selectItem itemValue="null" itemLabel="null"/>
+ <f:selectItem itemValue="true" itemLabel="true"/>
+ <f:selectItem itemValue="false" itemLabel="false"/>
+ </h:selectOneRadio>
</c:when>
<c:when test="#{entry.value.selectOptions != null}">
13 years, 8 months
JBoss Rich Faces SVN: r19546 - in branches/RF-7817: push-redesign-app/src/main/java/demo and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-10-12 12:55:58 -0400 (Tue, 12 Oct 2010)
New Revision: 19546
Added:
branches/RF-7817/push-redesign-app/src/main/java/demo/ChatBean.java
Removed:
branches/RF-7817/push-redesign-app/src/main/java/demo/Bean.java
Modified:
branches/RF-7817/push-redesign-app/src/main/webapp/index.xhtml
branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionImpl.java
branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionTrackerImpl.java
branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionsWorker.java
branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/RequestImpl.java
Log:
https://jira.jboss.org/browse/RF-7817:
- bug fixing
- chat demo improved
Modified: branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionImpl.java
===================================================================
--- branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionImpl.java 2010-10-12 15:44:25 UTC (rev 19545)
+++ branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionImpl.java 2010-10-12 16:55:58 UTC (rev 19546)
@@ -141,7 +141,7 @@
request.resume();
}
- request.removeListener(this);
+ //TODO - request.removeListener(this) ?
resetExpirationTime();
pushTracker.onRequestDisconnected(this);
}
@@ -167,6 +167,7 @@
for (TopicKey topicKey : topics) {
subscriptionContext.removeMessageListener(topicKey, this);
}
+ pushTracker.getPushSessionsWorker().removeAll(this);
}
public void writeMessages() throws IOException {
Modified: branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionTrackerImpl.java
===================================================================
--- branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionTrackerImpl.java 2010-10-12 15:44:25 UTC (rev 19545)
+++ branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionTrackerImpl.java 2010-10-12 16:55:58 UTC (rev 19546)
@@ -24,7 +24,6 @@
import java.util.UUID;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.DelayQueue;
-import java.util.concurrent.Executors;
import org.richfaces.application.push.PushSessionTracker;
import org.richfaces.application.push.SubscriptionContext;
@@ -63,7 +62,9 @@
public PushSessionTrackerImpl(SubscriptionContext subscriptionContext) {
//TODO use configurable executor service
- Executors.newFixedThreadPool(1).submit(new SessionsExpirationRunnable());
+ Thread t = new Thread(new SessionsExpirationRunnable(), "rf-push-session-tracker");
+ t.setDaemon(true);
+ t.start();
this.subscriptionContext = subscriptionContext;
this.pushSessionsWorker = new PushSessionsWorker(8);
Modified: branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionsWorker.java
===================================================================
--- branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionsWorker.java 2010-10-12 15:44:25 UTC (rev 19545)
+++ branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/PushSessionsWorker.java 2010-10-12 16:55:58 UTC (rev 19546)
@@ -37,10 +37,18 @@
private BlockingQueue<PushSession> sessionsQueue = new LinkedBlockingQueue<PushSession>();
+ //TODO - number of sessions posted to the queue should not exceed two items
public void submit(PushSession session) {
sessionsQueue.add(session);
}
+ public void removeAll(PushSession session) {
+ boolean elementRemoved;
+ do {
+ elementRemoved = sessionsQueue.remove(session);
+ } while (elementRemoved);
+ }
+
public void run() {
while (true) {
try {
@@ -90,7 +98,9 @@
pipelines = new Pipeline[numThreads];
for (int i = 0; i < pipelines.length; i++) {
pipelines[i] = new Pipeline();
- new Thread(pipelines[i]).start();
+ Thread t = new Thread(pipelines[i], "rf-push-broadcater-" + i);
+ t.setDaemon(true);
+ t.start();
}
}
@@ -98,4 +108,9 @@
int pipelineIdx = hashIdx(session.getId());
pipelines[pipelineIdx].submit(session);
}
+
+ public void removeAll(PushSession session) {
+ int pipelineIdx = hashIdx(session.getId());
+ pipelines[pipelineIdx].removeAll(session);
+ }
}
Modified: branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/RequestImpl.java
===================================================================
--- branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/RequestImpl.java 2010-10-12 15:44:25 UTC (rev 19545)
+++ branches/RF-7817/push-redesign/src/main/java/org/richfaces/application/push/impl/RequestImpl.java 2010-10-12 16:55:58 UTC (rev 19546)
@@ -23,8 +23,8 @@
import java.io.IOException;
import java.io.PrintWriter;
+import java.util.ArrayList;
import java.util.List;
-import java.util.concurrent.CopyOnWriteArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -52,8 +52,7 @@
private AtmosphereResource<HttpServletRequest, HttpServletResponse> atmosphereResource;
- //TODO - performance?
- private List<RequestLifecycleListener> listeners = new CopyOnWriteArrayList<RequestLifecycleListener>();
+ private List<RequestLifecycleListener> listeners = new ArrayList<RequestLifecycleListener>();
private AtmosphereResourceEventListener atmosphereListener = new AtmosphereResourceEventListener() {
Deleted: branches/RF-7817/push-redesign-app/src/main/java/demo/Bean.java
===================================================================
--- branches/RF-7817/push-redesign-app/src/main/java/demo/Bean.java 2010-10-12 15:44:25 UTC (rev 19545)
+++ branches/RF-7817/push-redesign-app/src/main/java/demo/Bean.java 2010-10-12 16:55:58 UTC (rev 19546)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package demo;
-
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.ManagedProperty;
-import javax.faces.bean.RequestScoped;
-
-import org.richfaces.application.push.PublisherContext;
-import org.richfaces.application.push.TopicKey;
-
-/**
- * @author Nick Belaevski
- *
- */
-@ManagedBean
-@RequestScoped
-public class Bean {
-
- private String message;
-
- @ManagedProperty("#{" + PublisherContext.ATTRIBUTE_NAME + "}")
- private PublisherContext publisherContext;
-
- public String getMessage() {
- return message;
- }
-
- public void setMessage(String message) {
- this.message = message;
- }
-
- public void say() {
- publisherContext.publish(new TopicKey("chat"), message);
- }
-
- /**
- * @param publisherContext the publisherContext to set
- */
- public void setPublisherContext(PublisherContext publisherContext) {
- this.publisherContext = publisherContext;
- }
-}
Copied: branches/RF-7817/push-redesign-app/src/main/java/demo/ChatBean.java (from rev 19527, branches/RF-7817/push-redesign-app/src/main/java/demo/Bean.java)
===================================================================
--- branches/RF-7817/push-redesign-app/src/main/java/demo/ChatBean.java (rev 0)
+++ branches/RF-7817/push-redesign-app/src/main/java/demo/ChatBean.java 2010-10-12 16:55:58 UTC (rev 19546)
@@ -0,0 +1,93 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package demo;
+
+import java.io.Serializable;
+import java.text.MessageFormat;
+import java.util.Date;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ManagedProperty;
+import javax.faces.bean.ViewScoped;
+
+import org.richfaces.application.push.PublisherContext;
+import org.richfaces.application.push.TopicKey;
+
+/**
+ * @author Nick Belaevski
+ *
+ */
+@ManagedBean
+@ViewScoped
+public class ChatBean implements Serializable {
+
+ private static final long serialVersionUID = -6377543444437645751L;
+
+ private String userName;
+
+ private String message;
+
+ private boolean chatJoined;
+
+ @ManagedProperty("#{" + PublisherContext.ATTRIBUTE_NAME + "}")
+ private transient PublisherContext publisherContext;
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public String getUserName() {
+ return userName;
+ }
+
+ public void setUserName(String userName) {
+ this.userName = userName;
+ }
+
+ public void joinChat() {
+ if (!chatJoined) {
+ if (userName == null) {
+ throw new NullPointerException("username");
+ }
+
+ chatJoined = true;
+ publisherContext.publish(new TopicKey("chat"), MessageFormat.format("*** {0} joined chat in {1,time,medium}",
+ userName, new Date()));
+ }
+ }
+
+ public void say() {
+ publisherContext.publish(new TopicKey("chat"), MessageFormat.format("{0,time,medium} {1}: {2}", new Date(),
+ userName, message));
+ }
+
+ /**
+ * @param publisherContext the publisherContext to set
+ */
+ public void setPublisherContext(PublisherContext publisherContext) {
+ this.publisherContext = publisherContext;
+ }
+}
Modified: branches/RF-7817/push-redesign-app/src/main/webapp/index.xhtml
===================================================================
--- branches/RF-7817/push-redesign-app/src/main/webapp/index.xhtml 2010-10-12 15:44:25 UTC (rev 19545)
+++ branches/RF-7817/push-redesign-app/src/main/webapp/index.xhtml 2010-10-12 16:55:58 UTC (rev 19546)
@@ -7,19 +7,35 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://richfaces.org/push-redesign">
- <h:head>
- </h:head>
- <h:body>
- <p:push topic="chat" ondataavailable="jQuery('<div />').appendTo(jQuery('#group')).text(data)" />
+ <f:view>
+ <f:metadata>
+ <f:viewParam name="username" value="#{chatBean.userName}" />
+ <f:event type="preRenderView" listener="#{chatBean.joinChat}"/>
+ </f:metadata>
+ <h:head>
+ </h:head>
+ <h:body>
+ <h:form id="form">
+ <p:push topic="chat" ondataavailable="jQuery('<div />').prependTo('.chatOutput').text(data)" />
- <h:form>
- <h:inputText value="#{bean.message}" />
-
- <h:commandLink value="ajax" action="#{bean.say}">
- <f:ajax execute="@form" />
- </h:commandLink>
- </h:form>
-
- <h:panelGroup id="group" layout="block"></h:panelGroup>
- </h:body>
+ You are: #{chatBean.userName} <br />
+
+ <h:inputText styleClass="messageInput" value="#{chatBean.message}" size="40" />
+
+ <script type="text/javascript">
+ function clearInput(event) {
+ if (event.status == 'success') {
+ jQuery('.messageInput').val('');
+ }
+ }
+ </script>
+
+ <h:commandLink value="ajax" action="#{chatBean.say}">
+ <f:ajax execute="@form" onevent="clearInput" />
+ </h:commandLink>
+
+ <h:panelGroup id="group" styleClass="chatOutput" layout="block" />
+ </h:form>
+ </h:body>
+ </f:view>
</html>
\ No newline at end of file
13 years, 9 months