JBoss Rich Faces SVN: r1917 - in trunk/ui/inputnumber-slider/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-07-30 07:15:10 -0400 (Mon, 30 Jul 2007)
New Revision: 1917
Modified:
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
Log:
http://jira.jboss.com/jira/browse/RF-504
Modified: trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
--- trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-07-30 10:23:09 UTC (rev 1916)
+++ trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-07-30 11:15:10 UTC (rev 1917)
@@ -88,6 +88,8 @@
this.initialized = true;
Event.observe(window, "load", this.setInitialValue.bindAsEventListener(this)); //FIX RFA-190
//Event.observe($(input), "propertychange", this.setInitialValue.bindAsEventListener(this));
+
+ this.required = options.required;
},
setInitialValue: function(){
@@ -173,7 +175,7 @@
sliderValue = this.getNearestValue(sliderValue);
this.value = sliderValue;
this.handle.style.left = this.translateToPx(sliderValue);
- if (!this.editInFocus){
+ if (!this.editInFocus && (this.required || "" != this.input.value)){
this.input.value = this.value;
}
if (!this.tip.firstChild) {
@@ -297,7 +299,7 @@
this.eventError();
this.setValue(Number(this.input.value));
}
- this.value = this.input.value;
+ this.value = this.input.value ? this.input.value : this.minimum;
if(this.eventInputOnChange){
this.eventInputOnChange();
}
@@ -329,8 +331,9 @@
}
}
- if (e.keyCode == 13){
- this.input.value=this.getNearestValue(this.value);
+ if (e.keyCode == 13) {
+ if (this.required || "" != this.input.value)
+ this.input.value=this.getNearestValue(this.value);
this.input.form.submit();
}
if (this.eventChanged && this.isValueChanged()){
Modified: trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
===================================================================
--- trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx 2007-07-30 10:23:09 UTC (rev 1916)
+++ trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx 2007-07-30 11:15:10 UTC (rev 1917)
@@ -127,7 +127,8 @@
inputId : "#{clientId}Input",
arrowSelected : "#{arrowSelected}",
onerr : "#{component.attributes['onerror']}",
- onchange : "#{component.attributes['onchange']}"
+ onchange : "#{component.attributes['onchange']}",
+ required : #{component.attributes['required']}
})
</script>
</td>
17 years, 5 months
JBoss Rich Faces SVN: r1916 - in trunk/sandbox/ui/scrollable-grid/src: main/templates/org/richfaces and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-07-30 06:23:09 -0400 (Mon, 30 Jul 2007)
New Revision: 1916
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx
trunk/sandbox/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java
Log:
change name for CSS-classes
Modified: trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js 2007-07-30 10:13:08 UTC (rev 1915)
+++ trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js 2007-07-30 10:23:09 UTC (rev 1916)
@@ -270,8 +270,8 @@
var nElement = $(this.prefix + ":n:" + j);
Element.addClassName(fElement, "dr-sgrid-row-selected");
Element.addClassName(nElement, "dr-sgrid-row-selected");
- Element.addClassName(fElement, "Idg-row-selected");
- Element.addClassName(nElement, "Idg-row-selected");
+ Element.addClassName(fElement, "rich-sgrid-row-selected");
+ Element.addClassName(nElement, "rich-sgrid-row-selected");
Element.addClassName(fElement, this.selectedClass);
Element.addClassName(nElement, this.selectedClass);
j++;
@@ -479,8 +479,8 @@
var nElement = $(this.prefix + ":n:" + rowIndex);
Element.addClassName(fElement, "dr-sgrid-row-selected");
Element.addClassName(nElement, "dr-sgrid-row-selected");
- Element.addClassName(fElement, "Idg-row-selected");
- Element.addClassName(nElement, "Idg-row-selected");
+ Element.addClassName(fElement, "rich-sgrid-row-selected");
+ Element.addClassName(nElement, "rich-sgrid-row-selected");
Element.addClassName(fElement, this.selectedClass);
Element.addClassName(nElement, this.selectedClass);
},
@@ -491,8 +491,8 @@
var nElement = $(this.prefix + ":n:" + rowIndex);
Element.removeClassName(fElement, "dr-sgrid-row-selected");
Element.removeClassName(nElement, "dr-sgrid-row-selected");
- Element.removeClassName(fElement, "Idg-row-selected");
- Element.removeClassName(nElement, "Idg-row-selected");
+ Element.removeClassName(fElement, "rich-sgrid-row-selected");
+ Element.removeClassName(nElement, "rich-sgrid-row-selected");
Element.removeClassName(fElement, this.selectedClass);
Element.removeClassName(nElement, this.selectedClass);
},
@@ -504,8 +504,8 @@
nElement = $(this.prefix + ":n:" + this.activeRow);
Element.removeClassName(fElement, "dr-sgrid-row-active");
Element.removeClassName(nElement, "dr-sgrid-row-active");
- Element.removeClassName(fElement, "Idg-row-active");
- Element.removeClassName(nElement, "Idg-row-active");
+ Element.removeClassName(fElement, "rich-sgrid-row-active");
+ Element.removeClassName(nElement, "rich-sgrid-row-active");
Element.removeClassName(fElement, this.activeClass);
Element.removeClassName(nElement, this.activeClass);
}
@@ -513,8 +513,8 @@
nElement = $(this.prefix + ":n:" + rowIndex);
Element.addClassName(fElement, "dr-sgrid-row-active");
Element.addClassName(nElement, "dr-sgrid-row-active");
- Element.addClassName(fElement, "Idg-row-active");
- Element.addClassName(nElement, "Idg-row-active");
+ Element.addClassName(fElement, "rich-sgrid-row-active");
+ Element.addClassName(nElement, "rich-sgrid-row-active");
Element.addClassName(fElement, this.activeClass);
Element.addClassName(nElement, this.activeClass);
this.activeRow = rowIndex;
Modified: trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx 2007-07-30 10:13:08 UTC (rev 1915)
+++ trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx 2007-07-30 10:23:09 UTC (rev 1916)
@@ -11,7 +11,7 @@
component="javax.faces.component.UIComponent"
>
- <td class="dr-sgrid-bc Idg-column-cell #{component.attributes['styleClass']}" id="#{client_id}:c_#{cell_id}">
+ <td class="dr-sgrid-bc rich-sgrid-column-cell #{component.attributes['styleClass']}" id="#{client_id}:c_#{cell_id}">
<div id="#{client_id}:bc_#{cell_id}" class="dr-sgrid-bcbody #{component.attributes['cellClass']}" style="#{component.attributes['cellStyle']}">
<vcp:body/>
</div>
Modified: trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx 2007-07-30 10:13:08 UTC (rev 1915)
+++ trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx 2007-07-30 10:23:09 UTC (rev 1916)
@@ -11,7 +11,7 @@
component="javax.faces.component.UIComponent"
>
- <td class="dr-sgrid-fc Idg-footer-cell #{component.attributes['footerClass']}">
+ <td class="dr-sgrid-fc rich-sgrid-footer-cell #{component.attributes['footerClass']}">
<span id="#{client_id}:fc_#{cell_index}" class="dr-sgrid-fcbody1">
<span class="dr-sgrid-fcbody">
<vcp:body/>
Modified: trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx 2007-07-30 10:13:08 UTC (rev 1915)
+++ trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx 2007-07-30 10:23:09 UTC (rev 1916)
@@ -12,7 +12,7 @@
component="javax.faces.component.UIComponent"
>
- <td class="dr-sgrid-hc Idg-header-cell #{component.attributes['headerClass']}" id="#{client_id}:hc_#{cell_index}" columnIndex="#{cell_index}" sortable="#{component.attributes['sortable']}">
+ <td class="dr-sgrid-hc rich-sgrid-header-cell #{component.attributes['headerClass']}" id="#{client_id}:hc_#{cell_index}" columnIndex="#{cell_index}" sortable="#{component.attributes['sortable']}">
<vcp:body/>
Modified: trunk/sandbox/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java
===================================================================
--- trunk/sandbox/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java 2007-07-30 10:13:08 UTC (rev 1915)
+++ trunk/sandbox/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java 2007-07-30 10:23:09 UTC (rev 1916)
@@ -217,13 +217,13 @@
HtmlElement hcell = page.getHtmlElementById(id + ":hc_" + i);
assertNotNull(hcell);
elemClassAttr = hcell.getAttributeValue("class");
- assertTrue(elemClassAttr.contains("dr-sgrid-hc Idg-header-cell"));
+ assertTrue(elemClassAttr.contains("dr-sgrid-hc rich-sgrid-header-cell"));
for (int j = 0; j < grid.getRows(); j++) {
HtmlElement bcell = page.getHtmlElementById(id + ":c_" + j + "_" + i);
assertNotNull(bcell);
elemClassAttr = bcell.getAttributeValue("class");
- assertTrue(elemClassAttr.contains("dr-sgrid-bc Idg-column-cell"));
+ assertTrue(elemClassAttr.contains("dr-sgrid-bc rich-sgrid-column-cell"));
}
}
17 years, 5 months
JBoss Rich Faces SVN: r1914 - trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-30 04:17:33 -0400 (Mon, 30 Jul 2007)
New Revision: 1914
Modified:
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
added pattern and Locale selection for default DateTime converter
Modified: trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-29 17:12:03 UTC (rev 1913)
+++ trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-30 08:17:33 UTC (rev 1914)
@@ -214,12 +214,16 @@
writer.write(definition.toScript());
}
- public String getInputValue(FacesContext context, UIInput component){
- UIInput input = (UIInput) component;
+ public String getInputValue(FacesContext context, UIComponent component){
+ // UIInput input = (UIInput) component;
+ UICalendar input = (UICalendar) component;
String value = (String) input.getSubmittedValue();
if(value == null){
Object curVal = input.getValue();
- Converter converter = new DateTimeConverter();
+ DateTimeConverter converter = new DateTimeConverter();
+ converter.setPattern(input.getDatePattern());
+ converter.setLocale(input.getLocale());
+ converter.setTimeZone(input.getTimeZone());
// Converter converter = SelectUtils.getConverterForProperty(context, input, "value");
if(converter != null){
17 years, 5 months
JBoss Rich Faces SVN: r1913 - trunk/sandbox/samples/calendar-sample/src/main/java/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-29 13:12:03 -0400 (Sun, 29 Jul 2007)
New Revision: 1913
Modified:
trunk/sandbox/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java
Log:
changed default popup mode to true
Modified: trunk/sandbox/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java
===================================================================
--- trunk/sandbox/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java 2007-07-29 16:59:40 UTC (rev 1912)
+++ trunk/sandbox/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java 2007-07-29 17:12:03 UTC (rev 1913)
@@ -76,7 +76,7 @@
public CalendarBean() {
locale = Locale.US;
- popup = false;
+ popup = true;
pattern = "MMM d, yyyy";
jointPoint = "bottom-left";
direction = "bottom-right";
17 years, 5 months
JBoss Rich Faces SVN: r1912 - trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-07-29 12:59:40 -0400 (Sun, 29 Jul 2007)
New Revision: 1912
Modified:
trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
popup mode small fix
Modified: trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-07-29 16:47:44 UTC (rev 1911)
+++ trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-07-29 16:59:40 UTC (rev 1912)
@@ -983,6 +983,7 @@
}
}
}
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
this.selectedDate=null;
this.today(noUpdate);
}
17 years, 5 months
JBoss Rich Faces SVN: r1911 - in trunk/sandbox/ui/calendar/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-07-29 12:47:44 -0400 (Sun, 29 Jul 2007)
New Revision: 1911
Modified:
trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
trunk/sandbox/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
popup mode updates
Modified: trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-07-29 16:41:01 UTC (rev 1910)
+++ trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-07-29 16:47:44 UTC (rev 1911)
@@ -433,7 +433,7 @@
var htmlTextIFrame = '';
this.isVisible = true;
- //if (this.params.popup==true)
+ if (this.params.popup==true)
{
// popup mode initialisation
var e = $(this.id);
@@ -441,10 +441,8 @@
{
e.style.display='none';
e.style.position = 'absolute';
- //e.style.left="0px";
- //e.style.top="0px";
this.isVisible = false;
- //if (Richfaces.browser.isIE6)
+ if (Richfaces.browser.isIE6)
{
new Insertion.Before(obj,'<iframe src="javascript:\'\'" frameborder="0" scrolling="no" id="' + this.IFRAME_ID + '"' +
'style="display:none; position: absolute; width: 1px; height: 1px; background-color:white;">'+'</iframe>');
@@ -510,36 +508,36 @@
},
doCollapse: function() {
- if (/*!this.params.popup || */!this.isVisible) return;
+ if (!this.params.popup || !this.isVisible) return;
- Element.hide(this.IFRAME_ID);
+ if (Richfaces.browser.isIE6) Element.hide(this.IFRAME_ID);
Element.hide(this.id);
this.isVisible = false;
},
doExpand: function() {
- if (/*!this.params.popup || */this.isVisible) return;
+ if (!this.params.popup || this.isVisible) return;
var field = $(this.POPUP_INPUT_ID);
-/* if (field)
+ if (field && field.value!=undefined)
{
- var date = Date.parseDate(field.value, this.params.datePattern, this.params.monthLabels, this.params.monthLabelsShort);
- this.selectedDate = Date.parseDate(field.value, this.params.datePattern, this.params.monthLabels, this.params.monthLabelsShort);
- if (this.selectedDate==null) this.currebn
- }*/
+ this.selectDate(field.value, true);
+ }
var base = $(this.POPUP_ID);
var e = $(this.id);
var iframe = $(this.IFRAME_ID);
Richfaces.Calendar.setElementPosition(e, base, this.params.jointPoint, this.params.direction);
- iframe.style.left = e.style.left;
- iframe.style.top = e.style.top;
- var edim = Richfaces.Calendar.getOffsetDimensions(e);
- iframe.style.width = edim.width+'px';
- iframe.style.height = edim.height+'px';
-
- Element.show(iframe);
+ if (Richfaces.browser.isIE6)
+ {
+ iframe.style.left = e.style.left;
+ iframe.style.top = e.style.top;
+ var edim = Richfaces.Calendar.getOffsetDimensions(e);
+ iframe.style.width = edim.width+'px';
+ iframe.style.height = edim.height+'px';
+ Element.show(iframe);
+ }
Element.show(e);
this.isVisible = true;
@@ -645,6 +643,14 @@
$(this.id+'InputSelectedDate').value=this.getSelectedDateString(this.params.datePattern);
this.renderHeader();
this.renderFooter();
+
+ // popup mode
+ if (this.params.popup)
+ {
+ var field = $(this.POPUP_INPUT_ID);
+ if (field && field.value!=undefined) field.value=$(this.id+'InputSelectedDate').value;
+ this.doCollapse();
+ }
} else {
if (daydata._month==-1) this.prevMonth(); else this.nextMonth();
}
@@ -931,7 +937,7 @@
this.onUpdate();
},
- today: function() {
+ today: function(noUpdate) {
var now = new Date();
var nowyear = now.getFullYear();
var nowmonth = now.getMonth();
@@ -946,37 +952,39 @@
this.currentDate = new Date(nowyear, nowmonth, 1);
}
- if (updateflag) this.onUpdate();
+ if (updateflag) if (noUpdate) this.render; else this.onUpdate();
},
help: function() {
alert("Calendar help");
},
- selectDate: function(date) {
+ selectDate: function(date, noUpdate) {
if (date)
{
- if (typeof date=='string') date = Date.parseDate(date,this.params.datePattern, this.params.monthLabels, this.params.monthLabelsShort)
- if (this.selectedDate && this.selectedDate == date) return;
- this.selectedDate = date;
- }
-
- if (this.selectedDate)
- {
- var d = new Date(this.selectedDate);
- d.setDate(1);
- if (d.getMonth()==this.currentDate.getMonth() && d.getFullYear()==this.currentDate.getFullYear())
+ if (typeof date=='string') date = Date.parseDate(date,this.params.datePattern, this.params.monthLabels, this.params.monthLabelsShort);
+ if (date!=null)
{
- // find cell and call onklick event
- var e = $(this.DATE_ELEMENT_ID+(this.firstDateIndex + this.selectedDate.getDate()-1));
- if (e) Richfaces.createEvent ('click', e).fire();
- } else {
- // change currentDate and call this.onUpdate();
- this.currentDate = d;
- this.onUpdate();
-
+ if (this.selectedDate!=null && this.selectedDate.toLocaleDateString()==date.toLocaleDateString()) return;
+ this.selectedDate = date;
+ var d = new Date(this.selectedDate);
+ d.setDate(1);
+ if (d.getMonth()==this.currentDate.getMonth() && d.getFullYear()==this.currentDate.getFullYear())
+ {
+ // find cell and call onklick event
+ var e = $(this.DATE_ELEMENT_ID+(this.firstDateIndex + this.selectedDate.getDate()-1));
+ if (e) Richfaces.createEvent ('click', e).fire();
+ return;
+ } else {
+ // change currentDate and call this.onUpdate();
+ this.currentDate = d;
+ if (noUpdate) this.render(); else this.onUpdate();
+ return;
+ }
}
}
+ this.selectedDate=null;
+ this.today(noUpdate);
}
});
Modified: trunk/sandbox/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- trunk/sandbox/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-07-29 16:41:01 UTC (rev 1910)
+++ trunk/sandbox/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-07-29 16:47:44 UTC (rev 1911)
@@ -30,7 +30,7 @@
datePattern: '#{component.datePattern}',
jointPoint: '#{component.jointPoint}',
direction: '#{component.direction}',
- popup: '#{component.popup}',
+ popup: #{component.popup},
<f:call name="writeSymbols" />,
firstWeekDay: #{this:getFirstWeekDay(context, component)},
minDaysInFirstWeek: #{this:getMinDaysInFirstWeek(context, component)},
@@ -60,11 +60,11 @@
boolean popup = getUtils().isBooleanAttribute(component, "popup");
if (popup) {]]>
</jsp:scriptlet>
- <span
+ <span
id="#{clientId}Popup"
> <input
x:passThruWithExclusions="name"
- id="#{clientId}Input"
+ id="#{clientId}PopupInput"
value="#{this:getInputValue(context,component)}"
type="text"
readonly="#{component.attributes['readonly']}"
17 years, 5 months
JBoss Rich Faces SVN: r1910 - trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-29 12:41:01 -0400 (Sun, 29 Jul 2007)
New Revision: 1910
Modified:
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
Log:
Changed date pattern in getConvertedValue method
Modified: trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-29 14:33:21 UTC (rev 1909)
+++ trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-29 16:41:01 UTC (rev 1910)
@@ -150,7 +150,7 @@
throws ConverterException {
DateTimeConverter datetime = new DateTimeConverter();
- datetime.setPattern("MM/yyyy");
+ datetime.setPattern(getDatePattern());
Date newCurrentDate = (Date) datetime.getAsObject(context, this,
currentDateString);
return newCurrentDate;
17 years, 5 months
JBoss Rich Faces SVN: r1909 - trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-07-29 10:33:21 -0400 (Sun, 29 Jul 2007)
New Revision: 1909
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
Log:
fix: Boolean to boolean was changed
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2007-07-29 13:16:26 UTC (rev 1908)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2007-07-29 14:33:21 UTC (rev 1909)
@@ -8,7 +8,7 @@
private java.lang.Integer screenHeight;
private String job;
private Date date;
- private Boolean pollEnabled;
+ private boolean pollEnabled;
public UserBean() {
super();
@@ -64,11 +64,11 @@
this.date = date;
}
- public Boolean getPollEnabled() {
+ public boolean getPollEnabled() {
return pollEnabled;
}
- public void setPollEnabled(Boolean pollEnabled) {
+ public void setPollEnabled(boolean pollEnabled) {
this.pollEnabled = pollEnabled;
}
17 years, 5 months
JBoss Rich Faces SVN: r1908 - in trunk/sandbox/ui/message/src/main/java/org/richfaces: renderkit/html and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-29 09:16:26 -0400 (Sun, 29 Jul 2007)
New Revision: 1908
Modified:
trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
Log:
TODOs added
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2007-07-28 01:22:09 UTC (rev 1907)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2007-07-29 13:16:26 UTC (rev 1908)
@@ -22,8 +22,10 @@
public static String HEADER_LOCATION_RIGHT = "right";
+ //TODO nick - anton - make wroteTable local renderer variable
private boolean wroteTable = false;
+ //TODO nick - anton - make isIteratorLayout local renderer variable. do we need it at all?
private boolean isIteratorLayout = false;
private boolean isPassed = false;
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-28 01:22:09 UTC (rev 1907)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-29 13:16:26 UTC (rev 1908)
@@ -20,6 +20,51 @@
* @author Anton Belevich
*
*/
+//TODO nick - anton - please review our naming conventions:
+
+//Naming Conventions
+//During the development we should follow the naming convention for all project stuff. The rules are defined below:
+//
+//
+//By default, a geterator expects the following structure for Java classes :
+//
+//<prefix>.component.Abstract<Name> ia an optional abstract superclass for a JSF component. To avoid manual writing for EL-enabled getters/setters, saveState/restoreState methods, listener-related methods etc, a developer can create an abstract class, and a generator creates the implementation.
+//<prefix>.component.UI<Name> is a Base component class. It can be generated from the abstract superclass or created by a developer.
+//<prefix>.component.<markup>.<Markup><RendererName>renderer-specific generated component( where the markup is a render-kit specific generation name, such as html | xml | wml ). In addition to the UI Component class, contains Java Bean getter/setter methods for renderer-specific attributes. This class is generated by CDK.
+//<prefix>.<Name> - JSF UI component-type. Can be provided in the configuration or calculated from a component class name.
+//<prefix>.<Markup><RendererName> - renderer-specific JSF component-type. Can be provided in the configuration or calculated from the renderer name.
+//<prefix>.renderkit.<RendererName>RendererBase - optional Renderer superclass, implements methods from template renderer used by generated. Created by a component developer.
+//<prefix>.renderkit.<markup>.<RendererName>Renderer is a generated renderer.
+//<prefix>.<RendererName>Renderer - JSF renderer-type. Can be provided in the configuration or calculated from a renderer name.
+//<prefix>.<Markup><RendererName>.xml is a template for generating the renderer class. jspx - like syntax is used. Provided by a component developer.
+//<prefix>.taglib.<RendererName>Tag - JSP tag class.
+//<prefix>.taglib.<RendererName>TagHandler is a facelets tag handler class.
+//<renderername> - JSP/facelets tag name.
+//For components, that uses JSF events :
+//
+//<prefix>.event.<Event>Event is a event class. Provided by component a developer.
+//<prefix>.event.<Event>Listener is an event listener interface. Can be generated by CDK
+//process<Event> is an event processing method name in a listener interface.
+//<prefix>.event.<Event>Source - is an interface for an event processing component ( with methods add<Event>Listener(<Event>Listener listener ) , remove<Event>Listener.... )
+//<prefix>.event.<Event>EventWrapper - wrapper class. Uses for binding listener's EL-expression in user's beans.
+//<prefix>.taglib.<Event>ListenerTag - JSP tag class for a creating listener instance. A parent tag must creates component implementing Source interface.
+//<prefix>.taglib.<Event>ListenerTagHandler is a facelets tag class for creation of listener instance.
+//
+//
+//Definitions that are used in this structure ( uppercase symbols means Java names notation, for name "foo" <name> mean "foo", and <Name> - "Foo" ):
+//
+//<prefix>
+//is a common library name ( for example, base JSF components use <javax.faces> prefix ). Value for prefix get from an abstract component package or a renderer template path.
+//<name>
+//is a name for base component ( for UIInput component <name> is "input" ). Value for a component name generator can got from UI... or Abstract... class name.
+//<markup>
+//is a render-kit generated a content name, "html" for HTML/XHTML pages, "wml" for mobile content etc. It must be provided in the render-kit description by ant task or maven POM. By default, "html" is used
+//<rendererName>
+//- name of renderer for concreting a visual component implementation, e.g. "commandButton" , "panelGroup" etc. A generator can take rendererName from a template file name.
+//<event>
+//is a name for Faces Event ( "action" for all ActionSource components like UICommand ). Can be provided in the component configuration, or got from the implemented ...Source interface.
+
+//TODO nick - anton - please consider using jspx templates
public abstract class RichMessageBaseRenderer extends HeaderResourcesRendererBase{
protected static final Log log = LogFactory.getLog(RichMessageHtmlBaseRenderer.class);
17 years, 5 months