JBoss Rich Faces SVN: r3098 - trunk.
by richfaces-svn-commits@lists.jboss.org
Author: viktor_volkov
Date: 2007-09-25 09:41:08 -0400 (Tue, 25 Sep 2007)
New Revision: 3098
Modified:
trunk/release notes.txt
Log:
Modified: trunk/release notes.txt
===================================================================
--- trunk/release notes.txt 2007-09-25 13:40:43 UTC (rev 3097)
+++ trunk/release notes.txt 2007-09-25 13:41:08 UTC (rev 3098)
@@ -1,4 +1,23 @@
+Release Notes - RichFaces - Version 3.2.0
+** Bug
+ * [RF-894] - PanelMenu: chevron icons are inconsistent with the spec
+ * [RF-910] - Tooltip javascript error
+ * [RF-945] - calendar. Selection doesn't applied with a4j:support inside calendar
+ * [RF-956] - Messages produce unnessesarry html when no messages exsist.
+ * [RF-973] - Sorting doesn't work after rerender ScrollableDataTable using ajax.
+ * [RF-981] - Menu Components do not support non-latin character
+ * [RF-984] - Calendar exception
+ * [RF-992] - calendar: the typo in style attribute
+
+** Feature Request
+
+
+** Task
+
+
+
+
Release Notes - RichFaces - Version 3.0.1
** Bug
16 years, 7 months
JBoss Rich Faces SVN: r3097 - branches/3.1.x.
by richfaces-svn-commits@lists.jboss.org
Author: viktor_volkov
Date: 2007-09-25 09:40:43 -0400 (Tue, 25 Sep 2007)
New Revision: 3097
Modified:
branches/3.1.x/release notes.txt
Log:
Modified: branches/3.1.x/release notes.txt
===================================================================
--- branches/3.1.x/release notes.txt 2007-09-25 13:40:04 UTC (rev 3096)
+++ branches/3.1.x/release notes.txt 2007-09-25 13:40:43 UTC (rev 3097)
@@ -1,4 +1,23 @@
+Release Notes - RichFaces - Version 3.1.1
+** Bug
+ * [RF-894] - PanelMenu: chevron icons are inconsistent with the spec
+ * [RF-910] - Tooltip javascript error
+ * [RF-945] - calendar. Selection doesn't applied with a4j:support inside calendar
+ * [RF-956] - Messages produce unnessesarry html when no messages exsist.
+ * [RF-973] - Sorting doesn't work after rerender ScrollableDataTable using ajax.
+ * [RF-981] - Menu Components do not support non-latin character
+ * [RF-984] - Calendar exception
+ * [RF-992] - calendar: the typo in style attribute
+
+** Feature Request
+
+
+** Task
+
+
+
+
Release Notes - RichFaces - Version 3.0.1
** Bug
16 years, 7 months
JBoss Rich Faces SVN: r3096 - trunk/ui/calendar/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-09-25 09:40:04 -0400 (Tue, 25 Sep 2007)
New Revision: 3096
Modified:
trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
RF-979
Modified: trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-09-25 13:27:21 UTC (rev 3095)
+++ trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-09-25 13:40:04 UTC (rev 3096)
@@ -15,7 +15,7 @@
<div id="#{clientId}"
style="z-index: #{component.attributes['zindex']}; #{component.attributes['style']}"
- class="#{component.attributes['styleClass']}"
+ class="rich-calendar-popup #{component.attributes['styleClass']}"
x:passThruWithExclusions="value,name,type,id,styleClass,class,style">
<script
type="text/javascript">
16 years, 7 months
JBoss Rich Faces SVN: r3095 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: euhvasko
Date: 2007-09-25 09:27:21 -0400 (Tue, 25 Sep 2007)
New Revision: 3095
Modified:
trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/region.xml
Log:
http://jira.jboss.com/jira/browse/RF-622 changed Ajax4jsf to RichFaces
Modified: trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-09-25 13:11:58 UTC (rev 3094)
+++ trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-09-25 13:27:21 UTC (rev 3095)
@@ -62,9 +62,9 @@
<title>Key attributes and ways of usage</title>
<para><emphasis role="bold"><property><a4j:outPanel></property></emphasis> allows marking of a page area, which is updated on Ajax response. Anyway, <emphasis role="bold">
<property><a4j:outputPanel></property>
- </emphasis> usage is optional, as in Ajax4jsf it's possible to indicate any existing component id on a component view in order to define updating areas.
+ </emphasis> usage is optional, as in RichFaces it's possible to indicate any existing component id on a component view in order to define updating areas.
-To speed up the performance, Ajax4jsf updates only a component tree. <emphasis role="bold">
+To speed up the performance, RichFaces updates only a component tree. <emphasis role="bold">
<property><a4j:outputPanel></property>
</emphasis> usage is recommended for wrapping components that aren't rendered during the primary non-ajax response, as the components don't present in a component tree.
</para>
@@ -115,12 +115,12 @@
</a4j:outputPanel>
]]></programlisting>
<para>As you see, the code is very similar to the one shown above, but <emphasis ><property>"reRender "</property></emphasis> attribute refers directly to the updating panelGrid and not to the framing outputPanel, and it's more semantically correct.</para>
- <para><emphasis role="bold"><property><a4j:outPanel></property></emphasis> should be used for non-JSF component part framing, which is to be updated on Ajax response, as Ajax4jsf specifies the list of updating areas as a list of an existing JSF component. </para>
- <para>On default non-JSF context isn't saved in a component tree, but is rendered anew every time. To accelerate the processing speed and Ajax response input speed, Ajax4jsf saves non-JSF context in a component tree on default. This option could be canceled by<emphasis><property> "keepTransient" </property></emphasis>attribute that cancels transient flag forced setting for child components. This flag setting keeps the current value set by child components.</para>
+ <para><emphasis role="bold"><property><a4j:outPanel></property></emphasis> should be used for non-JSF component part framing, which is to be updated on Ajax response, as RichFaces specifies the list of updating areas as a list of an existing JSF component. </para>
+ <para>On default non-JSF context isn't saved in a component tree, but is rendered anew every time. To accelerate the processing speed and Ajax response input speed, RichFaces saves non-JSF context in a component tree on default. This option could be canceled by<emphasis><property> "keepTransient" </property></emphasis>attribute that cancels transient flag forced setting for child components. This flag setting keeps the current value set by child components.</para>
<para>Note: In JSF 1.1 implementation and lower, where non-JSF context should be framed with the "f:verbatim" attribute, <emphasis role="bold">
<property><a4j:outputPanel></property>
- </emphasis> doesn't improve this JSF implementation option in any way, so you still have to use this tag where it's necessary without Ajax4jsf usage. </para>
- <para>Ajax4jsf allows setting Ajax responses rendering directly basing on component tree nodes without referring to the JSP (XHTML) page code. It could be defined by selfRendered attribute setting to <emphasis >
+ </emphasis> doesn't improve this JSF implementation option in any way, so you still have to use this tag where it's necessary without RichFaces usage. </para>
+ <para>RichFaces allows setting Ajax responses rendering directly basing on component tree nodes without referring to the JSP (XHTML) page code. It could be defined by selfRendered attribute setting to <emphasis >
<property>"true"</property>
</emphasis>
on <emphasis role="bold">
Modified: trunk/docs/userguide/en/src/main/docbook/included/region.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-09-25 13:11:58 UTC (rev 3094)
+++ trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-09-25 13:27:21 UTC (rev 3095)
@@ -85,7 +85,7 @@
<!--..Some content that will be decoded on server after Ajax request.-->
</a4j:region >]]></programlisting>
<para>Therefore, the external region is decoded for the "link1" and the internal one is decoded for the "link2".</para>
- <para>Ajax4jsf allows setting Ajax responses rendering directly basing on component tree nodes without referring to the JSP (XHTML) page code. It could be defined by<emphasis><property> "selfRendered" </property></emphasis>attribute setting to <emphasis><property>"true"</property></emphasis> on <emphasis role="bold">
+ <para>RichFaces allows setting Ajax responses rendering directly basing on component tree nodes without referring to the JSP (XHTML) page code. It could be defined by<emphasis><property> "selfRendered" </property></emphasis>attribute setting to <emphasis><property>"true"</property></emphasis> on <emphasis role="bold">
<property><a4j:region></property>
</emphasis> and could help considerably speed up a response output. However, this rapid processing could cause missing of transient components that present on view and don't come into a component tree as well as omitting of <emphasis role="bold">
<property><a4j:outputPanel></property>
@@ -96,7 +96,7 @@
<a4j:commandLink reRender="someID" value="Link" id="link1"/>
<!--..Some content with HTML used ("br" ,"h1" and other tags used)-->
</a4j:region >]]></programlisting>
- <para>In this case, the processing is quicker and going on without referring to a page code, but the HTML code that isn't saved in a component tree could be lost. Thus, this optimization should be very carefully performed and a usage of the additional components ajax4jsf (<emphasis role="bold"><property><a4j:outputPanel></property></emphasis>) is required. </para>
+ <para>In this case, the processing is quicker and going on without referring to a page code, but the HTML code that isn't saved in a component tree could be lost. Thus, this optimization should be very carefully performed and a usage of the additional components RichFaces (<emphasis role="bold"><property><a4j:outputPanel></property></emphasis>) is required. </para>
<para>The processing could be also accelerated if a region decoded for the processing passes straight away into Encode. But to update some data out of the region or on another region, use the <emphasis >
<property>"renderRegionOnly"</property>
</emphasis>
16 years, 7 months
JBoss Rich Faces SVN: r3094 - branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-09-25 09:11:58 -0400 (Tue, 25 Sep 2007)
New Revision: 3094
Modified:
branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
RF-988
Modified: branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-25 13:08:58 UTC (rev 3093)
+++ branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-25 13:11:58 UTC (rev 3094)
@@ -14,8 +14,10 @@
// baseElement: Dom element or {left:, top:, width:, height:};
// jointPoint: {x:,y:} or ('top-left','top-right','bottom'-left,'bottom-right')
// direction: ('top-left','top-right','bottom'-left,'bottom-right', 'auto')
- // offset: {x:,y:}
+ // offset: {dx:,dy:}
+ if (!offset) offset = {dx:0,dy:0};
+
var elementDim = Richfaces.Calendar.getOffsetDimensions(element);
var baseElementDim;
var baseOffset;
@@ -54,14 +56,16 @@
if (direction && (match=direction.toLowerCase().match(re))!=null )
{
var d = direction.toLowerCase().split('-');
- if (match[2]=='left') ox-=elementDim.width;
- if (match[1]=='top') oy-=elementDim.height;
+ if (match[2]=='left') ox-=elementDim.width+offset.dx; else if (match[2]=='right') ox+=offset.dx;
+ if (match[1]=='top') oy-=elementDim.height+offset.dy; else if (match[1]=='bottom') oy+=offset.dy;
} else
{
// auto
var theBest = {square:0};
// jointPoint: bottom-right, direction: bottom-left
- var rect = {right: baseOffset[0] + baseElementDim.width, top: baseOffset[1] + baseElementDim.height};
+ var basex = baseOffset[0]-offset.dx;
+ var basey = baseOffset[1]+offset.dy;
+ var rect = {right: basex + baseElementDim.width, top: basey + baseElementDim.height};
rect.left = rect.right - elementDim.width;
rect.bottom = rect.top + elementDim.height;
ox = rect.left; oy = rect.top;
@@ -70,7 +74,9 @@
{
if (ox>=0 && oy>=0 && theBest.square<s) theBest = {x:ox, y:oy, square:s};
// jointPoint: top-right, direction: top-left
- rect = {right: baseOffset[0] + baseElementDim.width, bottom: baseOffset[1]};
+ basex = baseOffset[0]-offset.dx;
+ basey = baseOffset[1]-offset.dy;
+ rect = {right: basex + baseElementDim.width, bottom: basey};
rect.left = rect.right - elementDim.width;
rect.top = rect.bottom - elementDim.height;
ox = rect.left; oy = rect.top;
@@ -79,7 +85,9 @@
{
if (ox>=0 && oy>=0 && theBest.square<s) theBest = {x:ox, y:oy, square:s};
// jointPoint: bottom-left, direction: bottom-right
- rect = {left: baseOffset[0], top: baseOffset[1] + baseElementDim.height};
+ basex = baseOffset[0]+offset.dx;
+ basey = baseOffset[1]+offset.dy;
+ rect = {left: basex, top: basey + baseElementDim.height};
rect.right = rect.left + elementDim.width;
rect.bottom = rect.top + elementDim.height;
ox = rect.left; oy = rect.top;
@@ -88,7 +96,9 @@
{
if (ox>=0 && oy>=0 && theBest.square<s) theBest = {x:ox, y:oy, square:s};
// jointPoint: top-left, direction: top-right
- rect = {left: baseOffset[0], bottom: baseOffset[1]};
+ basex = baseOffset[0]+offset.dx;
+ basey = baseOffset[1]-offset.dy;
+ rect = {left: basex, bottom: basey};
rect.right = rect.left + elementDim.width;
rect.top = rect.bottom - elementDim.height;
ox = rect.left; oy = rect.top;
@@ -114,9 +124,9 @@
if (element.offsetParent && element.offsetParent!=document.body)
{
- var offset=Position.cumulativeOffset(element.offsetParent);
- ox -= offset[0];
- oy -= offset[1];
+ var parentOffset=Position.cumulativeOffset(element.offsetParent);
+ ox -= parentOffset[0];
+ oy -= parentOffset[1];
}
els.display = originalDisplay;
@@ -425,6 +435,9 @@
if (!this.params.headerMarkup) this.params.headerMarkup = CalendarView.header;
if (!this.params.footerMarkup) this.params.footerMarkup = CalendarView.footer;
+ // popup offset
+ this.popupOffset = {dx: (isNaN(this.params.horizontalOffset) ? 0 : parseInt(this.params.horizontalOffset,10)), dy: (isNaN(this.params.verticalOffset) ? 0 : parseInt(this.params.verticalOffset,10))};
+
this.currentDate = this.params.currentDate ? this.params.currentDate : new Date();
this.currentDate.setDate(1);
this.selectedDate = this.params.selectedDate;
@@ -618,7 +631,7 @@
width: offsetDimBase.width,
height: (offsetDimInput && offsetDimInput.height>offsetDimButton.height ? offsetDimInput.height : offsetDimButton.height)};
- Richfaces.Calendar.setElementPosition(element, o, this.params.jointPoint, this.params.direction);
+ Richfaces.Calendar.setElementPosition(element, o, this.params.jointPoint, this.params.direction, this.popupOffset);
if (Richfaces.browser.isIE6)
{
16 years, 7 months
JBoss Rich Faces SVN: r3093 - trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-09-25 09:08:58 -0400 (Tue, 25 Sep 2007)
New Revision: 3093
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
RF-988
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-25 13:06:11 UTC (rev 3092)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-25 13:08:58 UTC (rev 3093)
@@ -14,8 +14,10 @@
// baseElement: Dom element or {left:, top:, width:, height:};
// jointPoint: {x:,y:} or ('top-left','top-right','bottom'-left,'bottom-right')
// direction: ('top-left','top-right','bottom'-left,'bottom-right', 'auto')
- // offset: {x:,y:}
+ // offset: {dx:,dy:}
+ if (!offset) offset = {dx:0,dy:0};
+
var elementDim = Richfaces.Calendar.getOffsetDimensions(element);
var baseElementDim;
var baseOffset;
@@ -54,14 +56,16 @@
if (direction && (match=direction.toLowerCase().match(re))!=null )
{
var d = direction.toLowerCase().split('-');
- if (match[2]=='left') ox-=elementDim.width;
- if (match[1]=='top') oy-=elementDim.height;
+ if (match[2]=='left') ox-=elementDim.width+offset.dx; else if (match[2]=='right') ox+=offset.dx;
+ if (match[1]=='top') oy-=elementDim.height+offset.dy; else if (match[1]=='bottom') oy+=offset.dy;
} else
{
// auto
var theBest = {square:0};
// jointPoint: bottom-right, direction: bottom-left
- var rect = {right: baseOffset[0] + baseElementDim.width, top: baseOffset[1] + baseElementDim.height};
+ var basex = baseOffset[0]-offset.dx;
+ var basey = baseOffset[1]+offset.dy;
+ var rect = {right: basex + baseElementDim.width, top: basey + baseElementDim.height};
rect.left = rect.right - elementDim.width;
rect.bottom = rect.top + elementDim.height;
ox = rect.left; oy = rect.top;
@@ -70,7 +74,9 @@
{
if (ox>=0 && oy>=0 && theBest.square<s) theBest = {x:ox, y:oy, square:s};
// jointPoint: top-right, direction: top-left
- rect = {right: baseOffset[0] + baseElementDim.width, bottom: baseOffset[1]};
+ basex = baseOffset[0]-offset.dx;
+ basey = baseOffset[1]-offset.dy;
+ rect = {right: basex + baseElementDim.width, bottom: basey};
rect.left = rect.right - elementDim.width;
rect.top = rect.bottom - elementDim.height;
ox = rect.left; oy = rect.top;
@@ -79,7 +85,9 @@
{
if (ox>=0 && oy>=0 && theBest.square<s) theBest = {x:ox, y:oy, square:s};
// jointPoint: bottom-left, direction: bottom-right
- rect = {left: baseOffset[0], top: baseOffset[1] + baseElementDim.height};
+ basex = baseOffset[0]+offset.dx;
+ basey = baseOffset[1]+offset.dy;
+ rect = {left: basex, top: basey + baseElementDim.height};
rect.right = rect.left + elementDim.width;
rect.bottom = rect.top + elementDim.height;
ox = rect.left; oy = rect.top;
@@ -88,7 +96,9 @@
{
if (ox>=0 && oy>=0 && theBest.square<s) theBest = {x:ox, y:oy, square:s};
// jointPoint: top-left, direction: top-right
- rect = {left: baseOffset[0], bottom: baseOffset[1]};
+ basex = baseOffset[0]+offset.dx;
+ basey = baseOffset[1]-offset.dy;
+ rect = {left: basex, bottom: basey};
rect.right = rect.left + elementDim.width;
rect.top = rect.bottom - elementDim.height;
ox = rect.left; oy = rect.top;
@@ -114,9 +124,9 @@
if (element.offsetParent && element.offsetParent!=document.body)
{
- var offset=Position.cumulativeOffset(element.offsetParent);
- ox -= offset[0];
- oy -= offset[1];
+ var parentOffset=Position.cumulativeOffset(element.offsetParent);
+ ox -= parentOffset[0];
+ oy -= parentOffset[1];
}
els.display = originalDisplay;
@@ -425,6 +435,9 @@
if (!this.params.headerMarkup) this.params.headerMarkup = CalendarView.header;
if (!this.params.footerMarkup) this.params.footerMarkup = CalendarView.footer;
+ // popup offset
+ this.popupOffset = {dx: (isNaN(this.params.horizontalOffset) ? 0 : parseInt(this.params.horizontalOffset,10)), dy: (isNaN(this.params.verticalOffset) ? 0 : parseInt(this.params.verticalOffset,10))};
+
this.currentDate = this.params.currentDate ? this.params.currentDate : new Date();
this.currentDate.setDate(1);
this.selectedDate = this.params.selectedDate;
@@ -618,7 +631,7 @@
width: offsetDimBase.width,
height: (offsetDimInput && offsetDimInput.height>offsetDimButton.height ? offsetDimInput.height : offsetDimButton.height)};
- Richfaces.Calendar.setElementPosition(element, o, this.params.jointPoint, this.params.direction);
+ Richfaces.Calendar.setElementPosition(element, o, this.params.jointPoint, this.params.direction, this.popupOffset);
if (Richfaces.browser.isIE6)
{
16 years, 7 months
JBoss Rich Faces SVN: r3092 - branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-09-25 09:06:11 -0400 (Tue, 25 Sep 2007)
New Revision: 3092
Modified:
branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
RF-934
Modified: branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-09-25 12:59:58 UTC (rev 3091)
+++ branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-09-25 13:06:11 UTC (rev 3092)
@@ -97,14 +97,19 @@
if (submittedValue instanceof Date) {
return (Date) submittedValue;
}
-
- DateTimeConverter converter = new DateTimeConverter();
UICalendar calendar = (UICalendar) component;
- converter.setPattern(calendar.getDatePattern());
- converter.setLocale(calendar.getLocale());
- converter.setTimeZone(calendar.getTimeZone());
- return converter.getAsObject(context, component,
- (String) submittedValue);
+ if (calendar.getConverter() != null) {
+
+ return calendar.getConverter().getAsObject(context, component, (String)submittedValue);
+
+ } else {
+ DateTimeConverter converter = new DateTimeConverter();
+ converter.setPattern(calendar.getDatePattern());
+ converter.setLocale(calendar.getLocale());
+ converter.setTimeZone(calendar.getTimeZone());
+ return converter.getAsObject(context, component,
+ (String) submittedValue);
+ }
}
protected void doDecode(FacesContext context, UIComponent component) {
@@ -129,16 +134,16 @@
// TODO nick - nick - queue this event when ValueChangeEvent is
// queued?
- new AjaxEvent(component).queue();
-
+ new AjaxEvent(component).queue();
+
}
String selectedDateString = (String) requestParameterMap.get(clientId
+ "InputDate");
- if ( selectedDateString != null) {
+ if (selectedDateString != null) {
((UICalendar) component).setSubmittedValue(selectedDateString);
}
- }
+ }
public void encodeChildren(FacesContext context, UIComponent calendar)
throws IOException {
@@ -156,7 +161,7 @@
UIComponent facet = component.getFacet(facetName);
if (facet != null && facet.isRendered()) {
ResponseWriter writer = context.getResponseWriter();
- writer.writeText(", " + facetName + MARKUP_SUFFIX + ": ", null);
+ writer.writeText(", " + facetName + MARKUP_SUFFIX + ": ", null);
writeMarkupScriptBody(context, facet, false);
}
}
@@ -181,11 +186,12 @@
ajaxFunction.addParameter(JSReference.NULL);
Map options = AjaxRendererUtils.buildEventOptions(context, calendar);
options.put("calendar", JSReference.THIS);
- boolean isSingle = ((Boolean)calendar.getAttributes().get("ajaxSingle")).booleanValue();
- if(isSingle){
+ boolean isSingle = ((Boolean) calendar.getAttributes()
+ .get("ajaxSingle")).booleanValue();
+ if (isSingle) {
options.put("single", JSReference.TRUE);
}
-
+
String oncomplete = AjaxRendererUtils.getAjaxOncomplete(calendar);
JSFunctionDefinition oncompleteDefinition = new JSFunctionDefinition();
oncompleteDefinition.addParameter("request");
@@ -209,16 +215,16 @@
}
public void writeEventHandlerFunction(FacesContext context,
- UIComponent component, String eventName) throws IOException {
+ UIComponent component, String eventName) throws IOException {
ResponseWriter writer = context.getResponseWriter();
Object script = component.getAttributes().get(eventName);
- if (script!=null && !script.equals(""))
- {
+ if (script != null && !script.equals("")) {
JSFunctionDefinition onEventDefinition = new JSFunctionDefinition();
onEventDefinition.addParameter("event");
- onEventDefinition.addToBody(script);
- writer.writeText(",\n" + eventName + ": "+onEventDefinition.toScript(), null);
+ onEventDefinition.addToBody(script);
+ writer.writeText(",\n" + eventName + ": "
+ + onEventDefinition.toScript(), null);
}
}
@@ -271,8 +277,7 @@
}
}
- private static String[] shiftDates(int minimum,
- int maximum, String[] labels) {
+ private static String[] shiftDates(int minimum, int maximum, String[] labels) {
if (minimum == 0 && (maximum - minimum == labels.length - 1)) {
return labels;
}
@@ -291,17 +296,16 @@
Calendar cal = calendar.getCalendar();
int maximum = cal.getActualMaximum(Calendar.DAY_OF_WEEK);
int minimum = cal.getActualMinimum(Calendar.DAY_OF_WEEK);
-
+
int monthMax = cal.getActualMaximum(Calendar.MONTH);
int monthMin = cal.getActualMinimum(Calendar.MONTH);
-
+
DateFormatSymbols symbols = new DateFormatSymbols(locale);
String[] weekDayLabels = ComponentUtil.asArray(calendar
.getWeekDayLabels());
if (weekDayLabels == null) {
weekDayLabels = symbols.getWeekdays();
- weekDayLabels = shiftDates(minimum, maximum,
- weekDayLabels);
+ weekDayLabels = shiftDates(minimum, maximum, weekDayLabels);
}
String[] weekDayLabelsShort = ComponentUtil.asArray(calendar
16 years, 7 months
JBoss Rich Faces SVN: r3091 - trunk/ui/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-09-25 08:59:58 -0400 (Tue, 25 Sep 2007)
New Revision: 3091
Modified:
trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
RF-934
Modified: trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-09-25 12:55:10 UTC (rev 3090)
+++ trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-09-25 12:59:58 UTC (rev 3091)
@@ -97,14 +97,19 @@
if (submittedValue instanceof Date) {
return (Date) submittedValue;
}
-
- DateTimeConverter converter = new DateTimeConverter();
UICalendar calendar = (UICalendar) component;
- converter.setPattern(calendar.getDatePattern());
- converter.setLocale(calendar.getLocale());
- converter.setTimeZone(calendar.getTimeZone());
- return converter.getAsObject(context, component,
- (String) submittedValue);
+ if (calendar.getConverter() != null) {
+
+ return calendar.getConverter().getAsObject(context, component, (String)submittedValue);
+
+ } else {
+ DateTimeConverter converter = new DateTimeConverter();
+ converter.setPattern(calendar.getDatePattern());
+ converter.setLocale(calendar.getLocale());
+ converter.setTimeZone(calendar.getTimeZone());
+ return converter.getAsObject(context, component,
+ (String) submittedValue);
+ }
}
protected void doDecode(FacesContext context, UIComponent component) {
@@ -129,16 +134,16 @@
// TODO nick - nick - queue this event when ValueChangeEvent is
// queued?
- new AjaxEvent(component).queue();
-
+ new AjaxEvent(component).queue();
+
}
String selectedDateString = (String) requestParameterMap.get(clientId
+ "InputDate");
- if ( selectedDateString != null) {
+ if (selectedDateString != null) {
((UICalendar) component).setSubmittedValue(selectedDateString);
}
- }
+ }
public void encodeChildren(FacesContext context, UIComponent calendar)
throws IOException {
@@ -156,7 +161,7 @@
UIComponent facet = component.getFacet(facetName);
if (facet != null && facet.isRendered()) {
ResponseWriter writer = context.getResponseWriter();
- writer.writeText(", " + facetName + MARKUP_SUFFIX + ": ", null);
+ writer.writeText(", " + facetName + MARKUP_SUFFIX + ": ", null);
writeMarkupScriptBody(context, facet, false);
}
}
@@ -181,11 +186,12 @@
ajaxFunction.addParameter(JSReference.NULL);
Map options = AjaxRendererUtils.buildEventOptions(context, calendar);
options.put("calendar", JSReference.THIS);
- boolean isSingle = ((Boolean)calendar.getAttributes().get("ajaxSingle")).booleanValue();
- if(isSingle){
+ boolean isSingle = ((Boolean) calendar.getAttributes()
+ .get("ajaxSingle")).booleanValue();
+ if (isSingle) {
options.put("single", JSReference.TRUE);
}
-
+
String oncomplete = AjaxRendererUtils.getAjaxOncomplete(calendar);
JSFunctionDefinition oncompleteDefinition = new JSFunctionDefinition();
oncompleteDefinition.addParameter("request");
@@ -209,16 +215,16 @@
}
public void writeEventHandlerFunction(FacesContext context,
- UIComponent component, String eventName) throws IOException {
+ UIComponent component, String eventName) throws IOException {
ResponseWriter writer = context.getResponseWriter();
Object script = component.getAttributes().get(eventName);
- if (script!=null && !script.equals(""))
- {
+ if (script != null && !script.equals("")) {
JSFunctionDefinition onEventDefinition = new JSFunctionDefinition();
onEventDefinition.addParameter("event");
- onEventDefinition.addToBody(script);
- writer.writeText(",\n" + eventName + ": "+onEventDefinition.toScript(), null);
+ onEventDefinition.addToBody(script);
+ writer.writeText(",\n" + eventName + ": "
+ + onEventDefinition.toScript(), null);
}
}
@@ -271,8 +277,7 @@
}
}
- private static String[] shiftDates(int minimum,
- int maximum, String[] labels) {
+ private static String[] shiftDates(int minimum, int maximum, String[] labels) {
if (minimum == 0 && (maximum - minimum == labels.length - 1)) {
return labels;
}
@@ -291,17 +296,16 @@
Calendar cal = calendar.getCalendar();
int maximum = cal.getActualMaximum(Calendar.DAY_OF_WEEK);
int minimum = cal.getActualMinimum(Calendar.DAY_OF_WEEK);
-
+
int monthMax = cal.getActualMaximum(Calendar.MONTH);
int monthMin = cal.getActualMinimum(Calendar.MONTH);
-
+
DateFormatSymbols symbols = new DateFormatSymbols(locale);
String[] weekDayLabels = ComponentUtil.asArray(calendar
.getWeekDayLabels());
if (weekDayLabels == null) {
weekDayLabels = symbols.getWeekdays();
- weekDayLabels = shiftDates(minimum, maximum,
- weekDayLabels);
+ weekDayLabels = shiftDates(minimum, maximum, weekDayLabels);
}
String[] weekDayLabelsShort = ComponentUtil.asArray(calendar
16 years, 7 months
JBoss Rich Faces SVN: r3090 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: euhvasko
Date: 2007-09-25 08:55:10 -0400 (Tue, 25 Sep 2007)
New Revision: 3090
Modified:
trunk/docs/userguide/en/src/main/docbook/included/insert.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/insert.xml
Log:
http://jira.jboss.com/jira/browse/RF-657 edit info about component
Modified: trunk/docs/userguide/en/src/main/docbook/included/insert.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/insert.desc.xml 2007-09-25 12:54:23 UTC (rev 3089)
+++ trunk/docs/userguide/en/src/main/docbook/included/insert.desc.xml 2007-09-25 12:55:10 UTC (rev 3090)
@@ -9,7 +9,7 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><rich:insert></property>
- </emphasis> component is used for source code inserting and highlighting.</para>
+ </emphasis> component is used for highlighting, source code inserting and, optionally, format the file from the application context into the page.</para>
</section>
<section>
<title>Key Features</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/insert.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-09-25 12:54:23 UTC (rev 3089)
+++ trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-09-25 12:55:10 UTC (rev 3090)
@@ -85,7 +85,7 @@
<property>"src"</property>
</emphasis> attribute defines the path to the file with source code. The <emphasis>
<property>"highlight"</property>
- </emphasis> attribute defines a type of code.</para>
+ </emphasis> attribute defines the type of a syntax highlighting.</para>
<para>If <emphasis>
<property>"highlight"</property>
</emphasis> attribute is defined and <ulink url="https://jhighlight.dev.java.net/">
16 years, 7 months
JBoss Rich Faces SVN: r3089 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: euhvasko
Date: 2007-09-25 08:54:23 -0400 (Tue, 25 Sep 2007)
New Revision: 3089
Modified:
trunk/docs/userguide/en/src/main/docbook/included/page.xml
trunk/docs/userguide/en/src/main/docbook/included/poll.xml
trunk/docs/userguide/en/src/main/docbook/included/status.xml
trunk/docs/userguide/en/src/main/docbook/included/support.xml
Log:
http://jira.jboss.com/jira/browse/RF-622 Ajax4jsf was changed to RichFaces
Modified: trunk/docs/userguide/en/src/main/docbook/included/page.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-09-25 10:03:00 UTC (rev 3088)
+++ trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-09-25 12:54:23 UTC (rev 3089)
@@ -73,7 +73,7 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>The component is mostly used to solve the following problem with MyFaces for erlier Ajax4gsf versions: in MyFaces <emphasis role="bold">
+ <para>The component is mostly used to solve the following problem with MyFaces for erlier Ajax4jsf versions: in MyFaces <emphasis role="bold">
<property><f:view></property>
</emphasis> doesn't get control over the "<emphasis >
<property>RENDER_RESPONSE</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-09-25 10:03:00 UTC (rev 3088)
+++ trunk/docs/userguide/en/src/main/docbook/included/poll.xml 2007-09-25 12:54:23 UTC (rev 3089)
@@ -60,7 +60,7 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>The component decodes all necessary JavaScript for time count and on the expiry of some interval for calling of a Ajax4jsf utility method for Ajax request sending (A4J.AJAX.Submit (Some request parameters)).
+ <para>The component decodes all necessary JavaScript for time count and on the expiry of some interval for calling of a RichFaces utility method for Ajax request sending (A4J.AJAX.Submit (Some request parameters)).
</para>
<para>
The timer could be stopped or started in any time. The current state is controlled on the component with the <emphasis >
@@ -69,7 +69,7 @@
</para>
<programlisting role="XML"><![CDATA[<a4j:poll interval="1000" enabled="#{bean.boolProperty}"/>
]]></programlisting>
-<para>As any Ajax4jsf Action component, <emphasis role="bold">
+<para>As any RichFaces Action component, <emphasis role="bold">
<property><a4j:poll></property>
</emphasis> has all described in the <emphasis role="bold">
<property><ulink url="index.html#support"><a4j:support></ulink></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/status.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-09-25 10:03:00 UTC (rev 3088)
+++ trunk/docs/userguide/en/src/main/docbook/included/status.xml 2007-09-25 12:54:23 UTC (rev 3089)
@@ -88,7 +88,7 @@
Definition with the <emphasis >
<property>"status"</property>
</emphasis>
-attribute obtained by any Ajax4jsf library action component. The attribute should point at the <emphasis role="bold">
+attribute obtained by any RichFaces library action component. The attribute should point at the <emphasis role="bold">
<property><a4j:status></property>
</emphasis> component "id". Then this <emphasis role="bold">
<property><a4j:status></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-09-25 10:03:00 UTC (rev 3088)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-09-25 12:54:23 UTC (rev 3089)
@@ -75,11 +75,11 @@
<input onkeyup="A4J.AJAX.Submit( Some request parameters )"/>
]]></programlisting>
<para>As you see from the code, the "onkeyup"
-event calls a utility ajax4jsf method that submit a form creating a special marks for a filter informing that it is an Ajax request. Thus, any supports quantity could be added to every component, the supports define component behavior on these events. </para>
+event calls a utility RichFaces method that submit a form creating a special marks for a filter informing that it is an Ajax request. Thus, any supports quantity could be added to every component, the supports define component behavior on these events. </para>
<note>
<para>The components: <emphasis role="bold"><property><a4j:commandLink></property></emphasis>, <emphasis role="bold"><property><a4j:commandButton></property></emphasis>, <emphasis role="bold">
<property><a4j:poll></property>
- </emphasis> and others from Ajax4jsf library are already supplied with <emphasis role="bold">
+ </emphasis> and others from RichFaces library are already supplied with <emphasis role="bold">
<property><a4j:support></property>
</emphasis> functionality and there is no necessity to add the support to them. </para>
</note>
16 years, 7 months