From richfaces-svn-commits at lists.jboss.org Fri Aug 21 14:45:20 2009
Content-Type: multipart/mixed; boundary="===============7549617672211654042=="
MIME-Version: 1.0
From: richfaces-svn-commits at lists.jboss.org
To: richfaces-svn-commits at lists.jboss.org
Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r15268 - in root:
examples/trunk/components/core-demo/src/main/webapp and 5 other directories.
Date: Fri, 21 Aug 2009 14:45:20 -0400
Message-ID: <200908211845.n7LIjKVq022506@svn01.web.mwc.hst.phx2.redhat.com>
--===============7549617672211654042==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: konstantin.mishin
Date: 2009-08-21 14:45:20 -0400 (Fri, 21 Aug 2009)
New Revision: 15268
Added:
root/examples/trunk/components/core-demo/src/main/java/org/richfaces/dem=
o/CommandBean.java
root/examples/trunk/components/core-demo/src/main/webapp/button.xhtml
root/examples/trunk/components/core-demo/src/main/webapp/link.xhtml
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html=
/HtmlCommandButton.java
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html=
/HtmlCommandLink.java
Modified:
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html=
/HtmlAjaxFunction.java
root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/Ajax=
CommandRendererBase.java
root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/Ajax=
FunctionRendererBase.java
root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html=
/AjaxCommandButtonRendererBase.java
root/ui/trunk/components/core/src/main/resources/META-INF/a4j.taglib.xml
root/ui/trunk/components/core/src/main/resources/META-INF/faces-config.x=
ml
root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/=
html/button.template.xml
root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/=
html/function.template.xml
root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/=
html/link.template.xml
Log:
a4j:commandLink and a4j:commandButton initial integration into 4.0
Added: root/examples/trunk/components/core-demo/src/main/java/org/richfaces=
/demo/CommandBean.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/examples/trunk/components/core-demo/src/main/java/org/richfaces/de=
mo/CommandBean.java (rev 0)
+++ root/examples/trunk/components/core-demo/src/main/java/org/richfaces/de=
mo/CommandBean.java 2009-08-21 18:45:20 UTC (rev 15268)
@@ -0,0 +1,27 @@
+package org.richfaces.demo;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+(a)ManagedBean(name=3D"commandBean")
+(a)SessionScoped
+public class CommandBean {
+
+ private String name;
+
+ public void setName(String name) {
+ this.name =3D name;
+ }
+
+ public String getName() {
+ return name;
+ }
+ =
+ public void submit() {
+ name =3D "Hello " + name;
+ =
+ }
+ =
+ public void reset() {
+ name =3D "";
+ }
+}
Added: root/examples/trunk/components/core-demo/src/main/webapp/button.xhtml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/examples/trunk/components/core-demo/src/main/webapp/button.xhtml =
(rev 0)
+++ root/examples/trunk/components/core-demo/src/main/webapp/button.xhtml 2=
009-08-21 18:45:20 UTC (rev 15268)
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Added: root/examples/trunk/components/core-demo/src/main/webapp/link.xhtml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/examples/trunk/components/core-demo/src/main/webapp/link.xhtml =
(rev 0)
+++ root/examples/trunk/components/core-demo/src/main/webapp/link.xhtml 200=
9-08-21 18:45:20 UTC (rev 15268)
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+ =
+
+
+ =
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/compone=
nt/html/HtmlAjaxFunction.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/java/org/richfaces/component/htm=
l/HtmlAjaxFunction.java 2009-08-21 18:25:38 UTC (rev 15267)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/htm=
l/HtmlAjaxFunction.java 2009-08-21 18:45:20 UTC (rev 15268)
@@ -3,12 +3,11 @@
import javax.el.ELException;
import javax.el.ValueExpression;
import javax.faces.FacesException;
+import javax.faces.component.UICommand;
import javax.faces.context.FacesContext;
=
-import org.richfaces.component.UIAjaxFunction;
+public class HtmlAjaxFunction extends UICommand {
=
-public class HtmlAjaxFunction extends UIAjaxFunction {
-
public final static String COMPONENT_FAMILY =3D "javax.faces.Command";
=
public final static String COMPONENT_TYPE =3D "org.richfaces.Function";
Added: root/ui/trunk/components/core/src/main/java/org/richfaces/component/=
html/HtmlCommandButton.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/java/org/richfaces/component/htm=
l/HtmlCommandButton.java (rev 0)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/htm=
l/HtmlCommandButton.java 2009-08-21 18:45:20 UTC (rev 15268)
@@ -0,0 +1,38 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library 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 library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130=
1 USA
+ */
+
+package org.richfaces.component.html;
+
+import javax.faces.component.UICommand;
+
+/**
+ * @author Konstantin Mishin
+ * =
+ */
+
+public class HtmlCommandButton extends UICommand {
+
+ public final static String COMPONENT_TYPE =3D "org.richfaces.CommandButt=
on";
+
+ public HtmlCommandButton(){
+ setRendererType("org.richfaces.CommandButtonRenderer");
+ }
+}
Added: root/ui/trunk/components/core/src/main/java/org/richfaces/component/=
html/HtmlCommandLink.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/java/org/richfaces/component/htm=
l/HtmlCommandLink.java (rev 0)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/htm=
l/HtmlCommandLink.java 2009-08-21 18:45:20 UTC (rev 15268)
@@ -0,0 +1,59 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library 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 library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130=
1 USA
+ */
+
+package org.richfaces.component.html;
+
+import javax.faces.component.UICommand;
+
+/**
+ * @author Konstantin Mishin
+ * =
+ */
+
+
+public class HtmlCommandLink extends UICommand {
+
+ public final static String COMPONENT_TYPE =3D "org.richfaces.CommandLink";
+
+ private static enum PropertyKeys {
+ style, styleClass
+ }
+
+ public HtmlCommandLink() {
+ setRendererType("org.richfaces.CommandLinkRenderer");
+ }
+
+ public String getStyle() {
+ return (String) getStateHelper().eval(PropertyKeys.style, "");
+ }
+
+ public void setStyle(String style) {
+ getStateHelper().put(PropertyKeys.style, style);
+ }
+
+ public String getStyleClass() {
+ return (String) getStateHelper().eval(PropertyKeys.styleClass, "");
+ }
+
+ public void setStyleClass(String styleClass) {
+ getStateHelper().put(PropertyKeys.styleClass, styleClass);
+ }
+}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/renderk=
it/AjaxCommandRendererBase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/Aja=
xCommandRendererBase.java 2009-08-21 18:25:38 UTC (rev 15267)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/Aja=
xCommandRendererBase.java 2009-08-21 18:45:20 UTC (rev 15268)
@@ -21,22 +21,16 @@
=
package org.richfaces.renderkit;
=
-import java.io.IOException;
-import java.util.LinkedHashSet;
import java.util.Map;
-import java.util.Set;
=
+import javax.faces.application.ResourceDependencies;
+import javax.faces.application.ResourceDependency;
import javax.faces.component.UIComponent;
-import javax.faces.component.ValueHolder;
-import javax.faces.component.html.HtmlCommandButton;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
=
-import org.ajax4jsf.component.AjaxComponent;
-import org.ajax4jsf.context.AjaxContext;
-import org.ajax4jsf.event.AjaxEvent;
-import org.ajax4jsf.renderkit.AjaxComponentRendererBase;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
+import org.ajax4jsf.renderkit.RendererBase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
=
@@ -45,84 +39,24 @@
* @version $Revision: 1.1.2.3 $ $Date: 2007/02/12 17:46:53 $
* =
*/
-public abstract class AjaxCommandRendererBase extends AjaxComponentRendere=
rBase {
+(a)ResourceDependencies({
+ @ResourceDependency(library =3D "javax.faces", name =3D "jsf.js"),
+ @ResourceDependency(name =3D "jquery.js"),
+ @ResourceDependency(name =3D "richfaces.js")
+})
+public abstract class AjaxCommandRendererBase extends RendererBase {
=
private static final Log _log =3D LogFactory
.getLog(AjaxCommandRendererBase.class);
=
protected void doDecode(FacesContext facesContext, UIComponent uiComponen=
t) {
-
- // super.decode must not be called, because value is handled here
if (isSubmitted(facesContext, uiComponent)) {
- ActionEvent event;
- event =3D new ActionEvent(uiComponent);
- uiComponent.queueEvent(event);
- uiComponent.queueEvent(new AjaxEvent(uiComponent));
- // Check areas for processing
- if (uiComponent instanceof AjaxComponent) {
- AjaxComponent ajaxComponent =3D (AjaxComponent) uiComponent;
- Set toProcess =3D AjaxRendererUtils.asSet(ajaxComponent
- .getProcess());
- if (null !=3D toProcess) {
- Set componentIdsToProcess =3D new LinkedHashSet();
- for (String componentId : toProcess) {
- UIComponent component =3D getUtils().findComponentFor(uiComponent, c=
omponentId);
- if(null !=3D component){
- componentIdsToProcess.add(component.getClientId(facesContext));
- } else {
- componentIdsToProcess.add(componentId);
- }
- }
- AjaxContext.getCurrentInstance(facesContext).setAjaxAreasToProcess(co=
mponentIdsToProcess);
- }
- }
+ new ActionEvent(uiComponent).queue();
}
}
=
- public String getOnClick(FacesContext context, UIComponent component) {
- StringBuffer onClick;
- if (!getUtils().isBooleanAttribute(component, "disabled")) {
- onClick =3D AjaxRendererUtils.buildOnClick(component, context, true);
- if (!"reset".equals(component.getAttributes().get("type"))) {
- onClick.append(";return false;");
- }
- } else {
- onClick =3D new StringBuffer("return false;");
- }
- return onClick.toString();
- }
-
- public void encodeChildren(FacesContext context, UIComponent component)
- throws IOException {
- renderChildren(context, component);
- }
-
- public Object getValue(UIComponent uiComponent) {
- if (uiComponent instanceof ValueHolder) {
- return ((ValueHolder) uiComponent).getValue();
- }
- return uiComponent.getAttributes().get("value");
- }
-
- public String getType(UIComponent uiComponent) {
- String type;
- if (uiComponent instanceof HtmlCommandButton) {
- type =3D ((HtmlCommandButton) uiComponent).getType();
- } else {
- type =3D (String) uiComponent.getAttributes().get("type");
- }
- if (type =3D=3D null) {
- type =3D "button";
- }
- return type;
- }
-
protected boolean isSubmitted(FacesContext facesContext,
UIComponent uiComponent) {
- // Componet accept only ajax requests.
- if (!AjaxContext.getCurrentInstance(facesContext).isAjaxRequest()) {
- return false;
- }
if (getUtils().isBooleanAttribute(uiComponent, "disabled")) {
return false;
}
@@ -136,5 +70,42 @@
}
return submitted;
}
-
+ =
+ public String getOnClick(FacesContext context, UIComponent component) {
+ StringBuffer onClick =3D new StringBuffer();
+ if (!getUtils().isBooleanAttribute(component, "disabled")) {
+ onClick.append(AjaxRendererUtils.createBehaviorsChain(context, componen=
t, "onclick"));
+ if (!"reset".equals(component.getAttributes().get("type"))) {
+ onClick.append(";return false;");
+ }
+ } else {
+ onClick.append("return false;");
+ }
+ return onClick.toString();
+ }
+//
+// public void encodeChildren(FacesContext context, UIComponent component)
+// throws IOException {
+// renderChildren(context, component);
+// }
+//
+// public Object getValue(UIComponent uiComponent) {
+// if (uiComponent instanceof ValueHolder) {
+// return ((ValueHolder) uiComponent).getValue();
+// }
+// return uiComponent.getAttributes().get("value");
+// }
+//
+// public String getType(UIComponent uiComponent) {
+// String type;
+// if (uiComponent instanceof HtmlCommandButton) {
+// type =3D ((HtmlCommandButton) uiComponent).getType();
+// } else {
+// type =3D (String) uiComponent.getAttributes().get("type");
+// }
+// if (type =3D=3D null) {
+// type =3D "button";
+// }
+// return type;
+// }
}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/renderk=
it/AjaxFunctionRendererBase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/Aja=
xFunctionRendererBase.java 2009-08-21 18:25:38 UTC (rev 15267)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/Aja=
xFunctionRendererBase.java 2009-08-21 18:45:20 UTC (rev 15268)
@@ -25,12 +25,9 @@
import java.util.Map;
=
import javax.faces.FacesException;
-import javax.faces.application.ResourceDependencies;
-import javax.faces.application.ResourceDependency;
import javax.faces.component.UIComponent;
import javax.faces.component.UIParameter;
import javax.faces.context.FacesContext;
-import javax.faces.event.ActionEvent;
=
import org.ajax4jsf.javascript.JSFunction;
import org.ajax4jsf.javascript.JSFunctionDefinition;
@@ -38,30 +35,15 @@
import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.renderkit.AjaxEventOptions;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
-import org.richfaces.component.UIAjaxFunction;
=
/**
* @author shura
* =
*/
-(a)ResourceDependencies({
- @ResourceDependency(library =3D "javax.faces", name =3D "jsf.js"),
- @ResourceDependency(name =3D "jquery.js"),
- @ResourceDependency(name =3D "richfaces.js")
-})
-public class AjaxFunctionRendererBase extends AjaxCommandRendererBase {
+public abstract class AjaxFunctionRendererBase extends AjaxCommandRenderer=
Base {
=
- /*
- * (non-Javadoc)
- * =
- * @see org.ajax4jsf.renderkit.RendererBase#getComponentClass()
- */
- protected Class extends UIComponent> getComponentClass() {
- return UIAjaxFunction.class;
- }
-
- public String getFunction(FacesContext context, UIAjaxFunction component)=
{
- String functionName =3D component.getName();
+ public String getFunction(FacesContext context, UIComponent component) {
+ String functionName =3D (String)component.getAttributes().get("name");
if (functionName =3D=3D null) {
throw new FacesException("Value of 'name' attribute of a4j:jsFunction c=
omponent is null!");
}
@@ -106,14 +88,4 @@
func.appendScript(script);
return script.toString();
}
- =
- @Override
- protected void doDecode(FacesContext facesContext, UIComponent uiComponen=
t) {
- Map requestParameterMap =3D facesContext.getExternalCont=
ext().getRequestParameterMap();
- String clientId =3D uiComponent.getClientId(facesContext);
- =
- if (requestParameterMap.get(clientId) !=3D null) {
- new ActionEvent(uiComponent).queue();
- }
- }
}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/renderk=
it/html/AjaxCommandButtonRendererBase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/htm=
l/AjaxCommandButtonRendererBase.java 2009-08-21 18:25:38 UTC (rev 15267)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/htm=
l/AjaxCommandButtonRendererBase.java 2009-08-21 18:45:20 UTC (rev 15268)
@@ -28,7 +28,6 @@
import javax.faces.context.ResponseWriter;
=
import org.richfaces.renderkit.AjaxCommandRendererBase;
-import org.richfaces.renderkit.CommandRendererBase;
=
/**
* @author Nick Belaevski
Modified: root/ui/trunk/components/core/src/main/resources/META-INF/a4j.tag=
lib.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/resources/META-INF/a4j.taglib.xm=
l 2009-08-21 18:25:38 UTC (rev 15267)
+++ root/ui/trunk/components/core/src/main/resources/META-INF/a4j.taglib.xm=
l 2009-08-21 18:45:20 UTC (rev 15268)
@@ -47,6 +47,20 @@
org.richfaces.AjaxLogRenderer
+
+ commandLink
+
+ org.richfaces.CommandLink
+ org.richfaces.CommandLinkRenderer
+
+
+
+ commandButton
+
+ org.richfaces.CommandButton
+ org.richfaces.CommandButtonRenderer
+
+
=
ajax
Modified: root/ui/trunk/components/core/src/main/resources/META-INF/faces-c=
onfig.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/resources/META-INF/faces-config.=
xml 2009-08-21 18:25:38 UTC (rev 15267)
+++ root/ui/trunk/components/core/src/main/resources/META-INF/faces-config.=
xml 2009-08-21 18:45:20 UTC (rev 15268)
@@ -39,6 +39,16 @@
org.richfaces.component.html.HtmlAjaxLog
=
+
+ org.richfaces.CommandLink
+ org.richfaces.component.html.HtmlCommandLink
+
+
+
+ org.richfaces.CommandButton
+ org.richfaces.component.html.HtmlCommandButton
+
+
HTML_BASIC
@@ -71,5 +81,15 @@
org.richfaces.AjaxLogRenderer
org.richfaces.renderkit.html.AjaxLogRenderer
+
+ javax.faces.Command
+ org.richfaces.CommandLinkRenderer
+ org.richfaces.renderkit.html.CommandLinkRenderer
+
+
+ javax.faces.Command
+ org.richfaces.CommandButtonRenderer
+ org.richfaces.renderkit.html.CommandButtonRenderer
+
\ No newline at end of file
Modified: root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/ren=
derkit/html/button.template.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit=
/html/button.template.xml 2009-08-21 18:25:38 UTC (rev 15267)
+++ root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit=
/html/button.template.xml 2009-08-21 18:45:20 UTC (rev 15268)
@@ -4,15 +4,14 @@
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
class=3D"org.richfaces.renderkit.html.CommandButtonRenderer" =
superclass=3D"org.richfaces.renderkit.html.AjaxCommandButtonRendererBase"
- componentclass=3D"org.richfaces.component.UIAjaxCommandButton">
+ componentclass=3D"javax.faces.component.UIComponent">
=
=
=
Modified: root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/ren=
derkit/html/function.template.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit=
/html/function.template.xml 2009-08-21 18:25:38 UTC (rev 15267)
+++ root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit=
/html/function.template.xml 2009-08-21 18:45:20 UTC (rev 15268)
@@ -3,7 +3,7 @@
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
class=3D"org.richfaces.renderkit.html.AjaxFunctionRenderer" =
superclass=3D"org.richfaces.renderkit.AjaxFunctionRendererBase"
- componentclass=3D"org.richfaces.component.UIAjaxFunction">
+ componentclass=3D"javax.faces.component.UIComponent">
=
=
Modified: root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/ren=
derkit/html/link.template.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit=
/html/link.template.xml 2009-08-21 18:25:38 UTC (rev 15267)
+++ root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit=
/html/link.template.xml 2009-08-21 18:45:20 UTC (rev 15268)
@@ -4,19 +4,18 @@
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
class=3D"org.richfaces.renderkit.html.CommandLinkRenderer" =
superclass=3D"org.richfaces.renderkit.AjaxCommandRendererBase"
- componentclass=3D"org.richfaces.component.UIAjaxCommandLink">
+ componentclass=3D"javax.faces.component.UIComponent">
=
=
- #{this.getValue(component)}
+ #{component.attributes['value']}
--===============7549617672211654042==--