From richfaces-svn-commits at lists.jboss.org Wed Aug 19 11:50:11 2009 Content-Type: multipart/mixed; boundary="===============3826760936466904466==" 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: r15223 - in root: ui/trunk/components/core/src/main/java/org/richfaces/component and 5 other directories. Date: Wed, 19 Aug 2009 11:50:11 -0400 Message-ID: <200908191550.n7JFoBZJ007629@svn01.web.mwc.hst.phx2.redhat.com> --===============3826760936466904466== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: konstantin.mishin Date: 2009-08-19 11:50:10 -0400 (Wed, 19 Aug 2009) New Revision: 15223 Added: root/examples/trunk/components/core-demo/src/main/webapp/log.xhtml root/ui/trunk/components/core/src/main/java/org/richfaces/component/html= /HtmlAjaxLog.java root/ui/trunk/components/core/src/main/resources/META-INF/resources/ root/ui/trunk/components/core/src/main/resources/META-INF/resources/rich= faces.css/ root/ui/trunk/components/core/src/main/resources/META-INF/resources/rich= faces.css/4_0_0.css Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/component/UIAj= axLog.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/log.template.xml Log: a4j:log initial integration into 4.0 Added: root/examples/trunk/components/core-demo/src/main/webapp/log.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/log.xhtml = (rev 0) +++ root/examples/trunk/components/core-demo/src/main/webapp/log.xhtml 2009= -08-19 15:50:10 UTC (rev 15223) @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/compone= nt/UIAjaxLog.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/UIA= jaxLog.java 2009-08-19 15:09:57 UTC (rev 15222) +++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/UIA= jaxLog.java 2009-08-19 15:50:10 UTC (rev 15223) @@ -21,12 +21,19 @@ = package org.richfaces.component; = +import javax.faces.application.ResourceDependencies; +import javax.faces.application.ResourceDependency; import javax.faces.component.UIComponentBase; = /** * @author Nick Belaevski * = */ +(a)ResourceDependencies(value =3D { + @ResourceDependency(name =3D "jquery.js"), + @ResourceDependency(name =3D "richfaces.js"), + @ResourceDependency(name =3D "richfaces.css") + }) public class UIAjaxLog extends UIComponentBase { = public static final String COMPONENT_FAMILY =3D "org.richfaces.AjaxLog"; Added: root/ui/trunk/components/core/src/main/java/org/richfaces/component/= html/HtmlAjaxLog.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/HtmlAjaxLog.java (rev 0) +++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/htm= l/HtmlAjaxLog.java 2009-08-19 15:50:10 UTC (rev 15223) @@ -0,0 +1,66 @@ +/** + * 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; + +/** + * @author Konstantin Mishin + * = + */ + +import org.richfaces.component.UIAjaxLog; + +public class HtmlAjaxLog extends UIAjaxLog { + + public final static String COMPONENT_TYPE =3D "org.richfaces.AjaxLog"; + + private static enum PropertyKeys { + style, level, styleClass + } + + public HtmlAjaxLog(){ + setRendererType("org.richfaces.AjaxLogRenderer"); + } + = + public String getStyle() { + return (String) getStateHelper().eval(PropertyKeys.style, ""); + } + + public void setStyle(String style) { + getStateHelper().put(PropertyKeys.style, style); + } + = + public String getLevel() { + return (String) getStateHelper().eval(PropertyKeys.level, ""); + } + + public void setLevel(String level) { + getStateHelper().put(PropertyKeys.level, level); + } + = + 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/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-19 15:09:57 UTC (rev 15222) +++ root/ui/trunk/components/core/src/main/resources/META-INF/a4j.taglib.xm= l 2009-08-19 15:50:10 UTC (rev 15223) @@ -33,5 +33,12 @@ org.richfaces.taglib.html.facelets.MediaOutputHandler + + log + + org.richfaces.AjaxLog + org.richfaces.AjaxLogRenderer + + = 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-19 15:09:57 UTC (rev 15222) +++ root/ui/trunk/components/core/src/main/resources/META-INF/faces-config.= xml 2009-08-19 15:50:10 UTC (rev 15223) @@ -29,6 +29,11 @@ org.richfaces.component.html.HtmlOutputPanel = + + org.richfaces.AjaxLog + org.richfaces.component.html.HtmlAjaxLog + + HTML_BASIC @@ -51,5 +56,10 @@ org.richfaces.OutputPanelRenderer org.richfaces.renderkit.html.AjaxOutputPanelRenderer + + org.richfaces.AjaxLog + org.richfaces.AjaxLogRenderer + org.richfaces.renderkit.html.AjaxLogRenderer + \ No newline at end of file Added: root/ui/trunk/components/core/src/main/resources/META-INF/resources/= richfaces.css/4_0_0.css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/resources/ric= hfaces.css/4_0_0.css (rev 0) +++ root/ui/trunk/components/core/src/main/resources/META-INF/resources/ric= hfaces.css/4_0_0.css 2009-08-19 15:50:10 UTC (rev 15223) @@ -0,0 +1,5 @@ +.rich-log{ + height: 300px; + overflow: auto; + width: 100%; +} Modified: root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/ren= derkit/html/log.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/log.template.xml 2009-08-19 15:09:57 UTC (rev 15222) +++ root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit= /html/log.template.xml 2009-08-19 15:50:10 UTC (rev 15223) @@ -2,11 +2,11 @@ = = - + +
+ +
--===============3826760936466904466==--