JBoss Rich Faces SVN: r2627 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-30 14:29:37 -0400 (Thu, 30 Aug 2007)
New Revision: 2627
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-446 - added descriptions for classes
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-30 17:04:47 UTC (rev 2626)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-08-30 18:29:37 UTC (rev 2627)
@@ -399,198 +399,353 @@
</section>
- <!--section>
+ <section>
<title>Look-and-Feel Customization</title>
-
- <para>As this component is just a wrapper for its children its provide the only
- "rich-panel-menu" class for wrapper div element. To redefine appearance of
- particular panel menus, it's possible to define your own CSS class. And then just
- define it in the components class attribute. </para>
-
-</section-->
-
- <section>
- <title>Definition of Custom Style Classes</title>
- <figure>
- <title>Classes names</title>
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis>
+ Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
+
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> components at once:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Redefine the corresponding skin parameters</para>
+ </listitem>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/calendar1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <listitem>
+ <para>Add to a user's style sheets <emphasis>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> component</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <!--section>
+ <title> Skin parameters redefinition</title>
- <para>On the screenshot, there are classes names defining specified elements.</para>
-
<table>
- <title>Classes names that define input field and button appearance</title>
+ <title>Skin parameters redefinition for table element of the first level group</title>
<tgroup cols="2">
<thead>
<row>
- <entry>Class name</entry>
+ <entry>Parameters for table element of the first level group</entry>
- <entry>Description</entry>
+ <entry>CSS properties</entry>
</row>
</thead>
<tbody>
<row>
- <entry>rich-calendar-input </entry>
+ <entry>headerWeightFont</entry>
- <entry>Defines input field</entry>
+ <entry>font-weight</entry>
</row>
<row>
- <entry>rich-calendar-popupicon</entry>
+ <entry>generalFamilyFont</entry>
- <entry>Defines icon for button</entry>
+ <entry>font-family</entry>
</row>
+ <row>
+ <entry>headerSizeFont</entry>
+
+ <entry>font-size</entry>
+ </row>
+
+ <row>
+ <entry>headerTextColor</entry>
+
+ <entry>color</entry>
+ </row>
+
+ <row>
+ <entry>headerBackgroundColor</entry>
+
+ <entry>background-color</entry>
+ </row>
</tbody>
</tgroup>
</table>
<table>
- <title>Classes names that define days appearance</title>
+ <title>Skin parameters redefinition for table element of the second and next levels groups</title>
<tgroup cols="2">
<thead>
<row>
- <entry>Class name</entry>
+ <entry>Parameters for table element of the second and next levels groups</entry>
- <entry>Description</entry>
+ <entry>CSS properties</entry>
</row>
</thead>
<tbody>
-
<row>
- <entry>rich-calendar-days</entry>
+ <entry>headerWeightFont</entry>
- <entry></entry>
+ <entry>font-weight</entry>
</row>
<row>
- <entry>rich-Weekendclass</entry>
+ <entry>headerFamilyFont</entry>
- <entry></entry>
+ <entry>font-family</entry>
</row>
<row>
- <entry>rich-calendar-week</entry>
+ <entry>headerSizeFont</entry>
- <entry></entry>
+ <entry>font-size</entry>
</row>
<row>
- <entry>rich-calendar-cell</entry>
+ <entry>generalTextColor</entry>
- <entry></entry>
+ <entry>color</entry>
</row>
<row>
- <entry>rich-calendar-holly</entry>
+ <entry>tableBorderColor</entry>
- <entry></entry>
+ <entry>border-top-color</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameter redefinition for wrapped div element of the first level group</title>
+
+ <tgroup cols="2">
+ <thead>
<row>
- <entry>rich-calendar-selected</entry>
+ <entry>Parameter for wrapped div element of the first level group</entry>
- <entry></entry>
+ <entry>CSS properties</entry>
</row>
-
+ </thead>
+
+ <tbody>
<row>
- <entry>rich-calendar-hover</entry>
+ <entry>panelBorderColor</entry>
- <entry></entry>
+ <entry>border-color</entry>
</row>
</tbody>
</tgroup>
</table>
-
+ </section-->
+
+ <section>
+ <title>Definition of Custom Style Classes</title>
+
+ <figure>
+ <title>Classes names</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/calendar1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the screenshot, there are classes names defining specified elements.</para>
+
<table>
- <title>Classes names that define popup element</title>
-
+ <title>Classes names that define input field and button appearance</title>
+
<tgroup cols="2">
<thead>
<row>
<entry>Class name</entry>
-
+
<entry>Description</entry>
</row>
</thead>
-
+
<tbody>
+ <row>
+ <entry>rich-calendar-input </entry>
+
+ <entry>Defines the styles for the input field</entry>
+ </row>
+
+ <row>
+ <entry>rich-calendar-popupicon</entry>
+
+ <entry>Defines the styles for the icon for button</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Classes names that define days appearance</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+
+ <entry>Description</entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+ <row>
+ <entry>rich-calendar-days</entry>
+
+ <entry>Defines styles for names of working days in the header</entry>
+ </row>
+
+ <row>
+ <entry>rich-calendar-weekends</entry>
+
+ <entry>Defines styles for names of weekend in the header</entry>
+ </row>
+
+ <row>
+ <entry>rich-calendar-week</entry>
+
+ <entry>Defines styles for weeks numbers</entry>
+ </row>
<row>
- <entry>rich-calendar-exterior</entry>
+ <entry>rich-calendar-today</entry>
- <entry></entry>
+ <entry>Defines styles for today date</entry>
</row>
+
+ <row>
+ <entry>rich-calendar-cell</entry>
+
+ <entry>Defines styles for cells with days</entry>
+ </row>
+
+ <row>
+ <entry>rich-calendar-holly</entry>
+
+ <entry>Defines styles for hollydays</entry>
+ </row>
+
+ <row>
+ <entry>rich-calendar-select</entry>
+
+ <entry>Defines styles for selected day</entry>
+ </row>
+
+ <row>
+ <entry>rich-calendar-hover</entry>
+
+ <entry>Defines styles for hovered day</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Classes names that define popup element</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+
+ <entry>Description</entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+ <row>
+ <entry>rich-calendar-exterior</entry>
+
+ <entry>Defines styles for popup element</entry>
+ </row>
<row>
- <entry>rich-calendar-header-optional</entry>
+ <entry>rich-calendar-tool</entry>
- <entry></entry>
+ <entry>Defines styles for toolbars</entry>
</row>
<row>
- <entry>rich-calendar-footer-optional</entry>
+ <entry>rich-calendar-month</entry>
- <entry></entry>
+ <entry>Defines styles for names of months</entry>
</row>
-
+
<row>
+ <entry>rich-calendar-header-optional</entry>
+
+ <entry>Defines styles for optional header</entry>
+ </row>
+
+ <row>
+ <entry>rich-calendar-footer-optional</entry>
+
+ <entry>Defines styles for optional footer</entry>
+ </row>
+
+ <row>
<entry>rich-calendar-header</entry>
-
- <entry></entry>
+
+ <entry>Defines styles for header</entry>
</row>
-
+
<row>
<entry>rich-calendar-footer</entry>
-
- <entry></entry>
+
+ <entry>Defines styles for footer</entry>
</row>
-
+
<row>
- <entry>rich-calendar-today</entry>
-
- <entry></entry>
- </row>
-
- <row>
<entry>rich-calendar-boundary-dates</entry>
-
- <entry></entry>
+
+ <entry>Defines styles for active boundary button</entry>
</row>
-
+
<row>
<entry>rich-calendar-btn</entry>
-
- <entry></entry>
+
+ <entry>Defines styles for inactive boundary date</entry>
</row>
-
+
<row>
<entry>rich-calendar-current</entry>
-
- <entry></entry>
+
+ <entry>Defines styles for today control date</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
-
- <para>In order to redefine the style for all calendars on a page using CSS,
- it's enough to create classes with the same names and define the necessary properties
- in them.</para>
-
- <para>To change the style of particular calendars define your own style
- classes in the corresponding calendar attributes. </para>
+
+ <para>In order to redefine the style for all <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:calendar></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:calendar></property>
+ </emphasis>attributes.</para>
</section>
<section>
16 years, 1 month
JBoss Rich Faces SVN: r2626 - trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-08-30 13:04:47 -0400 (Thu, 30 Aug 2007)
New Revision: 2626
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
Log:
http://jira.jboss.com/jira/browse/RF-782
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2007-08-30 16:46:15 UTC (rev 2625)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2007-08-30 17:04:47 UTC (rev 2626)
@@ -370,4 +370,14 @@
public abstract String getSortMode();
public abstract void setSortMode(String mode);
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.component.UIDataAdaptor#setRowIndex(int)
+ */
+ public void setRowIndex(int index) {
+ if (index < 0) {
+ setRowKey(null);
+ }
+ //super.setRowIndex(index);
+ }
}
16 years, 1 month
JBoss Rich Faces SVN: r2625 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-30 12:46:15 -0400 (Thu, 30 Aug 2007)
New Revision: 2625
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml
Log:
Tooltip delay changed to 1000 sec.
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml 2007-08-30 16:41:35 UTC (rev 2624)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml 2007-08-30 16:46:15 UTC (rev 2625)
@@ -45,7 +45,7 @@
<h:outputText value="Make"/>
</f:facet>
<h:outputText id="make" value="#{vehicle.make}" >
- <rich:toolTip direction="top-right" mode="ajax" delay="50000" styleClass="tooltip" immediate="true" layout="block">
+ <rich:toolTip direction="top-right" mode="ajax" delay="1000" styleClass="tooltip" immediate="true" layout="block">
<a4j:actionparam name="key" value="#{row}" assignTo="#{toolTipData.currentVehicleIndex}" />
<f:facet name="defaultContent">
<strong>Wait please, content is loading...</strong>
16 years, 1 month
JBoss Rich Faces SVN: r2624 - trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-30 12:41:35 -0400 (Thu, 30 Aug 2007)
New Revision: 2624
Modified:
trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
http://jira.jboss.com/jira/browse/RF-766
Modified: trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-08-30 16:41:30 UTC (rev 2623)
+++ trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-08-30 16:41:35 UTC (rev 2624)
@@ -59,7 +59,7 @@
this.iframe = $(this.id + 'iframe');
}
- if(!this.disabled) Event.observe(document.getElementsByTagName("body")[0], "mousemove", this.attachOnLoadEvents.bindAsEventListener(this), true);
+ if(!this.disabled) Event.observe(document, "mousemove", this.attachOnLoadEvents.bindAsEventListener(this), true);
//it means we have only one tooltip for elements
Richfaces.tooltips[parentId] = this;
},
@@ -70,14 +70,32 @@
this.attachParentEvents();
this.parentAttached = true;
}
- Event.stopObserving(document.getElementsByTagName("body")[0], "mousemove", this.attachOnLoadEvents.bindAsEventListener(this), false);
+ Event.stopObserving(document, "mousemove", this.attachOnLoadEvents.bindAsEventListener(this), false);
}
},
attachParentEvents: function(){
if(this.followMouse){
Event.observe(this.parent, 'mousemove', this.setToolTipPosition.bindAsEventListener(this), false);
}
- Event.observe(this.parent, this.event, this.doShow.bindAsEventListener(this), false);
+
+ var eventHandler;
+ if (this.delay > 0) {
+ eventHandler = function(event) {
+ if (this.activationTimerHandle) {
+ return ;
+ }
+
+ var eventCopy = A4J.AJAX.CloneObject(event, false);
+
+ this.activationTimerHandle = setTimeout(function() {
+ this.doShow(eventCopy);
+ }.bind(this), this.delay);
+ }.bindAsEventListener(this);
+ } else {
+ eventHandler = this.doShow.bindAsEventListener(this);
+ }
+
+ Event.observe(this.parent, this.event, eventHandler, false);
Event.observe(this.parent, "mouseout", this.doHide.bindAsEventListener(this), false);
Event.observe(this.toolTip, 'mouseout', this.leaveToolTip.bindAsEventListener(this), false)
@@ -107,7 +125,6 @@
}
},
-
doShow: function(e){
var needToShow = true;
var obj;
@@ -190,9 +207,9 @@
if(!needToHide) return;
- if (this.queuedToolTip) {
- clearTimeout(this.queuedToolTip);
- this.queuedToolTip = undefined;
+ if (this.activationTimerHandle) {
+ clearTimeout(this.activationTimerHandle);
+ this.activationTimerHandle = undefined;
}
var fakeEvent = false;
@@ -362,12 +379,15 @@
this.setToolTipPosition(obj);
}
}
- if(this.delay > 0){
- this.queuedToolTip = setTimeout('Richfaces.tooltips[\'' + this.parentId + '\'].setToolTipVisible(true)', this.delay);
- } else {
- this.setToolTipVisible(true);
- }
+ this.setToolTipVisible(true);
+
+// if(this.delay > 0) {
+// this.queuedToolTip = setTimeout('Richfaces.tooltips[\'' + this.parentId + '\'].setToolTipVisible(true)', this.delay);
+// } else {
+// this.setToolTipVisible(true);
+// }
+
// if(this.mode != 'ajax'){
// this.oncomplete(window.event);
@@ -376,7 +396,7 @@
},
setToolTipVisible: function(runOnComplete){
- this.queuedToolTip = undefined;
+ this.activationTimerHandle = undefined;
this.toolTip.style.display = "block";
this.toolTip.style.visibility = "visible";
if(this.iframe){
16 years, 1 month
JBoss Rich Faces SVN: r2623 - trunk/samples/tooltip-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-30 12:41:30 -0400 (Thu, 30 Aug 2007)
New Revision: 2623
Modified:
trunk/samples/tooltip-sample/src/main/webapp/pages/demo.jsp
Log:
http://jira.jboss.com/jira/browse/RF-766
Modified: trunk/samples/tooltip-sample/src/main/webapp/pages/demo.jsp
===================================================================
--- trunk/samples/tooltip-sample/src/main/webapp/pages/demo.jsp 2007-08-30 15:47:07 UTC (rev 2622)
+++ trunk/samples/tooltip-sample/src/main/webapp/pages/demo.jsp 2007-08-30 16:41:30 UTC (rev 2623)
@@ -94,6 +94,31 @@
</a4j:outputPanel>
</h:form>
</h:panelGrid>
+
+ <h:form>
+ <a4j:outputPanel layout="block" style="width:350px;height:75px;cursor:arrow;border-width:2px;text-align:center;border:2px solid red">
+ <f:verbatim>
+ <p>
+ This tool-tip causes problems in richfaces-demo.
+ </p>
+ </f:verbatim>
+
+ <rich:toolTip delay="2000" direction="top-right" mode="ajax" styleClass="tooltip" layout="block">
+ <f:facet name="defaultContent">
+ <f:verbatim>
+ <strong>Wait...</strong>
+ </f:verbatim>
+ </f:facet>
+ <f:verbatim>
+ <span >This tool-tip content was <strong>rendered on server</strong> </span>
+ </f:verbatim>
+ <h:panelGrid columns="2">
+ <h:outputText value="tooltips requested:" />
+ <h:outputText value="#{bean.counter}" styleClass="tooltipData" />
+ </h:panelGrid>
+ </rich:toolTip>
+ </a4j:outputPanel>
+ </h:form>
16 years, 1 month
JBoss Rich Faces SVN: r2622 - in trunk/ui/calendar/src: test/java/org/richfaces/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-08-30 11:47:07 -0400 (Thu, 30 Aug 2007)
New Revision: 2622
Modified:
trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
Log:
RF-759 and added CurrentDateChangeListener
Modified: trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-08-30 15:09:59 UTC (rev 2621)
+++ trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-08-30 15:47:07 UTC (rev 2622)
@@ -35,11 +35,11 @@
import javax.faces.context.FacesContext;
import javax.faces.convert.ConverterException;
import javax.faces.convert.DateTimeConverter;
+import javax.faces.el.MethodBinding;
import javax.faces.el.ValueBinding;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.FacesEvent;
import javax.faces.event.ValueChangeEvent;
-
import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.event.AjaxEvent;
import org.apache.commons.logging.Log;
@@ -135,6 +135,11 @@
public abstract String getBoundaryDatesMode();
public abstract void setBoundaryDatesMode(String boundaryDatesMode);
+
+ public abstract MethodBinding getCurrentDateChangeListener();
+
+ public abstract void setCurrentDateChangeListener(MethodBinding scrollerListener);
+
//TODO onclick add users onclick
@@ -306,7 +311,15 @@
CurrentDateChangeEvent newDateChangeEvent = new CurrentDateChangeEvent(
this, currentDate);
newDateChangeEvent.queue();
+ MethodBinding binding = getCurrentDateChangeListener();
+ if(binding!=null){
+
+ binding.invoke(facesContext, new Object[]{event});
+ }
+
+
+
} catch (Exception e) {
// XXX nick - kaa - add log.debug(...)
// XXX nick - kaa - we should stop processing on exc.
Modified: trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
===================================================================
--- trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java 2007-08-30 15:09:59 UTC (rev 2621)
+++ trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java 2007-08-30 15:47:07 UTC (rev 2622)
@@ -21,6 +21,7 @@
import com.gargoylesoftware.htmlunit.ElementNotFoundException;
import com.gargoylesoftware.htmlunit.html.HtmlButton;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
+import com.gargoylesoftware.htmlunit.html.HtmlImage;
import com.gargoylesoftware.htmlunit.html.HtmlInput;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlScript;
@@ -48,6 +49,7 @@
javaScripts
.add("org/richfaces/renderkit/html/scripts/json/json-dom.js");
javaScripts.add("org/richfaces/renderkit/html/scripts/calendar.js");
+ javaScripts.add("org/richfaces/renderkit/html/scripts/scriptaculous/effects.js");
}
public CalendarComponentTest(String name) {
@@ -169,7 +171,7 @@
*/
HtmlPage page = renderView();
assertNotNull(page);
- //System.out.println(page.asXml());
+ System.out.println(page.asXml());
HtmlElement htmlCalendar = page.getHtmlElementById(calendar
.getClientId(facesContext));
@@ -178,7 +180,7 @@
HtmlInput htmlCalendarInput = (HtmlInput) page
.getHtmlElementById(calendar.getClientId(facesContext)
+ "InputDate");
- HtmlButton htmlCalendarButton = (HtmlButton) page
+ HtmlImage htmlCalendarButton = (HtmlImage) page
.getHtmlElementById(calendar.getClientId(facesContext)
+ "PopupButton");
HtmlSpan htmlCalendarSpan = (HtmlSpan) page.getHtmlElementById(calendar
16 years, 1 month
JBoss Rich Faces SVN: r2621 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-30 11:09:59 -0400 (Thu, 30 Aug 2007)
New Revision: 2621
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
trunk/docs/userguide/en/src/main/docbook/included/insert.xml
trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml
Log:
http://jira.jboss.com/jira/browse/RF-776
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -306,7 +306,7 @@
</listitem>
<listitem>
- <para>Add to a user's style sheets style classes used by a drop-down menu</para>
+ <para>Add to your style sheets style classes used by a drop-down menu</para>
</listitem>
</itemizedlist>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -69,7 +69,7 @@
<title>Details of Usage</title>
<para><emphasis role="bold">
<property><rich:inputNumberSlider></property>
- </emphasis> is used to facilitate user data input with rich UI Controls.</para>
+ </emphasis> is used to facilitate your data input with rich UI Controls.</para>
<para>Here is the simplest variant of a slider definition with
<emphasis><property>"minValue"</property>,</emphasis>
<emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -70,7 +70,7 @@
<title>Details of Usage</title>
<para><emphasis role="bold">
<property><rich:inputNumberSpinner></property>
- </emphasis> is used to facilitate user data input with rich UI Controls.</para>
+ </emphasis> is used to facilitate your data input with rich UI Controls.</para>
<para>Here is the simplest variant of <property>spinner</property> definition with
<emphasis><property>"minValue"</property>,</emphasis>
<emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/insert.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -113,7 +113,7 @@
<property><rich:insert></property>
</emphasis> component provides the same functionalitity as <ulink
url="https://jhighlight.dev.java.net/"> JHighlight</ulink>. Thus, all names of highlight
- style classes for source code of particular language could be changed to user names, wich are
+ style classes for source code of particular language could be changed to your names, wich are
used by the <ulink url="https://jhighlight.dev.java.net/">JHighlight</ulink> library.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.desc.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.desc.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -4,6 +4,6 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><a4j:mediaOutput></property>
- </emphasis> component implements one of the basic features specified in the framework. The component is a facility for generating images, video, sounds and other binary resources defined by a user on-the-fly.</para>
+ </emphasis> component implements one of the basic features specified in the framework. The component is a facility for generating images, video, sounds and other binary resources defined by you on-the-fly.</para>
</section>
</root>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -94,7 +94,7 @@
</itemizedlist>
<note><title>Note:</title>A bean class transmitted into value should implement Serializable interface.
</note>
- <para>Hence, when using the component it's possible to output user data of any type on a page with Ajax requests.</para>
+ <para>Hence, when using the component it's possible to output your data of any type on a page with Ajax requests.</para>
</section>
<!--
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -168,7 +168,7 @@
<para>Redefine corresponding skin parameters</para>
</listitem>
<listitem>
- <para>Add to user's styles heet style classes used by a menu group</para>
+ <para>Add to your styles heet style classes used by a menu group</para>
</listitem>
</itemizedlist>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -173,7 +173,7 @@
<para>Redefine the corresponding skin parameters</para>
</listitem>
<listitem>
- <para>Add to user's style sheets style classes used by a menu item</para>
+ <para>Add to your style sheets style classes used by a menu item</para>
</listitem>
</itemizedlist>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -80,7 +80,7 @@
</para>
<itemizedlist>
<listitem><para>Redefine the corresponding skin parameters</para></listitem>
- <listitem><para>Add to user's style sheets style classes used by a menu separator</para></listitem>
+ <listitem><para>Add to your style sheets style classes used by a menu separator</para></listitem>
</itemizedlist>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.desc.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.desc.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -29,7 +29,7 @@
<itemizedlist>
<listitem>Highly customizable look and feel</listitem>
- <listitem>Support of draggable operations and size changes by a user</listitem>
+ <listitem>Support of draggable operations and size changes by you</listitem>
<listitem>Easy positioning for the modal dialog window</listitem>
<listitem>Possibility to restore of the previous component state on a page (including position on the screen) after submitting and reloading</listitem>
</itemizedlist>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -66,7 +66,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:modalPanel id="panel">
+ <rich:modalPanel id="panel">
<f:facet name="header">
<h:outputText value="header">
</f:facet>
@@ -228,7 +228,8 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[Richfaces.showModalPanel('panelId', {left: auto}, {param1: value1});</programlisting>
+ <programlisting role="JAVA"><![CDATA[Richfaces.showModalPanel('panelId', {left: auto}, {param1: value1});
+ ]]></programlisting>
<para> Thus, except the standard modalPanel parameters you can pass any of your own parameters. </para>
<para> Also modalPanel allows to handle its own opening and closing events on the client side.
The <emphasis><property>"onshow"</property></emphasis> and <emphasis><property>"onclose"</property></emphasis> attributes are used in this
@@ -264,7 +265,7 @@
...
]]></programlisting>
- <para> Here, if user opens modal dialog window using current link and after submits data then
+ <para> Here, if you open modal dialog window using current link and after submits data then
modalPanel destination and height on new loaded page will be restored. </para>
<para>if you need the content of the modalPanel to be submitted - you need to remember two important rules: </para>
<itemizedlist>
@@ -274,7 +275,7 @@
form inside.</listitem>
</itemizedlist>
<para>Simple example of using commandButton within modalPanel is placed below.</para>
- <emphasis role="bold">Example:</emphasis></para>
+ <para><emphasis role="bold">Example:</emphasis></para>
<programlisting role="XML"><![CDATA[...
<rich:modalPanel>
@@ -290,11 +291,13 @@
</rich:modalPanel>
...
<h:form>
- <!--Some other Page content-->
+ <!--Some other Page content-->
</h:form>
...
]]></programlisting>
+
+
<para>See also discussion about this problem on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064191"
>RichFaces Users Forum</ulink>.</para>
@@ -519,5 +522,6 @@
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061517"
>RichFaces Users Forum</ulink>. </para>
</section>
+
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -90,7 +90,7 @@
<property>"data"</property>
</emphasis>
</para>
- <para>Specifies a bean class keeping user's data for rendering</para>
+ <para>Specifies a bean class keeping your data for rendering</para>
</listitem>
</itemizedlist>
<para>
@@ -150,7 +150,7 @@
<title>Look-and-Feel Customization</title>
<para><property>Paint2D</property> has no skin parameters and special <emphasis><property>style
classes</property>, </emphasis> as it consists of one element generated with a
- user's method on the server.</para>
+ your method on the server.</para>
<para>To define some style properties such as an indent or a border, it's possible to
use <emphasis>
<property>"style"</property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -246,7 +246,7 @@
</listitem>
<listitem>
- <para>Add to a user's style sheets style classes used by a panel menu group</para>
+ <para>Add to your style sheets style classes used by a panel menu group</para>
</listitem>
</itemizedlist>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -249,7 +249,7 @@
</listitem>
<listitem>
- <para>Add to a user's style sheets style classes used by a panel menu item</para>
+ <para>Add to your style sheets style classes used by a panel menu item</para>
</listitem>
</itemizedlist>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.desc.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.desc.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -27,7 +27,7 @@
<listitem>Fully skinnable component</listitem>
<listitem>Adds <emphasis><property>"onkeypress"</property></emphasis> suggestions capabilities to any input text component</listitem>
<listitem>Performs suggestion via Ajax requests without any line of JavaScript code written
- by a user</listitem>
+ by you</listitem>
<listitem>Possible to render table as a popup suggestion</listitem>
<listitem>Can be pointed to any Ajax request status indicator of the page</listitem>
<listitem>Easily customizable size of suggestion popup</listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -248,7 +248,7 @@
</listitem>
<listitem>
- <para>Add to a user's style sheets style classes used by a suggestionbox</para>
+ <para>Add to your style sheets style classes used by a suggestionbox</para>
</listitem>
</itemizedlist>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml 2007-08-30 14:57:02 UTC (rev 2620)
+++ trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml 2007-08-30 15:09:59 UTC (rev 2621)
@@ -196,7 +196,7 @@
<para>To redefine appearance of all <property>tooltip</property> at once, there are two ways:</para>
<itemizedlist>
<listitem>to redefine corresponding skin parameters</listitem>
- <listitem>to add to a user's style sheets style classes used by a <property>tooltip</property></listitem>
+ <listitem>to add to your style sheets style classes used by a <property>tooltip</property></listitem>
</itemizedlist>
<para>
16 years, 1 month
JBoss Rich Faces SVN: r2620 - trunk/framework/api/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-08-30 10:57:02 -0400 (Thu, 30 Aug 2007)
New Revision: 2620
Modified:
trunk/framework/api/src/main/java/org/richfaces/component/Column.java
Log:
fixed incorrect COMPONENT_TYPE declaration. It MUST be public
Modified: trunk/framework/api/src/main/java/org/richfaces/component/Column.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/component/Column.java 2007-08-30 14:56:02 UTC (rev 2619)
+++ trunk/framework/api/src/main/java/org/richfaces/component/Column.java 2007-08-30 14:57:02 UTC (rev 2620)
@@ -50,7 +50,12 @@
public abstract void setSortable(boolean sortable);
-
+ /**
+ * expression used for column sorting.
+ * literal value is treated as property of data object
+ * EL-expression is evaluated on every data row
+ * @param sortExpression
+ */
public abstract void setSortExpression(String sortExpression);
public abstract String getSortExpression();
16 years, 1 month
JBoss Rich Faces SVN: r2619 - trunk/test-applications/jsp/src/main/webapp/Div.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-30 10:56:02 -0400 (Thu, 30 Aug 2007)
New Revision: 2619
Modified:
trunk/test-applications/jsp/src/main/webapp/Div/Div.jsp
Log:
update
Modified: trunk/test-applications/jsp/src/main/webapp/Div/Div.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Div/Div.jsp 2007-08-30 14:53:38 UTC (rev 2618)
+++ trunk/test-applications/jsp/src/main/webapp/Div/Div.jsp 2007-08-30 14:56:02 UTC (rev 2619)
@@ -11,22 +11,20 @@
</head>
<body >
<jsp:useBean id="tDivID" scope="session" class="div.DivBean"/>
+ <jsp:setProperty name="tDivID" property="current" />
<% String res = request.getParameter("srcSelect");
- int index;
- if(res == null)
- index = 0;
- else index = Integer.valueOf(res);
+ if(res != null) tDivID.setCurrent(Integer.valueOf(res));
%>
<div id="div_1_ID" style="position: relative; left:400px; top:400px; border-color: red, 2px;">
<div id="div_2_ID" style="position: absolute; left:-380px; top:-380px; color: blue, 2px;">
- <jsp:include page="<%= tDivID.getSrc()[Integer.valueOf(index)] %>" />
+ <jsp:include page="<%= tDivID.getSrc()[tDivID.getCurrent()] %>" />
</div>
</div>
- <div id="divTestOpthn" align="right">
- <%= "Current: " + tDivID.getSrc()[Integer.valueOf(index)] %>
+ <div id="divTestOpthn" align="right" style="position: relative;">
+ <%= "Current: " + tDivID.getSrc()[tDivID.getCurrent()] %>
<form action="/jsp/Div/Div.jsf" method="get">
- <SELECT NAME="srcSelect">
+ <SELECT NAME="current">
<option value="0">Calendar</option>
<option value="1">DataFilterSlider</option>
<option value="2">Date Scroller</option>
16 years, 1 month
JBoss Rich Faces SVN: r2618 - trunk/ui/scrollableDataTable/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-08-30 10:53:38 -0400 (Thu, 30 Aug 2007)
New Revision: 2618
Modified:
trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx
Log:
small fix
Modified: trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx
===================================================================
--- trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx 2007-08-30 14:32:23 UTC (rev 2617)
+++ trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx 2007-08-30 14:53:38 UTC (rev 2618)
@@ -67,7 +67,7 @@
</jsp:scriptlet>
- <div id="#{clientId}" style="width: #{component.attributes['width']};height: #{component.attributes['height']};" class="dr-sdt #{component.attributes['styleClass']}" >
+ <div id="#{clientId}" style="width: #{component.attributes['width']};height: #{component.attributes['height']};" class="dr-sdt rich-sdt #{component.attributes['styleClass']}" >
<div id="#{clientId}:cs" class="dr-sdt-hsplit" />
<div id="#{clientId}_GridHeaderTemplate" class="dr-sdt-inlinebox" style="#{hStyle}; width: #{component.attributes['width']};">
<iframe id="#{clientId}:hs" class="dr-sdt-substrate" src="" scrolling="no" frameborder="0" > <br/> </iframe>
16 years, 1 month