JBoss Rich Faces SVN: r22109 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeNode.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2011-03-09 10:04:01 -0500 (Wed, 09 Mar 2011)
New Revision: 22109
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeNode/TestTreeNodeSimple.java
Log:
removed issue tracking for RFPL-1124
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeNode/TestTreeNodeSimple.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeNode/TestTreeNodeSimple.java 2011-03-09 14:53:25 UTC (rev 22108)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeNode/TestTreeNodeSimple.java 2011-03-09 15:04:01 UTC (rev 22109)
@@ -25,9 +25,6 @@
import static org.jboss.test.selenium.JQuerySelectors.not;
import static org.jboss.test.selenium.dom.Event.CLICK;
import static org.jboss.test.selenium.dom.Event.DBLCLICK;
-import static org.jboss.test.selenium.dom.Event.KEYDOWN;
-import static org.jboss.test.selenium.dom.Event.KEYPRESS;
-import static org.jboss.test.selenium.dom.Event.KEYUP;
import static org.jboss.test.selenium.dom.Event.MOUSEDOWN;
import static org.jboss.test.selenium.dom.Event.MOUSEMOVE;
import static org.jboss.test.selenium.dom.Event.MOUSEOUT;
@@ -53,7 +50,6 @@
import org.richfaces.component.SwitchType;
import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
import org.richfaces.tests.metamer.ftest.annotations.Inject;
-import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.richfaces.tests.metamer.ftest.annotations.Use;
import org.richfaces.tests.metamer.ftest.richTree.TreeAttributes;
import org.richfaces.tests.metamer.ftest.richTree.TreeModel;
@@ -83,7 +79,7 @@
@Inject
@Use(empty = true)
Event event = CLICK;
- Event[] events = new Event[] { CLICK, DBLCLICK, KEYDOWN, KEYPRESS, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEOUT,
+ Event[] events = new Event[] { CLICK, DBLCLICK, MOUSEDOWN, MOUSEMOVE, MOUSEOUT,
MOUSEOVER, MOUSEUP };
@Inject
@@ -223,9 +219,8 @@
assertEquals(selenium.getCount(not(tree.getAnyNode(), "[lang=cs]")), 4);
}
- @Test(groups = "4.0.0.Final")
+ @Test
@Use(field = "event", value = "events")
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1124")
public void testClientEvents() {
String attributeName = event.getEventName();
ElementLocator<?> eventInput = pjq("span[id$=treeNode1Attributes:panel] input[id$=on" + attributeName
13 years, 8 months
JBoss Rich Faces SVN: r22108 - branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2011-03-09 09:53:25 -0500 (Wed, 09 Mar 2011)
New Revision: 22108
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/component-sample.xhtml
Log:
http://jira.jboss.org/browse/RF-10723
@Nick checked.
Modified: branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/component-sample.xhtml
===================================================================
--- branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/component-sample.xhtml 2011-03-09 14:51:30 UTC (rev 22107)
+++ branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/component-sample.xhtml 2011-03-09 14:53:25 UTC (rev 22108)
@@ -10,7 +10,7 @@
<ui:define name="demoSampleParameters">
<f:metadata>
<f:viewParam name="sample" value="#{demoNavigator.sample}" />
- <f:viewParam name="demo" value="#{demoNavigator.demo}" />
+ <f:viewParam name="demo" value="#{demoNavigator.currentDemo.id}" />
<f:viewParam name="skin" value="#{skinBean.skin}" />
</f:metadata>
</ui:define>
@@ -25,9 +25,9 @@
onbeforeitemchange="return false;">
<c:forEach items="#{demoNavigator.currentDemo.samples}" var="s">
<rich:tab header="#{s.name}" name="#{s.id}"
- onheaderclick="document.location='#{facesContext.externalContext.requestContextPath}/richfaces/component-sample.jsf?demo=#{d.id}&sample=#{s.id}&skin=#{skinBean.skin}'" />
+ onheaderclick="document.location='#{facesContext.externalContext.requestContextPath}/richfaces/component-sample.jsf?demo=#{demoNavigator.currentDemo.id}&sample=#{s.id}&skin=#{skinBean.skin}'" />
</c:forEach>
- </rich:tabPanel>
+ </rich:tabPanel>
<fieldset class="example-cnt"><ui:include src="#{demoNavigator.sampleURI}" /></fieldset>
</ui:define>
</ui:composition>
13 years, 8 months
JBoss Rich Faces SVN: r22107 - branches/4.0.X/ui/core/ui/src/main/java/org/ajax4jsf/component/behavior.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2011-03-09 09:51:30 -0500 (Wed, 09 Mar 2011)
New Revision: 22107
Modified:
branches/4.0.X/ui/core/ui/src/main/java/org/ajax4jsf/component/behavior/AjaxBehavior.java
Log:
RF-9952 Taglib: ajax has no attributes
- reviewed by Anton Belevich
Modified: branches/4.0.X/ui/core/ui/src/main/java/org/ajax4jsf/component/behavior/AjaxBehavior.java
===================================================================
--- branches/4.0.X/ui/core/ui/src/main/java/org/ajax4jsf/component/behavior/AjaxBehavior.java 2011-03-09 14:43:31 UTC (rev 22106)
+++ branches/4.0.X/ui/core/ui/src/main/java/org/ajax4jsf/component/behavior/AjaxBehavior.java 2011-03-09 14:51:30 UTC (rev 22107)
@@ -64,7 +64,7 @@
enum PropertyKeys {
data, execute, onbeforedomupdate, onbegin, oncomplete, onerror, queueId, render,
- status, disabled, limitRender, immediate, bypassUpdates, onbeforesubmit
+ status, disabled, limitRender, immediate, bypassUpdates, onbeforesubmit, event, listener
}
private Set<String> execute;
@@ -90,6 +90,8 @@
setOnbeforedomupdate((String) value);
} else if (compare(PropertyKeys.onbegin, name)) {
setOnbegin((String) value);
+ } else if (compare(PropertyKeys.event, name)) {
+ setEvent((String) value);
} else if (compare(PropertyKeys.oncomplete, name)) {
setOncomplete((String) value);
} else if (compare(PropertyKeys.onerror, name)) {
@@ -101,6 +103,9 @@
} else if (compare(PropertyKeys.disabled, name)) {
value = expFactory.coerceToType(value, Boolean.class);
setDisabled((Boolean)value);
+ } else if (compare(PropertyKeys.listener, name)) {
+ value = expFactory.coerceToType(value, MethodExpression.class);
+ setListener((MethodExpression) value);
} else if (compare(PropertyKeys.limitRender, name)) {
value = expFactory.coerceToType(value, Boolean.class);
setLimitRender((Boolean) value);
@@ -138,8 +143,26 @@
public void setData(Object data) {
getStateHelper().put(PropertyKeys.data, data);
}
+
+ @Attribute
+ public MethodExpression getListener() {
+ return (MethodExpression) getStateHelper().eval(PropertyKeys.listener);
+ }
+ public void setListener(MethodExpression listener) {
+ getStateHelper().put(PropertyKeys.listener, listener);
+ }
+
@Attribute
+ public String getEvent() {
+ return (String) getStateHelper().eval(PropertyKeys.event);
+ }
+
+ public void setEvent(String event) {
+ getStateHelper().put(PropertyKeys.event, event);
+ }
+
+ @Attribute
public Collection<String> getExecute() {
return getCollectionValue(PropertyKeys.execute, execute);
}
13 years, 8 months
JBoss Rich Faces SVN: r22106 - in branches/4.0.X: ui/validator/ui/src/main/resources/META-INF/resources/org.richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-03-09 09:43:31 -0500 (Wed, 09 Mar 2011)
New Revision: 22106
Modified:
branches/4.0.X/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
branches/4.0.X/ui/validator/ui/src/main/resources/META-INF/resources/org.richfaces/message.js
Log:
https://issues.jboss.org/browse/RF-10722
Reviewed by Pavel
Modified: branches/4.0.X/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
===================================================================
--- branches/4.0.X/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2011-03-09 14:38:43 UTC (rev 22105)
+++ branches/4.0.X/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2011-03-09 14:43:31 UTC (rev 22106)
@@ -415,7 +415,7 @@
__bindEventHandlers: function () {
},
destroy: function () {
- rf.Event.unbind(this.id, this.namespace);
+ rf.Event.unbindById(this.id, this.namespace);
$super.destroy.call(this);
}
});
Modified: branches/4.0.X/ui/validator/ui/src/main/resources/META-INF/resources/org.richfaces/message.js
===================================================================
--- branches/4.0.X/ui/validator/ui/src/main/resources/META-INF/resources/org.richfaces/message.js 2011-03-09 14:38:43 UTC (rev 22105)
+++ branches/4.0.X/ui/validator/ui/src/main/resources/META-INF/resources/org.richfaces/message.js 2011-03-09 14:43:31 UTC (rev 22106)
@@ -1,37 +1,6 @@
(function($, rf) {
-
- rf.ui = rf.ui || {};
// Constructor definition
- rf.ui.Base = function(componentId, options, defaultOptions) {
- this.namespace = "."+rf.Event.createNamespace(this.name, componentId);
- // call constructor of parent class
- $super.constructor.call(this, componentId);
- this.options = $.extend(this.options, defaultOptions, options);
- this.attachToDom();
- this.__bindEventHandlers();
- };
-
- // Extend component class and add protected methods from parent class to our container
- rf.BaseComponent.extend(rf.ui.Base);
-
- // define super class link
- var $super = rf.ui.Base.$super;
-
- $.extend(rf.ui.Base.prototype, {
- __bindEventHandlers: function () {
- },
- destroy: function () {
- rf.Event.unbindById(this.id, this.namespace);
- $super.destroy.call(this);
- }
- });
-
-})(jQuery, window.RichFaces || (window.RichFaces={}));
-
-(function($, rf) {
-
- // Constructor definition
rf.ui.Message = function(componentId, options) {
// call constructor of parent class
$super.constructor.call(this, componentId, options, defaultOptions);
@@ -90,11 +59,13 @@
}
}
+ var bindEventHandlers = function () {
+ rf.Event.bind(window.document, rf.Event.MESSAGE_EVENT_TYPE+this.namespace, onMessage, this);
+ };
+
$.extend(rf.ui.Message.prototype, {
name: "Message",
- __bindEventHandlers: function () {
- rf.Event.bind(window.document, rf.Event.MESSAGE_EVENT_TYPE+this.namespace, onMessage, this);
- }
+ __bindEventHandlers: bindEventHandlers
});
})(jQuery, window.RichFaces || (window.RichFaces={}));
\ No newline at end of file
13 years, 8 months
JBoss Rich Faces SVN: r22105 - in branches/4.0.X: ui/input/ui/src/main/java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2011-03-09 09:38:43 -0500 (Wed, 09 Mar 2011)
New Revision: 22105
Modified:
branches/4.0.X/examples/input-demo/src/main/webapp/examples/inplaceInput.xhtml
branches/4.0.X/examples/input-demo/src/main/webapp/examples/inplaceSelect.xhtml
branches/4.0.X/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceInputRendererBase.java
branches/4.0.X/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectRendererBase.java
branches/4.0.X/ui/input/ui/src/main/templates/inplaceInput.template.xml
branches/4.0.X/ui/input/ui/src/main/templates/inplaceSelect.template.xml
Log:
RF-10689: @defaultValue is fixed for null value. Reviewed by Anton Belevich.
Modified: branches/4.0.X/examples/input-demo/src/main/webapp/examples/inplaceInput.xhtml
===================================================================
--- branches/4.0.X/examples/input-demo/src/main/webapp/examples/inplaceInput.xhtml 2011-03-09 13:56:43 UTC (rev 22104)
+++ branches/4.0.X/examples/input-demo/src/main/webapp/examples/inplaceInput.xhtml 2011-03-09 14:38:43 UTC (rev 22105)
@@ -1,22 +1,20 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:in="http://richfaces.org/input">
-<f:view contentType="text/html" />
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:in="http://richfaces.org/input">
+<f:view contentType="text/html"/>
<h:head>
- <title>InplaceInput</title>
+ <title>InplaceInput</title>
</h:head>
<h:body>
- <h:form id="form">
- <in:inplaceInput showControls="true" value="New York">
- </in:inplaceInput>
- <h:commandButton value="submit"/>
- <in:inplaceInput showControls="true" defaultLabel="click to enter your name" saveOnBlur="true" onblur="RichFaces.$('form:ii').cancel()" id="ii">
- </in:inplaceInput>
- </h:form>
+ <h:form id="form">
+ <in:inplaceInput defaultLabel="#{null}">
+ </in:inplaceInput>
+ </h:form>
</h:body>
</html>
Modified: branches/4.0.X/examples/input-demo/src/main/webapp/examples/inplaceSelect.xhtml
===================================================================
--- branches/4.0.X/examples/input-demo/src/main/webapp/examples/inplaceSelect.xhtml 2011-03-09 13:56:43 UTC (rev 22104)
+++ branches/4.0.X/examples/input-demo/src/main/webapp/examples/inplaceSelect.xhtml 2011-03-09 14:38:43 UTC (rev 22105)
@@ -19,7 +19,7 @@
<fieldset>
<legend>InplaceSelect Test App</legend>
Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
- <in:inplaceSelect id='ii' defaultLabel="Edit Text" value="#{inputBean.value}" openOnEdit="true" saveOnSelect="false">
+ <in:inplaceSelect id='ii' defaultLabel="" value="#{inputBean.value}" openOnEdit="true" saveOnSelect="false">
<f:selectItem itemLabel="Label#1" itemValue="Value#1"/>
<f:selectItem itemLabel="Label#2" itemValue="Value#2"/>
<f:selectItem itemLabel="Label#3" itemValue="Value#3"/>
Modified: branches/4.0.X/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceInputRendererBase.java
===================================================================
--- branches/4.0.X/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceInputRendererBase.java 2011-03-09 13:56:43 UTC (rev 22104)
+++ branches/4.0.X/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceInputRendererBase.java 2011-03-09 14:38:43 UTC (rev 22105)
@@ -21,20 +21,19 @@
*/
package org.richfaces.renderkit;
-import java.io.IOException;
-import java.util.Collections;
-import java.util.Map;
+import org.richfaces.component.AbstractInplaceInput;
+import org.richfaces.component.InplaceComponent;
+import org.richfaces.component.InplaceState;
+import org.richfaces.renderkit.util.HtmlDimensions;
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
+import java.io.IOException;
+import java.util.Collections;
+import java.util.Map;
-import org.richfaces.component.AbstractInplaceInput;
-import org.richfaces.component.InplaceComponent;
-import org.richfaces.component.InplaceState;
-import org.richfaces.renderkit.util.HtmlDimensions;
-
/**
* @author Anton Belevich
*
@@ -51,38 +50,6 @@
@ResourceDependency(library = "org.richfaces", name = "inplaceInput.ecss") })
public class InplaceInputRendererBase extends InputRendererBase {
- public static final String OPTIONS_EDIT_EVENT = "editEvent";
-
- public static final String OPTIONS_STATE = "state";
-
- public static final String OPTIONS_EDIT_CONTAINER = "editContainer";
-
- public static final String OPTIONS_INPUT = "input";
-
- public static final String OPTIONS_FOCUS = "focusElement";
-
- public static final String OPTIONS_BUTTON_OK = "okbtn";
-
- public static final String OPTIONS_LABEL = "label";
-
- public static final String OPTIONS_DEFAULT_LABEL = "defaultLabel";
-
- public static final String OPTIONS_BUTTON_CANCEL = "cancelbtn";
-
- public static final String OPTIONS_SHOWCONTROLS = "showControls";
-
- public static final String OPTIONS_NONE_CSS = "noneCss";
-
- public static final String OPTIONS_CHANGED_CSS = "changedCss";
-
- public static final String OPTIONS_EDIT_CSS = "editCss";
-
- public static final String OPTIONS_INITIAL_VALUE = "initialValue";
-
- public static final String OPTIONS_SAVE_ON_BLUR = "saveOnBlur";
-
-
-
//TODO: anton - move to RenderUtils (we use the same in the calendar base renderer) ?
protected static final Map<String, ComponentAttribute> INPLACE_INPUT_HANDLER_ATTRIBUTES = Collections
Modified: branches/4.0.X/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectRendererBase.java
===================================================================
--- branches/4.0.X/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectRendererBase.java 2011-03-09 13:56:43 UTC (rev 22104)
+++ branches/4.0.X/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectRendererBase.java 2011-03-09 14:38:43 UTC (rev 22105)
@@ -22,18 +22,17 @@
package org.richfaces.renderkit;
-import java.io.IOException;
-import java.util.List;
+import org.richfaces.component.AbstractInplaceSelect;
+import org.richfaces.component.InplaceComponent;
+import org.richfaces.renderkit.util.HtmlDimensions;
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
+import java.io.IOException;
+import java.util.List;
-import org.richfaces.component.AbstractInplaceSelect;
-import org.richfaces.component.InplaceComponent;
-import org.richfaces.renderkit.util.HtmlDimensions;
-
/**
* @author Anton Belevich
*
@@ -55,17 +54,9 @@
@ResourceDependency(library = "org.richfaces", name = "inplaceSelect.js"),
@ResourceDependency(library = "org.richfaces", name = "inplaceSelect.ecss") })
public class InplaceSelectRendererBase extends InplaceInputRendererBase {
-
- public static final String OPTIONS_OPEN_ON_EDIT = "openOnEdit";
-
- public static final String OPTIONS_SAVE_ON_SELECT = "saveOnSelect";
-
+
public static final String ITEM_CSS = "rf-is-opt";
-
- public static final String SELECT_ITEM_CSS = "rf-is-sel";
- public static final String LIST_CSS = "rf-is-lst-cord";
-
public List<ClientSelectItem> getConvertedSelectItems(FacesContext facesContext, UIComponent component) {
return SelectHelper.getConvertedSelectItems(facesContext, component);
}
Modified: branches/4.0.X/ui/input/ui/src/main/templates/inplaceInput.template.xml
===================================================================
--- branches/4.0.X/ui/input/ui/src/main/templates/inplaceInput.template.xml 2011-03-09 13:56:43 UTC (rev 22104)
+++ branches/4.0.X/ui/input/ui/src/main/templates/inplaceInput.template.xml 2011-03-09 14:38:43 UTC (rev 22105)
@@ -41,11 +41,12 @@
<cc:implementation>
<cdk:object type="org.richfaces.component.InplaceState" name="inplaceState" value="#{getInplaceState(component)}" />
<cdk:object type="java.lang.String" name="inplaceValue" value="#{getValue(facesContext, component)}" />
-
+ <cdk:object type="java.lang.String" name="defaultLabel" value="#{inplaceValue != null and inplaceValue.length() != 0 ? inplaceValue : '   '}" />
+
<span id="#{clientId}" cdk:passThroughWithExclusions="id class"
class="#{concatClasses(getStateStyleClass(component, inplaceState), component.attributes['styleClass'])}">
<span id="#{clientId}Label" class="rf-ii-lbl#{inplaceValue == component.attributes['defaultLabel'] ? ' rf-ii-dflt-lbl' : ''}">
- #{inplaceValue}
+ #{defaultLabel}
</span>
<c:if test="#{!component.attributes['disabled']}">
@@ -89,7 +90,8 @@
<cdk:scriptOption name="changedCss" value="#{concatClasses('rf-ii-c-s', component.attributes['changedStateClass'])}"/>
<cdk:scriptOption name="editCss" value="#{concatClasses('rf-ii-e-s', component.attributes['editStateClass'])}"/>
<cdk:scriptOption name="editEvent" value="#{getEditEvent(component)}"/>
- <cdk:scriptOption attributes="state defaultLabel saveOnBlur showControls" />
+ <cdk:scriptOption name="defaultLabel" value="#{defaultLabel}" />
+ <cdk:scriptOption attributes="state saveOnBlur showControls" />
<cdk:scriptOption attributes="onbegin oncomplete onerror onbeforedomupdate onselectitem onchange onblur onfocus" wrapper="eventHandler"/>
</cdk:scriptObject>
new RichFaces.ui.InplaceInput("#{clientId}", #{toScriptArgs(options)});
Modified: branches/4.0.X/ui/input/ui/src/main/templates/inplaceSelect.template.xml
===================================================================
--- branches/4.0.X/ui/input/ui/src/main/templates/inplaceSelect.template.xml 2011-03-09 13:56:43 UTC (rev 22104)
+++ branches/4.0.X/ui/input/ui/src/main/templates/inplaceSelect.template.xml 2011-03-09 14:38:43 UTC (rev 22105)
@@ -36,12 +36,13 @@
<cdk:object type="java.util.List" type-arguments="InplaceSelectBaseRenderer.ClientSelectItem" name="clientSelectItems"
value="#{getConvertedSelectItems(facesContext, component)}" />
-
+ <cdk:object type="java.lang.String" name="defaultLabel" value="#{inplaceValue != null and inplaceValue.length() != 0 ? inplaceValue : '   '}" />
+
<span id="#{clientId}" cdk:passThroughWithExclusions="id class"
class="#{concatClasses(getStateStyleClass(component, inplaceState), component.attributes['styleClass'])}" >
<span id="#{clientId}Label" class="rf-is-lbl#{inplaceValue == component.attributes['defaultLabel'] ? ' rf-is-dflt-lbl' : ''}">
- #{inplaceValue}
+ #{defaultLabel}
</span>
<c:if test="#{!component.attributes['disabled']}">
@@ -106,7 +107,8 @@
<cdk:scriptOption name="editCss" value="#{concatClasses('rf-is-e-s', component.attributes['editStateClass'])}"/>
<cdk:scriptOption name="selectItemCss" value="#{concatClasses('rf-is-sel', component.attributes['selectItemClass'])}"/>
<cdk:scriptOption name="editEvent" value="#{getEditEvent(component)}"/>
- <cdk:scriptOption attributes="state defaultLabel saveOnBlur showControls openOnEdit saveOnSelect inputWidth" />
+ <cdk:scriptOption name="defaultLabel" value="#{defaultLabel}" />
+ <cdk:scriptOption attributes="state saveOnBlur showControls openOnEdit saveOnSelect inputWidth" />
<cdk:scriptOption attributes="onbegin oncomplete onerror onbeforedomupdate onselectitem onchange onblur onfocus" wrapper="eventHandler"/>
</cdk:scriptObject>
new RichFaces.ui.InplaceSelect("#{clientId}", #{toScriptArgs(options)});
13 years, 8 months
JBoss Rich Faces SVN: r22104 - in trunk: archetypes/richfaces-archetype-simpleapp/src/main/resources/archetype-resources and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: juankprada
Date: 2011-03-09 08:56:43 -0500 (Wed, 09 Mar 2011)
New Revision: 22104
Modified:
trunk/archetypes/richfaces-archetype-simpleapp/readme.txt
trunk/archetypes/richfaces-archetype-simpleapp/src/main/resources/archetype-resources/readme.txt
trunk/dist/readme-examples.txt
trunk/dist/readme-ui.txt
Log:
RF-10583
Updates readme files for distribution package as well as readme files used in the archetype description and in a maven generated project.
Modified: trunk/archetypes/richfaces-archetype-simpleapp/readme.txt
===================================================================
--- trunk/archetypes/richfaces-archetype-simpleapp/readme.txt 2011-03-09 13:51:52 UTC (rev 22103)
+++ trunk/archetypes/richfaces-archetype-simpleapp/readme.txt 2011-03-09 13:56:43 UTC (rev 22104)
@@ -1,9 +1,69 @@
-RichFaces 4 Archetype
+========================================================================
+ RichFaces - Ajax enabled JSF 2.0 component library
-This archetype creates a simple RichFaces 4 application. To generate a project from the archetype, run
+ RichFaces 4.0.CR1 EXAMPLES
+ http://richfaces.org
+ March 2011
+ This software is distributed under the terms of the
+ FSF Lesser Gnu Public License (see lgpl.txt)
- mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes -DarchetypeArtifactId=richfaces-archetype-simpleapp
- -DarchetypeVersion=<version> -DgroupId=<yourGroupId> -DartifactId=<yourArtifactId> -Dversion=1.0-SNAPSHOT
+========================================================================
+RichFaces 4 is a component library for JSF2 and an advanced framework for
+easily integrating AJAX capabilities into business applications.
+This file explains how to generate a RichFaces application as a Maven 2
+project. If you find any issue with the project, please report
+the issue on the RichFaces user forum (http://community.jboss.org/en/richfaces)
+or jira (https://issues.jboss.org/browse/RF).
+
+
+USING THE ARCHETYPE:
+--------------------
+
+
+1. Install Maven 2 (see http://maven.apache.org for details)
+
+2. Generate the project from the archetype
+
+After installing Maven 2, open a terminal inside the directory you
+want your project to be created and execute the command below:
+
+ mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes
+ -DarchetypeArtifactId=richfaces-archetype-simpleapp
+ -DarchetypeVersion=<version>
+ -DgroupId=<yourGroupId>
+ -DartifactId=<yourArtifactId>
+ -Dversion=1.0-SNAPSHOT
+
+After executing the command, Maven will generate your project structure.
+Make sure you replace the parameters values enclosed by < > according
+to your needs.
+
+
+
+MORE INFORMATION AND RESOURCES
+------------------------------
+
+For more information on RichFaces 4 features, how to migrate from
+previous versions, and answers to the most frequently asked questions (FAQ),
+please visit RichFaces website at:
+
+http://www.jboss.org/richfaces.
+
+Or the Wiki at:
+
+ - http://community.jboss.org/wiki/richfaceswikihomepage
+
+To report or check the status of issues related to RichFaces use the
+project's Jira at:
+
+ - https://issues.jboss.org/browse/RF
+
+Community support and help can be obtained from the RichFaces forums at:
+
+ - http://community.jboss.org/en/richfaces?view=discussions
+
+
+###
Modified: trunk/archetypes/richfaces-archetype-simpleapp/src/main/resources/archetype-resources/readme.txt
===================================================================
--- trunk/archetypes/richfaces-archetype-simpleapp/src/main/resources/archetype-resources/readme.txt 2011-03-09 13:51:52 UTC (rev 22103)
+++ trunk/archetypes/richfaces-archetype-simpleapp/src/main/resources/archetype-resources/readme.txt 2011-03-09 13:56:43 UTC (rev 22104)
@@ -1,9 +1,85 @@
-Project generated with richfaces-archetype-simpleapp
+========================================================================
-To build this project for Tomcat 6 run
+ RichFaces - Ajax enabled JSF 2.0 component library
- mvn clean package
+ RichFaces 4.0.CR1
+ http://richfaces.org
+ March 2011
+ This software is distributed under the terms of the
+ FSF Lesser Gnu Public License (see lgpl.txt)
-If you wan to create a binaries for both Tomcat 6 and JBoss 6 run
+========================================================================
- mvn clean package -P release
\ No newline at end of file
+This project is an application generated with richfaces-achttype-simpleapp.
+This file explains how to build and set up the project using Maven. If you
+find any issue related to RichFaces framework, please report the issue on
+the RichFaces user forum (http://community.jboss.org/en/richfaces) or
+jira (https://issues.jboss.org/browse/RF).
+
+
+SETTING UP THE APPLICATION
+--------------------------
+
+1. Requirements
+
+In order to build the Examples applications you will need:
+ - Maven 2.1.0 or later
+ - Servers: Apache Tomcat 6.0 or any JEE6 application server
+ (e.g. Jboss AS 6)
+ - JDK 1.6
+
+Also optional Additional Software would make it easy for you to work
+with the sources of the application:
+
+ - Eclipse IDE + JBoss Tools (to explore and run the application
+ in IDE). You're obviously free to use any other IDE you wish, but
+ JBoss Tools is recommended.
+
+2. Build/Deploy
+
+ - Deploying on Tomcat
+
+ To build the project for Tomcat you need to navigate to the
+ /examples/richfaces-showcase and run:
+
+ mvn clean package
+
+ When you see the BUILD SUCCESSFUL message you can deploy the
+ application on the server. To deploy it on Tomcat, copy the .war
+ file from 'target' folder to TOMCAT_HOME/webapps folder. Then,
+ launch the startup.sh or startup.bat script from TOMCAT_HOME/bin/
+ directory to start the server.
+
+ - Deploying on JEE6 server (JBoss AS 6)
+
+ To build the project for a JEE6 server you need to navigate to the
+ /examples/richfaces-showcase and run
+
+ mvn clean package -Pjee6
+
+ When you see the BUILD SUCCESSFUL message you can deploy the
+ application on the server. To deploy it on the application server
+ copy the .war file from 'target' folder to the JBOSS_HOME/server/default/deploy
+ folder (or change "default/" to used profile folder). Then, launch
+ the run.sh or run.bat script from JBOSS_HOME/bin/ directory to start
+ the server.
+
+
+ - If you wan to create a binaries for both Tomcat 6 and JBoss 6 run
+
+ mvn clean package -P release
+
+
+After deploying the examples to your server open a browser and type
+http://localhost:8080/projectName to execute the application.
+
+
+MORE INFORMATION AND RESOURCES
+------------------------------
+
+For more information on this project please contact the developer.
+
+For more information on RichFaces 4, please visit RichFaces
+website at:
+
+ - http://www.jboss.org/richfaces.
Modified: trunk/dist/readme-examples.txt
===================================================================
--- trunk/dist/readme-examples.txt 2011-03-09 13:51:52 UTC (rev 22103)
+++ trunk/dist/readme-examples.txt 2011-03-09 13:56:43 UTC (rev 22104)
@@ -1,39 +1,134 @@
-RichFaces 4.0 Examples
-=========================================================
-Version 4.0.0.M3
+========================================================================
-This software is distributed under the terms of the FSF Lesser Gnu Public License (see lgpl.txt).
+ RichFaces - Ajax enabled JSF 2.0 component library
-Getting up and running quickly
--------------------------------
-The core-demo and richfaces-showcase demo applications should be built using Maven 2.1.0
+ RichFaces 4.0.CR1 EXAMPLES
+ http://richfaces.org
+ March 2011
+ This software is distributed under the terms of the
+ FSF Lesser Gnu Public License (see lgpl.txt)
-tomcat6/jetty targeted build:
+========================================================================
-1) execute "mvn clean package" in root application folder(examples/richfaces-showcase or examples/core-demo)
-2) Deploy to tomcat 6.x (built .war file is located in the 'target' folder) or just run using maven on jetty using "mvn clean jetty:run-war"
+RichFaces 4 is a component library for JSF2 and an advanced framework for
+easily integrating AJAX capabilities into business applications.
-JEE6 (GlassFish 3, JBoss AS 6) server targeted build:
-1) execute "mvn clean package -Pjee6" in root application folder(examples/richfaces-showcase or examples/core-demo)
-2) Deploy built application (built .war file is located in the 'target' folder) to application server
+This file explains how to set up the RichFaces examples bundled with the
+distribution package. If you find any issue with the project, please report
+the issue on the RichFaces user forum (http://community.jboss.org/en/richfaces)
+or jira (https://issues.jboss.org/browse/RF).
-Type http://localhost:8080/richfaces-showcase http://localhost:8080/core-demo in your browser address bar after starting server.
-More additional information about build profiles for concrete applications and working with them - inside readme's for application itself.
+SETTING UP THE EXAMPLES
+-----------------------
-NOTE: richfaces-showcase contains readme.txt which shows how to publish the application to Google Application Engine.
+ 1. Requirements
+
+ In order to build the Examples applications you will need:
+ - Maven 2.1.0 or later
+ - Servers: Apache Tomcat 6.0 or any JEE6 application server
+ (e.g. Jboss AS 6)
+ - JDK 1.6
-Using IDE to work with examples
--------------------------------
- *You could use JBoss Tools with m2eclipse plugin and just import the examples as maven-based projects.
-
- *Or if you have not using m2eclipse - execute:
- mvn eclipse:ecllipse
- in root example folder and import to ecplise just as existent project after build complete.
+ Also optional Additional Software would make it easy for you to work
+ with the sources of the application:
+ - Eclipse IDE + JBoss Tools (to explore and run the application
+ in IDE). You're free to use any other IDE also but we haven't
+ tested the application in other environments.
+ 2. Build/Deploy
-Learn more
-----------
-RichFaces Project - http://www.jboss.org/richfaces
-RichFaces 4.0 Wiki - http://www.jboss.org/community/wiki/RichFaces40Planning
\ No newline at end of file
+ - Deploy on Tomcat/Jetty
+
+ To build the project for Tomcat you need to navigate to the
+ /examples/richfaces-showcase or /examples/core-demo directories
+ and run:
+
+ mvn clean package
+
+ When you see the BUILD SUCCESSFUL message you can deploy the
+ application on the server. To deploy it on Tomcat, copy the .war
+ file from 'target' folder to TOMCAT_HOME/webapps folder. Then,
+ launch the startup.sh or startup.bat script from TOMCAT_HOME/bin/
+ directory to start the server.
+
+ - Deploy on JEE6 server (JBoss AS 6)
+
+ To build the project for a JEE6 server you need to navigate to the
+ /examples/richfaces-showcase or /examples/core-demo directory
+ and run:
+
+ mvn clean package -Pjee6
+
+ When you see the BUILD SUCCESSFUL message you can deploy the
+ application on the server. To deoploy it on the application server
+ copy the .war file from 'target' folder to the JBOSS_HOME/server/default/deploy
+ folder (or change "default/" to used profile folder). Then, launch
+ the run.sh or run.bat script from JBOSS_HOME/bin/ directory to start
+ the server.
+
+After deploying the examples to your server open a browser and type
+http://localhost:8080/richfaces-showcase or http://localhost:8080/core-demo
+to view the examples.
+
+Additional information about build profiles for these applications
+and working with them can be found inside the readme files for application
+itself.
+
+NOTE: richfaces-showcase contains readme.txt which shows how to
+publish the application to Google Application Engine.
+
+
+USING AN IDE TO WORK WITH EXAMPLES
+----------------------------------
+
+In order to explore, run and deploy the examples using Eclipse IDE you can use
+one of the following options:
+
+ - You could use JBoss Tools with m2eclipse plugin and just import
+ the examples as maven-based projects.
+ * Open Eclipse and go to File > Import
+ * Expand the project type named Maven and select Import Maven
+ Project
+ * Browse the directory in which you placed the examples, select
+ it and press OK.
+ * Press next on the import wizard to finish importing the
+ examples.
+
+ - Or if you are not using m2eclipse execute use Maven to convert the
+ project to an Eclipse project:
+ * Open a terminal inside the RichFaces examples directory
+ * execute mvn eclipse:ecllipse
+ * Open Eclipse and select File > Import
+ * Select Import as existing project into workspace after build
+ is complete.
+ * Follow the instructions on the import wizard.
+
+You are now able to work with the examples within Eclipse.
+
+
+MORE INFORMATION AND RESOURCES
+------------------------------
+
+For more information on RichFaces 4, please visit RichFaces
+website at:
+
+ - http://www.jboss.org/richfaces.
+
+Or check the Wiki for more information on build instructions for the examples at:
+
+ - http://community.jboss.org/wiki/HowtoworkwithRichFaces4xexamplessources
+
+To report or check the status of issues related to RichFaces Examples
+use the project's Jira at:
+
+ - https://issues.jboss.org/browse/RF
+
+Community support and help can be obtained from the RichFaces forums at:
+
+ - http://community.jboss.org/en/richfaces?view=discussions
+
+
+
+###
Modified: trunk/dist/readme-ui.txt
===================================================================
--- trunk/dist/readme-ui.txt 2011-03-09 13:51:52 UTC (rev 22103)
+++ trunk/dist/readme-ui.txt 2011-03-09 13:56:43 UTC (rev 22104)
@@ -1,47 +1,185 @@
-RichFaces - Ajax enabled JSF 2.0 component library
-=========================================================
-Version 4.0.0.CR1
+========================================================================
-This software is distributed under the terms of the FSF Lesser Gnu Public License (see lgpl.txt).
+ RichFaces - Ajax enabled JSF 2.0 component library
-Getting up and running quickly
--------------------------------
+ RichFaces 4.0.CR1
+ http://www.jboss.org/richfaces
+ March 2011
+ This software is distributed under the terms of the
+ FSF Lesser Gnu Public License (see lgpl.txt)
-1) Put RichFaces libraries and its dependencies in your application libraries folder:
- 1.1) richfaces-core-api.jar
- 1.2) richfaces-core-impl.jar
- 1.3) richfaces-components-api.jar
- 1.4) richfaces-components-ui.jar
- 1.5) sac-1.3, cssparser-0.9.5 - required for components CSS work
- 1.6) google-guava-r08 - core runtime dependency.
- 1.7) annotations.jar from org.richfaces.cdk
- - It's optional and only needs to be added if RichFaces components will be
- created/accessed dynamically in your apps actions/listeners.
- 1.8) validation-api.jar and any implementation like hibernate-validators.jar
- - It's optional and should be added if you using Client or Graph Validation. Should be added only if it's not provided by server(Java EE 6 servers)
+========================================================================
-For optimal performance it's recommended to add one of these caching frameworks to application classpath: EhCache, JBoss Cache, OsCache.
+RichFaces 4 is a component library for JSF2 and an advanced framework for
+easily integrating AJAX capabilities into business applications.
-2) As opposed to the previous 3.x.y versions of RichFaces, no special configuration steps are necessary.
-You don't need to modify web.xml or faces-config.xml (except a4j:push component that requires additional configuration in web.xml;
-please refer to the documentation)
+This file explains how to obtain and install the RichFaces component
+library. If you find any issue with the project, please report the issue
+on the RichFaces user forum (http://community.jboss.org/en/richfaces)
+or jira (https://issues.jboss.org/browse/RF).
-3) Add RichFaces namespaces/taglibs declaration to your VDL/XHTML pages which will use RichFaces components
- Use xmlns:a4j="http://richfaces.org/a4j" namespace for core components
- Use xmlns:rich="http://richfaces.org/rich" namespace for rich components
-4) Add one of the available RichFaces components to your page and try it!
-4.1) Take a look at the RichFaces examples for assistance with usage.
+FEATURES
+--------
-For more information on getting started with, or without maven, take a look at wiki's Getting Started Guide.
- - http://community.jboss.org/wiki/GettingstartedwithRichFaces4x
+ - 100+ AJAX enabled components in two libraries.
+ * a4j page centric AJAX controls.
+ * rich self contained, ready to use components.
+ - Whole set of JSF2 benefits while working with AJAX.
+ - Skinnability mechanism.
+ - Component Development Kit (CDK).
+ - Dynamic resource handling.
+ - Testing facilities for components, actions, listeners and pages
+ - Broad cross-browser support.
+ - Large and active community
-Available Components/Behaviors/Tags/Functions
----------------------------------
+OBTAINING RICHFACES 4.X
+-----------------------
+
+ 1. Obtaining the latest stable distribution package
+
+ You can download the distribution package directly from the RichFaces
+ project website at http://www.jboss.org/richfaces. Source code is also
+ available to download from the same site.
+
+
+SETTING UP YOUR PROJECT
+-----------------------
+
+ 1. Manually
+
+ After downloading the distribution package, extract its content in a
+ folder of your choice.
+
+ Search for the 'artifacts' directory in the extracted files. There you
+ will find 'framework' and 'ui' directories, each of them having the
+ jars needed to use RichFaces inside your project.
+
+ - From 'ui' directory: Copy richfaces-components-api-4.x.jar and
+ richfaces-components-ui-4.x.jar to your application libraries
+ folder.
+
+ - From 'framerok' directory: Copy richfaces-core-api-4.x.jar and
+ richfaces-core-impl-4.x.jar to your application libraries folder.
+
+ In addition to the RichFaces jars, a number of dependencies are
+ required in order to properly configure the framework.
+
+
+ a. sac-1.3, cssparser-0.9.5 - required for components CSS work.
+
+ b. google-guava-r08 - core runtime dependency.
+
+ c. annotations.jar - from org.richfaces.cdk.
+
+ - It's optional and only needs to be added if RichFaces components
+ will be created/accessed dynamically in your apps actions/listeners.
+
+ d. validation-api.jar and any implementation like hibernate-validators.jar
+
+ - It's optional and should be added if you using Client or Graph
+ Validation. Should be added only if it's not provided by a
+ server (Java EE 6 servers).
+
+
+ 2. Using Maven
+
+ To setup your project using Maven, follow the instruction on the wiki at
+ http://community.jboss.org/wiki/HowtoaddRichFaces4xtomavenbasedproject
+
+
+For optimal performance it's recommended to add one of these caching frameworks
+to application classpath: EhCache, JBoss Cache, OsCache.
+
+
+GETTING STARTED
+---------------
+
+1. After setting up the project to use RichFaces component library, no
+ special configuration steps are necessary. You don't need to modify
+ web.xml or faces-config.xml as with previous versions of RichFaces,
+ except for a4j:push component that requires additional configuration
+ in web.xml
+
+2. Add RichFaces namespaces/taglibs declarations to your VDL/XHTML pages
+ which will use RichFaces components.
+
+ - Use xmlns:a4j="http://richfaces.org/a4j" namespace for core components
+ - Use xmlns:rich="http://richfaces.org/rich" namespace for rich components
+
+3. Add on of the available RichFaces components to your page and try it!
+ Take a look at the RichFaces examples for assistance with usage.
+
+4. For more information on getting started with RichFaces, visit the wiki's
+ Getting Started Guide at http://community.jboss.org/wiki/GettingStartedWithRichFaces4x
+
+
+
+MORE INFORMATION AND RESOURCES
+------------------------------
+
+For more information on RichFaces 4 features, how to migrate from
+previous versions, and answers to the most frequently asked questions (FAQ),
+please visit RichFaces website at:
+
+http://www.jboss.org/richfaces.
+
+Or the Wiki at:
+
+ - http://community.jboss.org/wiki/richfaceswikihomepage
+
+To report or check the status of issues related to RichFaces use the
+project's Jira at:
+
+ - https://issues.jboss.org/browse/RF
+
+Community support and help can be obtained from the RichFaces forums at:
+
+ - http://community.jboss.org/en/richfaces?view=discussions
+
+Also you can follow us on Twitter at:
+
+ - http://twitter.com/richfaces
+
+
+FUTURE RELEASES
+---------------
+
+For information on future releases and new features that are planned for next
+version please visit project's wiki at:
+http://www.jboss.org/community/wiki/RichFaces40Planning
+
+
+GET INVOLVED
+------------
+
+RichFaces is an Open Source project built by people across the globe.
+If you want to help create the next version of RichFaces take a look at
+this sites
+
+ - RichFaces source code:
+ http://www.jboss.org/richfaces/sourcecode
+
+ - How to build RichFaces 4.0:
+ http://community.jboss.org/docs/DOC-15747?uniqueTitle=false
+
+ - RichFaces 4.0 Directory structure:
+ http://community.jboss.org/wiki/RichFaces40BuildDirectoryStructure
+
+ - RichFaces developer forums
+ http://community.jboss.org/en/richfaces/dev?view=discussions
+
+ - RichFaces Planning (Jira):
+ https://issues.jboss.org/browse/RFPL
+
+We hope to see your contributions!
+
+
+AVAILABLE COMPONENTS/BEHAVIORS/TAGS/FUNCTIONS
+---------------------------------------------
Core:
----------------------------------
-
+---------------------------------------------
a4j:ajax
a4j:commandLink
a4j:commandButton
@@ -153,7 +291,52 @@
rich:validator
rich:graphValidator
-Learn more
-----------
-RichFaces Project - http://www.jboss.org/richfaces
-RichFaces 4.0 Wiki - http://www.jboss.org/community/wiki/RichFaces40Planning
+
+New in Version 4.0.CR1
+----------------------
+
+ - Finally completed with Taglib's corrections for better IDE support
+ https://issues.jboss.org/browse/RF-9936
+ - Stabilized CSV feature with messages, localization and customization
+ improvements https://issues.jboss.org/browse/RF-10556
+ https://issues.jboss.org/browse/RF-10434 https://issues.jboss.org/browse/RF-10611
+ - Stabilized messages components https://issues.jboss.org/browse/RF-10293
+ https://issues.jboss.org/browse/RF-10370
+ - A lots of stabilization issues resolved for Switchable Panels and
+ Panel Menu
+ - Important push problems solved https://issues.jboss.org/browse/RF-10457
+ https://issues.jboss.org/browse/RF-10473 https://issues.jboss.org/browse/RF-10487
+ and more customization options added https://issues.jboss.org/browse/RF-10454
+ - A lot of stabilization issues for MyFaces support got resolved
+ - Environment updates: JQuery 1.5, MyFaces 2.0.4, Mojara 2.0.4, Atmosphere 0.6.4
+ - RichFaces showcase has been updated with new design (https://issues.jboss.org/browse/RF-9636)
+ and now runs under myFaces stable!
+
+
+New in Version 4.0.M6
+---------------------
+
+ - Client Side Validation feature is ready!! All the standard JSF
+ and most of the JSR-303 validators are available on the client by using
+ just <rich:validator> behavior! We will post detailed blog with examples
+ in a few days.
+ - ObjectValidation feature also was finalized and allows you to validate
+ complete objects and dependent fields by just using JSR-303 validators
+ and the <rich:graphValidator> component. This will also be covered in an
+ up coming blog.
+ - The Ajax framework is improved and now provides ignoreDupResponce core
+ feature! Together with queue it adds great optimization to your Ajax'ififed
+ pages.
+ - All the richfaces components client side API are reviewed and stabilized.
+ API Tables will be documented soon in the component reference.
+ - Further review and corrections in components for improving IDE's support.
+ - richfaces-showcase demo application is updated with new showcases for
+ validation components and new examples for previously released components.
+ - Further improvements in Component Development Kit.
+ - Stabilization works for migrated code. Automation tests with quint, junit.
+ Review of attributes and facets for consistency and stability are done
+ and most issues get fixed.
+
+
+
+###
13 years, 8 months
JBoss Rich Faces SVN: r22103 - branches/4.0.X/ui/iteration/ui/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2011-03-09 08:51:52 -0500 (Wed, 09 Mar 2011)
New Revision: 22103
Modified:
branches/4.0.X/ui/iteration/ui/src/main/java/org/richfaces/component/AbstractDataScroller.java
Log:
https://issues.jboss.org/browse/RF-10662 Taglib: data scroller missing attribute render. Reviewed by Alex Kolonitsky.
Modified: branches/4.0.X/ui/iteration/ui/src/main/java/org/richfaces/component/AbstractDataScroller.java
===================================================================
--- branches/4.0.X/ui/iteration/ui/src/main/java/org/richfaces/component/AbstractDataScroller.java 2011-03-09 13:24:25 UTC (rev 22102)
+++ branches/4.0.X/ui/iteration/ui/src/main/java/org/richfaces/component/AbstractDataScroller.java 2011-03-09 13:51:52 UTC (rev 22103)
@@ -96,6 +96,9 @@
public abstract String getLastPageMode();
@Attribute
+ public abstract Object getRender();
+
+ @Attribute
public abstract int getMaxPages();
public int getMaxPagesOrDefault() {
13 years, 8 months
JBoss Rich Faces SVN: r22102 - in branches/4.0.X/ui/dnd/ui/src/main: resources/META-INF and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2011-03-09 08:24:25 -0500 (Wed, 09 Mar 2011)
New Revision: 22102
Added:
branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/
branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/
branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/dropListener-props.xml
Modified:
branches/4.0.X/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java
Log:
https://issues.jboss.org/browse/RF-10660 Taglib: drop target missing attributes. Reviewed by Alex Kolonitsky.
Modified: branches/4.0.X/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java
===================================================================
--- branches/4.0.X/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java 2011-03-09 13:13:38 UTC (rev 22101)
+++ branches/4.0.X/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java 2011-03-09 13:24:25 UTC (rev 22102)
@@ -42,6 +42,7 @@
family = AbstractDropTarget.COMPONENT_FAMILY,
generate = "org.richfaces.component.UIDropTarget",
renderer = @JsfRenderer(type = "org.richfaces.DropTargetRenderer"),
+ attributes = {"dropListener-props.xml"},
tag = @Tag(name="dropTarget" ,handler="org.richfaces.view.facelets.DropHandler", type = TagType.Facelets)
)
public abstract class AbstractDropTarget extends UIComponentBase {
@@ -64,6 +65,9 @@
public abstract Object getExecute();
@Attribute
+ public abstract Object getRender();
+
+ @Attribute
public abstract Object getAcceptedTypes();
@Attribute
Copied: branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/dropListener-props.xml (from rev 22088, branches/4.0.X/ui/input/ui/src/main/resources/META-INF/cdk/attributes/fileUploadListener-props.xml)
===================================================================
--- branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/dropListener-props.xml (rev 0)
+++ branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/dropListener-props.xml 2011-03-09 13:24:25 UTC (rev 22102)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- JBoss, Home of Professional Open Source Copyright ${year}, Red Hat,
+ Inc. and individual contributors by the @authors tag. See the copyright.txt
+ in the distribution for a full listing of individual contributors. This is
+ free software; you can redistribute it and/or modify it under the terms of
+ the GNU Lesser General Public License as published by the Free Software Foundation;
+ either version 2.1 of the License, or (at your option) any later version.
+ This software is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ details. You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the
+ FSF site: http://www.fsf.org. -->
+<cdk:properties xmlns:cdk="http://jboss.org/schema/richfaces/cdk/extensions" xmlns="http://java.sun.com/xml/ns/javaee">
+ <property>
+ <property-name>dropListener</property-name>
+ <property-class>javax.el.MethodExpression</property-class>
+ </property>
+</cdk:properties>
13 years, 8 months
JBoss Rich Faces SVN: r22101 - branches/4.0.X/ui/misc/ui/src/main/java/org/richfaces/component/behavior.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2011-03-09 08:13:38 -0500 (Wed, 09 Mar 2011)
New Revision: 22101
Modified:
branches/4.0.X/ui/misc/ui/src/main/java/org/richfaces/component/behavior/ComponentControlBehavior.java
Log:
RF-9938 Taglib: component control has no attributes
- reviewed by Anton Belevich
Modified: branches/4.0.X/ui/misc/ui/src/main/java/org/richfaces/component/behavior/ComponentControlBehavior.java
===================================================================
--- branches/4.0.X/ui/misc/ui/src/main/java/org/richfaces/component/behavior/ComponentControlBehavior.java 2011-03-09 12:37:28 UTC (rev 22100)
+++ branches/4.0.X/ui/misc/ui/src/main/java/org/richfaces/component/behavior/ComponentControlBehavior.java 2011-03-09 13:13:38 UTC (rev 22101)
@@ -49,7 +49,7 @@
private List<UIComponent> children;
enum PropertyKeys {
- target, selector, operation, onbeforeoperation
+ target, selector, operation, onbeforeoperation, event
}
public List<UIComponent> getChildren() {
@@ -60,6 +60,15 @@
}
@Attribute
+ public String getEvent() {
+ return (String) getStateHelper().eval(PropertyKeys.event);
+ }
+
+ public void setEvent(String event) {
+ getStateHelper().put(PropertyKeys.event, event);
+ }
+
+ @Attribute
public String getTarget() {
return (String) getStateHelper().eval(PropertyKeys.target);
}
13 years, 8 months
JBoss Rich Faces SVN: r22100 - branches/4.0.X/ui/output/ui/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2011-03-09 07:37:28 -0500 (Wed, 09 Mar 2011)
New Revision: 22100
Modified:
branches/4.0.X/ui/output/ui/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
Log:
https://issues.jboss.org/browse/RF-10695 Menu Item - click event processed two times. Reviewed by Alex Kolonitsky.
Modified: branches/4.0.X/ui/output/ui/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
===================================================================
--- branches/4.0.X/ui/output/ui/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2011-03-09 12:17:53 UTC (rev 22099)
+++ branches/4.0.X/ui/output/ui/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2011-03-09 12:37:28 UTC (rev 22100)
@@ -9,6 +9,7 @@
import org.richfaces.component.AbstractMenuItem;
import org.richfaces.component.Mode;
import org.richfaces.renderkit.AjaxCommandRendererBase;
+import org.richfaces.renderkit.util.HandlersChain;
public class MenuItemRendererBase extends AjaxCommandRendererBase {
@@ -82,7 +83,40 @@
return "";
}
}
-
+
+ /** overridden due to {@link https://issues.jboss.org/browse/RF-10695}
+ *
+ * @param context
+ * @param component
+ * @return
+ */
+
+ @Override
+ public String getOnClick(FacesContext context, UIComponent component) {
+ StringBuffer onClick = new StringBuffer();
+
+ if (!getUtils().isBooleanAttribute(component, "disabled")) {
+ HandlersChain handlersChain = new HandlersChain(context, component);
+
+ handlersChain.addBehaviors("click", "action");
+ handlersChain.addAjaxSubmitFunction();
+
+ String handlerScript = handlersChain.toScript();
+
+ if (handlerScript != null) {
+ onClick.append(handlerScript);
+ }
+
+ if (!"reset".equals(component.getAttributes().get("type"))) {
+ onClick.append(";return false;");
+ }
+ } else {
+ onClick.append("return false;");
+ }
+
+ return onClick.toString();
+ }
+
protected Mode resolveSubmitMode(AbstractMenuItem menuItem) {
if (menuItem.getMode() != null) {
return menuItem.getMode();
@@ -92,7 +126,7 @@
return parent.getMode();
}
return Mode.server;
- }
+ }
protected String getStyleClass(FacesContext facesContext, UIComponent component, String ddMenuStyle, String menuGroupStyle, String menuItemStyle) {
UIComponent ddMenu = getDDMenu(component);
13 years, 8 months