JBoss Rich Faces SVN: r3976 - trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-13 15:53:14 -0500 (Tue, 13 Nov 2007)
New Revision: 3976
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java
Log:
http://jira.jboss.com/jira/browse/RF-1262
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java 2007-11-13 20:49:27 UTC (rev 3975)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java 2007-11-13 20:53:14 UTC (rev 3976)
@@ -100,8 +100,9 @@
public String getTagInfoLocation() {
int pos = tldDocLocation.indexOf("tlddoc");
- if (pos > 0)
+ if (pos > 0) {
return tldDocLocation.substring(pos);
+ }
return tldDocLocation;
}
18 years, 5 months
JBoss Rich Faces SVN: r3975 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-13 15:49:27 -0500 (Tue, 13 Nov 2007)
New Revision: 3975
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataLists.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-1262
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java 2007-11-13 19:54:02 UTC (rev 3974)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java 2007-11-13 20:49:27 UTC (rev 3975)
@@ -97,5 +97,12 @@
public void setGroup(String group) {
this.group = group;
}
+
+ public String getTagInfoLocation() {
+ int pos = tldDocLocation.indexOf("tlddoc");
+ if (pos > 0)
+ return tldDocLocation.substring(pos);
+ return tldDocLocation;
+ }
}
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataLists.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataLists.xhtml 2007-11-13 19:54:02 UTC (rev 3974)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataLists.xhtml 2007-11-13 20:49:27 UTC (rev 3975)
@@ -12,7 +12,7 @@
<ui:include src="/richfaces/dataLists/usage.xhtml"/>
</rich:tab>
<ui:include src="/templates/include/tagInfo.xhtml">
- <ui:param name="path" value="rich/dataLists"/>
+ <ui:param name="path" value="rich/dataList"/>
</ui:include>
</rich:tabPanel>
</ui:define>
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml 2007-11-13 19:54:02 UTC (rev 3974)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml 2007-11-13 20:49:27 UTC (rev 3975)
@@ -1,13 +1,12 @@
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:rich="http://richfaces.org/rich">
-<ui:composition>
- <rich:tab label="Tag Information">
- <rich:insert src="/WEB-INF/tlddoc/#{path}.html"
- errorContent="/templates/include/tagInfoNotes.xhtml"/>
- </rich:tab>
-</ui:composition>
-</html>
-
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition>
+ <rich:tab label="Tag Information">
+ <rich:insert src="/WEB-INF/#{componentNavigator.currentComponent.tagInfoLocation}"
+ errorContent="/templates/include/tagInfoNotes.xhtml"/>
+ </rich:tab>
+</ui:composition>
+</html>
18 years, 5 months
JBoss Rich Faces SVN: r3974 - in trunk/samples/richfaces-demo/src/main/webapp: templates/include and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-13 14:54:02 -0500 (Tue, 13 Nov 2007)
New Revision: 3974
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-1344
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox.xhtml 2007-11-13 19:47:54 UTC (rev 3973)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox.xhtml 2007-11-13 19:54:02 UTC (rev 3974)
@@ -12,7 +12,7 @@
<ui:include src="/richfaces/suggestionBox/usage.xhtml"/>
</rich:tab>
<ui:include src="/templates/include/tagInfo.xhtml">
- <ui:param name="path" value="rich/suggestionBox"/>
+ <ui:param name="path" value="rich/suggestionbox"/>
</ui:include>
</rich:tabPanel>
</ui:define>
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml 2007-11-13 19:47:54 UTC (rev 3973)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml 2007-11-13 19:54:02 UTC (rev 3974)
@@ -8,6 +8,6 @@
<rich:insert src="/WEB-INF/tlddoc/#{path}.html"
errorContent="/templates/include/tagInfoNotes.xhtml"/>
</rich:tab>
-</ui:composition>>
+</ui:composition>
</html>
18 years, 5 months
JBoss Rich Faces SVN: r3973 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-11-13 14:47:54 -0500 (Tue, 13 Nov 2007)
New Revision: 3973
Modified:
trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml
Log:
RF-1174 - fix section Definition of Custom Style Classes
Modified: trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2007-11-13 19:46:23 UTC (rev 3972)
+++ trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2007-11-13 19:47:54 UTC (rev 3973)
@@ -14,12 +14,12 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<rich:listShuttle value=”#{bean.list}” var=”list” selection=”#{value.resultList}”>
+<rich:listShuttle value="#{bean.list}" var="list" selection="#{value.resultList}">
<f:facet name=header>
- <h:outputText value=”Header1”/>
+ <h:outputText value="Header1"/>
</f:facet>
<rich:column>
- <h:outputText value=”#{list.text}”>
+ <h:outputText value="#{list.text}">
</rich:column>
<rich:listShuttle>
...]]></programlisting>
@@ -58,6 +58,7 @@
</emphasis> is used to define columns for every row.</listitem>
</itemizedlist>
</para>
+
</section>
<section>
<title>JavaScript API</title>
@@ -403,5 +404,14 @@
</tbody>
</tgroup>
</table>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:listShuttle></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the same names and define necessary properties in them.
+ </para>
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:listShuttle></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis role="bold">
+ <property><rich:listShuttle></property>
+ </emphasis> component attributes.</para>
</section>
</section>
18 years, 5 months
JBoss Rich Faces SVN: r3972 - in trunk: sandbox/samples/contextMenuDemo/src/main/webapp/pages and 7 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-11-13 14:46:23 -0500 (Tue, 13 Nov 2007)
New Revision: 3972
Added:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/
Removed:
trunk/ui/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss
trunk/ui/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/scripts/
Modified:
trunk/sandbox/samples/contextMenuDemo/
trunk/sandbox/samples/contextMenuDemo/pom.xml
trunk/sandbox/samples/contextMenuDemo/src/main/webapp/pages/index.jsp
trunk/sandbox/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererDelegate.java
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
Context menu first demo.
Slight refactoring of DropDown menu
Property changes on: trunk/sandbox/samples/contextMenuDemo
___________________________________________________________________
Name: svn:ignore
- target
+ target
.classpath
.project
.settings
Modified: trunk/sandbox/samples/contextMenuDemo/pom.xml
===================================================================
--- trunk/sandbox/samples/contextMenuDemo/pom.xml 2007-11-13 19:09:56 UTC (rev 3971)
+++ trunk/sandbox/samples/contextMenuDemo/pom.xml 2007-11-13 19:46:23 UTC (rev 3972)
@@ -25,7 +25,12 @@
<groupId>org.richfaces.ui</groupId>
<artifactId>dataTable</artifactId>
<version>3.2.0-SNAPSHOT</version>
- </dependency>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>contextMenu</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </dependency>
</dependencies>
<build>
<finalName>contextMenuDemo</finalName>
Modified: trunk/sandbox/samples/contextMenuDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/contextMenuDemo/src/main/webapp/pages/index.jsp 2007-11-13 19:09:56 UTC (rev 3971)
+++ trunk/sandbox/samples/contextMenuDemo/src/main/webapp/pages/index.jsp 2007-11-13 19:46:23 UTC (rev 3972)
@@ -22,8 +22,8 @@
<f:view>
<h:form>
<h:panelGroup id="outputText">
- <h:outputText value="xXx" />
- <cm:contextMenu >
+ <h:outputText value="Right Click Here" />
+ <cm:contextMenu submitMode="none">
<mc:menuItem id="menuItem11" value="Active11: ajax" submitMode="ajax" />
<mc:menuItem id="menuItem12" value="Active12" immediate="true"/>
<mc:menuItem id="menuItem14" value="Active14"/>
Modified: trunk/sandbox/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererDelegate.java
===================================================================
--- trunk/sandbox/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererDelegate.java 2007-11-13 19:09:56 UTC (rev 3971)
+++ trunk/sandbox/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererDelegate.java 2007-11-13 19:46:23 UTC (rev 3972)
@@ -77,7 +77,7 @@
function.addParameter(component.getParent().getClientId(context));
String evt = (String) component.getAttributes().get("event");
if(evt == null || evt.trim().length() == 0){
- evt = "onmouseover";
+ evt = "oncontextmenu";
}
function.addParameter(evt);
function.addParameter("onmouseout");
Deleted: trunk/ui/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss
===================================================================
--- trunk/ui/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss 2007-11-13 19:09:56 UTC (rev 3971)
+++ trunk/ui/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss 2007-11-13 19:46:23 UTC (rev 3972)
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<f:template xmlns:f='http:/jsf.exadel.com/template'
- xmlns:u='http:/jsf.exadel.com/template/util'
- xmlns="http://www.w3.org/1999/xhtml" >
-
-<f:verbatim><![CDATA[
-
-
-.dr-menu-list-border {
- border : 1px solid;
- float : left;
- position : absolute;
-}
-.dr-menu-list-bg {
- border-top-style : solid;
- border-left-style : solid;
- border-right-style : solid;
-
- border-top-width : 1px;
- border-left-width : 1px;
- border-right-width : 1px;
-
- background : repeat-y left;
-}
-.dr-menu-label {
- left: 0px;
- top: 0px;
- padding : 2px 5px 2px 5px;
- white-space : nowrap;
- width : auto;
- height : auto;
-}
-.dr-menu-label-unselect {
- border : 0px solid transparent;
- padding : 3px 6px;
-}
-.dr-menu-label-select {
- border : 1px solid;
- cursor : pointer;
-}
-
-.dr-menu-list-strut {
- font-size : 0px;
- border: 0px;
- margin : 0px;
- position: relative;
-}
-
-.underneath_iframe{
- position: absolute;
- z-index: 90;
- visibility:hidden;
- left:0px;
- top:0px;
- height:1px;
- width:1px;
-}
-
-]]>
-
-</f:verbatim>
-
-<u:selector name=".dr-label-text-decor">
- <u:style name="font-weight" skin="headerWeightFont" />
-</u:selector>
-
-<u:selector name=".dr-menu-list-border">
- <u:style name="border-color" skin="panelBorderColor" />
- <u:style name="background-color" skin="additionalBackgroundColor" />
-</u:selector>
-
-<u:selector name=".dr-menu-list-bg">
- <u:style name="background-image">
- <f:resource f:key="org.richfaces.renderkit.html.images.background.MenuListBackground"/>
- </u:style>
- <u:style name="border-top-color" skin="additionalBackgroundColor" />
- <u:style name="border-left-color" skin="additionalBackgroundColor" />
- <u:style name="border-right-color" skin="additionalBackgroundColor" />
-</u:selector>
-
-<u:selector name=".dr-menu-label">
- <u:style name="font-family" skin="generalFamilyFont" />
- <u:style name="font-size" skin="generalSizeFont" />
-</u:selector>
-
-<u:selector name=".dr-menu-label-select">
- <u:style name="border-color" skin="panelBorderColor" />
- <u:style name="background-color" skin="controlBackgroundColor" />
- <u:style name="color" skin="generalTextColor" />
-</u:selector>
-
-</f:template>
Modified: trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
===================================================================
--- trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-11-13 19:09:56 UTC (rev 3971)
+++ trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-11-13 19:46:23 UTC (rev 3972)
@@ -151,10 +151,10 @@
StringBuffer scriptValue = new StringBuffer();
String mode = resolveSubmitMode(menuItem);
- if (mode.equalsIgnoreCase(MenuComponent.MODE_AJAX)) {
+ if (MenuComponent.MODE_AJAX.equalsIgnoreCase(mode)) {
scriptValue.append(AjaxRendererUtils.buildOnClick(
menuItem, context).toString());
- } else if (mode.equalsIgnoreCase(MenuComponent.MODE_SERVER)) {
+ } else if (MenuComponent.MODE_SERVER.equalsIgnoreCase(mode)) {
String id = menuItem.getClientId(context);
Copied: trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss (from rev 3958, trunk/ui/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss)
===================================================================
--- trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss (rev 0)
+++ trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss 2007-11-13 19:46:23 UTC (rev 3972)
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:template xmlns:f='http:/jsf.exadel.com/template'
+ xmlns:u='http:/jsf.exadel.com/template/util'
+ xmlns="http://www.w3.org/1999/xhtml" >
+
+<f:verbatim><![CDATA[
+
+
+.dr-menu-list-border {
+ border : 1px solid;
+ float : left;
+ position : absolute;
+}
+.dr-menu-list-bg {
+ border-top-style : solid;
+ border-left-style : solid;
+ border-right-style : solid;
+
+ border-top-width : 1px;
+ border-left-width : 1px;
+ border-right-width : 1px;
+
+ background : repeat-y left;
+}
+.dr-menu-label {
+ left: 0px;
+ top: 0px;
+ padding : 2px 5px 2px 5px;
+ white-space : nowrap;
+ width : auto;
+ height : auto;
+}
+.dr-menu-label-unselect {
+ border : 0px solid transparent;
+ padding : 3px 6px;
+}
+.dr-menu-label-select {
+ border : 1px solid;
+ cursor : pointer;
+}
+
+.dr-menu-list-strut {
+ font-size : 0px;
+ border: 0px;
+ margin : 0px;
+ position: relative;
+}
+
+.underneath_iframe{
+ position: absolute;
+ z-index: 90;
+ visibility:hidden;
+ left:0px;
+ top:0px;
+ height:1px;
+ width:1px;
+}
+
+]]>
+
+</f:verbatim>
+
+<u:selector name=".dr-label-text-decor">
+ <u:style name="font-weight" skin="headerWeightFont" />
+</u:selector>
+
+<u:selector name=".dr-menu-list-border">
+ <u:style name="border-color" skin="panelBorderColor" />
+ <u:style name="background-color" skin="additionalBackgroundColor" />
+</u:selector>
+
+<u:selector name=".dr-menu-list-bg">
+ <u:style name="background-image">
+ <f:resource f:key="org.richfaces.renderkit.html.images.background.MenuListBackground"/>
+ </u:style>
+ <u:style name="border-top-color" skin="additionalBackgroundColor" />
+ <u:style name="border-left-color" skin="additionalBackgroundColor" />
+ <u:style name="border-right-color" skin="additionalBackgroundColor" />
+</u:selector>
+
+<u:selector name=".dr-menu-label">
+ <u:style name="font-family" skin="generalFamilyFont" />
+ <u:style name="font-size" skin="generalSizeFont" />
+</u:selector>
+
+<u:selector name=".dr-menu-label-select">
+ <u:style name="border-color" skin="panelBorderColor" />
+ <u:style name="background-color" skin="controlBackgroundColor" />
+ <u:style name="color" skin="generalTextColor" />
+</u:selector>
+
+</f:template>
Copied: trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts (from rev 3958, trunk/ui/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/scripts)
Modified: trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
--- trunk/ui/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2007-11-13 16:41:29 UTC (rev 3958)
+++ trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2007-11-13 19:46:23 UTC (rev 3972)
@@ -315,6 +315,7 @@
if (!e) {
e = window.event;
}
+ Event.stop(e);
this.event = e;
this.element = Event.element(e);
this.layer = $(layer);
@@ -682,17 +683,20 @@
this.items = new Array();
RichFaces.Menu.Layers.layers[id] = this;
this.bindings = new Array();
+
+ //Usually set on DD menu to true
+ this.highlightParent = true;
+
-
-
this.mouseover =
function(e){
RichFaces.Menu.MouseIn=true;
RichFaces.Menu.Layers.clearLMTO();
+ if (this.highlightParent) {
+ var menuNode = RichFaces.Menu.Layers.layers[this.layer.id].layer.parentNode.parentNode;
+ menuNode.className='dr-menu-label dr-menu-label-select rich-ddmenu-label rich-ddmenu-label-select';
+ }
- var menuNode = RichFaces.Menu.Layers.layers[this.layer.id].layer.parentNode.parentNode;
- menuNode.className='dr-menu-label dr-menu-label-select rich-ddmenu-label rich-ddmenu-label-select';
-
Event.stop(e);
}.bindAsEventListener(this);
@@ -702,9 +706,10 @@
if (!RichFaces.Menu.selectOpen) {
RichFaces.Menu.Layers.setLMTO(this.hideDelay);
}
+ if (this.highlightParent) {
var menuNode = RichFaces.Menu.Layers.layers[this.layer.id].layer.parentNode.parentNode;
menuNode.className='dr-menu-label dr-menu-label-unselect rich-ddmenu-label rich-ddmenu-label-unselect';
-
+ }
Event.stop(e);
}.bindAsEventListener(this);
@@ -1070,7 +1075,10 @@
asContextMenu: function(parent, evt){
var refLayer = $(parent);
if(!refLayer) return this;
+
+
var id = this.id;
+ this.highlightParent = false;
if(!evt){
evt = 'onclick';
}
@@ -1091,6 +1099,7 @@
binding = new RichFaces.Menu.Layer.Binding (parent, offEvt, onmouseout);
this.bindings.push(binding);
binding.refresh();
+
return this;
},
eventJsToPrototype: function(evtName){
18 years, 5 months
JBoss Rich Faces SVN: r3971 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-11-13 14:09:56 -0500 (Tue, 13 Nov 2007)
New Revision: 3971
Modified:
trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml
Log:
RF-1184 - fix section Definition of Custom Style Classes
Modified: trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml 2007-11-13 19:08:21 UTC (rev 3970)
+++ trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml 2007-11-13 19:09:56 UTC (rev 3971)
@@ -371,19 +371,7 @@
<para>All the changes uses the same rules that defined in requirement for ordering with
controls.</para>
- <section>
- <title> Built-In Drag and Drop</title>
- <para> It's possible to drag items and drop to the position needed. </para>
- <para>In this case component <emphasis role="bold">
- <property><rich:orderingList></property>
- </emphasis> provides <property>
- <emphasis>"dragIndicator"</emphasis>
- </property> attribute. </para>
-
- <!-- add an example!!! -->
-
- </section>
- <section>
+ <section>
<title>JavaScript API</title>
<para> Controls are accessible for developer on client-side using controls attribute of
JavaScript component instance. The value of the attribute is an associative array of
@@ -611,5 +599,14 @@
</tbody>
</tgroup>
</table>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:orderingList></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the same names and define necessary properties in them.
+ </para>
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:orderingList></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis role="bold">
+ <property><rich:orderingList></property>
+ </emphasis> component attributes.</para>
</section>
</section>
18 years, 5 months
JBoss Rich Faces SVN: r3970 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-11-13 14:08:21 -0500 (Tue, 13 Nov 2007)
New Revision: 3970
Modified:
trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml
Log:
RF-1184 - fix section Key Features. Delete Built-in Drag-and-Drop
Modified: trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml 2007-11-13 18:53:56 UTC (rev 3969)
+++ trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml 2007-11-13 19:08:21 UTC (rev 3970)
@@ -21,7 +21,6 @@
<listitem>Customizable component layout (captions, headers, list items and ordering control set)</listitem>
<listitem>Disabled/enabled ordering controls</listitem>
<listitem>Multiple selection in the <property>ordering list</property></listitem>
- <listitem> Built-In Drag-and-drop support</listitem>
<listitem>Possibility to manage selection from
<itemizedlist>
<listitem>Keyboard</listitem>
18 years, 5 months
JBoss Rich Faces SVN: r3969 - trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-13 13:53:56 -0500 (Tue, 13 Nov 2007)
New Revision: 3969
Modified:
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBase.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottom.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDown.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTop.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUp.java
Log:
Icon images changed in ordering list demo.
Modified: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBase.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBase.java 2007-11-13 18:43:00 UTC (rev 3968)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBase.java 2007-11-13 18:53:56 UTC (rev 3969)
@@ -68,6 +68,10 @@
g2d.setColor(backgroundColor);
g2d.fillRect(0, 0, dim.width, dim.height);
+
+ Dimension dimension = getDimensions(context);
+ g2d.scale(dimension.getHeight()/120,dimension.getHeight()/120);
+
if (textColor != null && backgroundColor != null && g2d != null) {
paintImage(context, g2d, textColor);
}
@@ -75,7 +79,7 @@
}
protected Dimension calculateDimensions(Object data){
- return new Dimension(16, 16);
+ return new Dimension(15, 15);
}
public Dimension getDimensions(FacesContext facesContext, Object data) {
Modified: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottom.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottom.java 2007-11-13 18:43:00 UTC (rev 3968)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottom.java 2007-11-13 18:53:56 UTC (rev 3969)
@@ -41,14 +41,11 @@
Color textColor) {
GeneralPath path = new GeneralPath();
- Dimension dimension = getDimensions(context);
- g2d.scale(dimension.getHeight()/128,dimension.getHeight()/128);
-
g2d.setColor(textColor);
- g2d.drawRect(39, 85, 49, 4);
+ g2d.drawRect(31, 85, 49, 4);
- g2d.translate(31,22);
+ g2d.translate(23,22);
path.moveTo(0,0);
path.lineTo(33,33);
path.lineTo(34,33);
Modified: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDown.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDown.java 2007-11-13 18:43:00 UTC (rev 3968)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDown.java 2007-11-13 18:53:56 UTC (rev 3969)
@@ -42,10 +42,7 @@
Color textColor) {
GeneralPath path = new GeneralPath();
- Dimension dimension = getDimensions(context);
- g2d.scale(dimension.getHeight()/128,dimension.getHeight()/128);
-
- g2d.translate(31,54);
+ g2d.translate(23,46);
path.moveTo(0,0);
path.lineTo(33,33);
path.lineTo(34,33);
Modified: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTop.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTop.java 2007-11-13 18:43:00 UTC (rev 3968)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTop.java 2007-11-13 18:53:56 UTC (rev 3969)
@@ -41,14 +41,11 @@
Color textColor) {
GeneralPath path = new GeneralPath();
- Dimension dimension = getDimensions(context);
- g2d.scale(dimension.getHeight()/128,dimension.getHeight()/128);
-
g2d.setColor(textColor);
- g2d.drawRect(38, 29, 51, 4);
+ g2d.drawRect(31, 22, 51, 4);
- g2d.translate(31,39);
+ g2d.translate(23,31);
path.moveTo(0,33);
path.lineTo(33,0);
path.lineTo(34,0);
Modified: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUp.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUp.java 2007-11-13 18:43:00 UTC (rev 3968)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUp.java 2007-11-13 18:53:56 UTC (rev 3969)
@@ -41,10 +41,7 @@
Color textColor) {
GeneralPath path = new GeneralPath();
- Dimension dimension = getDimensions(context);
- g2d.scale(dimension.getHeight()/128,dimension.getHeight()/128);
-
- g2d.translate(31,47);
+ g2d.translate(23,39);
path.moveTo(0,33);
path.lineTo(33,0);
path.lineTo(34,0);
18 years, 5 months
JBoss Rich Faces SVN: r3968 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-11-13 13:43:00 -0500 (Tue, 13 Nov 2007)
New Revision: 3968
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-1042 - Added new section "Iteration components Ajax attributes". Added description for "ajaxKeys""ajaxKeys", "timeout", "onbeforedomupdate". Added examples and improved description for "ajaxSingle" and "limitToList" attributes.
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-11-13 18:42:57 UTC (rev 3967)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-11-13 18:43:00 UTC (rev 3968)
@@ -259,8 +259,19 @@
<property>"false"</property> means to update only the area(s) that
mentioned in the <emphasis/>"reRender"<property/> attribute explicitly.
All output panels with
- "ajaxRendered"=<property>"true"</property> will be
- ignored.</para>
+ "ajaxRendered"=<property>"true"</property>is ignored. An
+ example is placed below:</para>
+
+ <programlisting role="XML"><![CDATA[...
+ <h:form>
+ <h:inputText value="#{person.name}">
+ <a4j:support event="onkeyup" reRender="test" limitToList="true"/>
+ </h:inputText>
+ <h:outputText value="#{person.name}" id="test"/>
+ </form>
+...
+]]></programlisting>
+
</section>
<section id="QueueandTrafficFloodProtection">
@@ -322,6 +333,11 @@
<para>More information can be found on the <ulink
url="http://jboss.com/index.html?module=bb&op=viewtopic&t=105766"
>RichFaces Users Forum</ulink>.</para>
+
+ <para><emphasis>
+ <property>"timeout"</property>
+ </emphasis> attribute is used for setting response waiting time on a particular request. If
+ a response is not received during this time, the request is aborted.</para>
</section>
<section id="DataProcessingOptions">
@@ -341,8 +357,21 @@
</emphasis> or <emphasis role="bold">
<property><a4j:action></property>
</emphasis> param values if any) to the request map. In case of <emphasis role="bold">
- <property>a4j:support</property>
- </emphasis>, it will be a value of the parent component.</para>
+ <property><a4j:support></property>
+ </emphasis>, it is a value of the parent component. An example is placed below:</para>
+
+ <programlisting role="XML"><![CDATA[...
+ <h:form>
+ <h:inputText value="#{person.name}">
+ <a4j:support event="onkeyup" reRender="test" ajaxSingle="true"/>
+ </h:inputText>
+ <h:inputText value="#{person.middleName}"/>
+ </form>
+...
+]]></programlisting>
+ <para>In this example the request contains only the input component causes the request
+ generation, not all the components contained on a form, because of
+ "ajaxSingle"=<property>"true"</property> usage.</para>
<para>Note, that "ajaxSingle"=<property>"true"</property>
reduces the upcoming traffic, but does not prevent decoding other input components on the
server side. Some JSF components, such as <emphasis role="bold">
@@ -420,6 +449,7 @@
Otherwize, the application proceeds to the next page. Make sure, you define
<redirect/> option for the navigation rule to avoid memory leaks.</listitem>
</itemizedlist>
+ <para> </para>
</section>
<section id="JavascriptInteractions">
@@ -467,6 +497,11 @@
will not point the component where Ajax request was initiated.</para>
<para><emphasis>
+ <property>"onbeforedomupdate"</property>
+ </emphasis> attrubute defines JavaScript code for call after Ajax response receiving and
+ before updating DOM on a client side.</para>
+
+ <para><emphasis>
<property>"data"</property>
</emphasis> attribute allows to get the additional data from the server during an Ajax call.
You can use JSF EL to point the property of the managed bean and its value will be
@@ -485,6 +520,39 @@
</emphasis>.</para>
</section>
+ <section id="IterationcomponentsAjaxattributes">
+ <?dbhtml filename="IterationcomponentsAjaxattributes.html"?>
+ <title>Iteration components Ajax attributes</title>
+ <para><emphasis>
+ <property>"ajaxKeys"</property>
+ </emphasis> attribute defines strings that are updated after an Ajax request. It provides
+ possibility to update several child components separately without updating the whole page.</para>
+
+ <programlisting role="XML"><![CDATA[...
+ <a4j:poll intervall="1000" action="#{repeater.action}" reRender="text">
+ <table>
+ <tbody>
+ <a4j:repeat value="#{bean.props}" var="detail" ajaxKeys="#{repeater.ajaxedRowsSet}">
+ <tr>
+ <td>
+ <h:outputText value="detail.someProperty" id="text"/>
+ </td>
+ </tr>
+ </a4j:repeat>
+ </tbody>
+ </table>
+ </a4j:poll>
+...
+]]></programlisting>
+
+ </section>
+
+ <!--section id="Otherusefulattributes">
+ <?dbhtml filename="Otherusefulattributes.html"?>
+ <title>Other useful attributes</title>
+
+ </section-->
+
</section>
<section id="HowTo...">
18 years, 5 months
JBoss Rich Faces SVN: r3967 - trunk/ui/effect/src/main/resources/org/richfaces/renderkit/html/script.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-13 13:42:57 -0500 (Tue, 13 Nov 2007)
New Revision: 3967
Removed:
trunk/ui/effect/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js
Log:
controlUtils.js removed
Deleted: trunk/ui/effect/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js
===================================================================
--- trunk/ui/effect/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js 2007-11-13 18:42:17 UTC (rev 3966)
+++ trunk/ui/effect/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js 2007-11-13 18:42:57 UTC (rev 3967)
@@ -1,22 +0,0 @@
-if (!window.Richfaces) {
-window.Richfaces = {};
-}
-
-if (!Richfaces.componentControl) {
- Richfaces.componentControl = {};
-}
-
-Richfaces.componentControl.attachEvent = function(attachTo, cevent, aevent, forAttr, operation, params) {
- jQuery(attachTo).bind(Richfaces.effectEventOnOut(aevent), function() {
- jQuery( forAttr)[0].component[operation](cevent, params);
- });
-};
-
-Richfaces.componentControl.performOperation = function( cevent, forAttr, operation, params) {
- jQuery( forAttr)[0].component[operation](cevent, params);
-};
-
-
-Richfaces.effectEventOnOut = function(ename) {
- return ename.substr(0,2) == 'on' ? ename.substr(2) : ename;
-};
18 years, 5 months