Author: lfryc(a)redhat.com
Date: 2010-07-10 14:31:32 -0400 (Sat, 10 Jul 2010)
New Revision: 17826
Modified:
root/tests/metamer/trunk/pom.xml
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JLogBean.java
root/tests/metamer/trunk/src/main/webapp/components/a4jLog/simple.xhtml
Log:
https://jira.jboss.org/browse/RFPL-466
* page for a4j:log fixed, now it is possible to create all types of log messages
* dependencies in pom.xml refactored
Modified: root/tests/metamer/trunk/pom.xml
===================================================================
--- root/tests/metamer/trunk/pom.xml 2010-07-10 18:30:45 UTC (rev 17825)
+++ root/tests/metamer/trunk/pom.xml 2010-07-10 18:31:32 UTC (rev 17826)
@@ -20,6 +20,16 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>2.2</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
<dependency>
<groupId>org.richfaces.ui</groupId>
@@ -40,7 +50,7 @@
<artifactId>tables-ui</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
-
+
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
@@ -70,18 +80,12 @@
<scope>provided</scope>
</dependency>-->
- <dependency>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- <version>2.2</version>
- <scope>provided</scope>
- </dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>2.2</version>
<scope>runtime</scope>
- </dependency>
+ </dependency>
</dependencies>
@@ -137,7 +141,6 @@
</profile>
</profiles>
-
</project>
Modified:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JLogBean.java
===================================================================
---
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JLogBean.java 2010-07-10
18:30:45 UTC (rev 17825)
+++
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JLogBean.java 2010-07-10
18:31:32 UTC (rev 17826)
@@ -95,28 +95,4 @@
public void setName(String name) {
this.name = name;
}
-
- // TODO implement
- public String debugAction() {
- logger.info("debug action");
- return null;
- }
-
- // TODO implement
- public String errorAction() {
- logger.info("error action");
- return null;
- }
-
- // TODO implement
- public String infoAction() {
- logger.info("info action");
- return null;
- }
-
- // TODO implement
- public String warnAction() {
- logger.info("warning action");
- return null;
- }
}
Modified: root/tests/metamer/trunk/src/main/webapp/components/a4jLog/simple.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jLog/simple.xhtml 2010-07-10
18:30:45 UTC (rev 17825)
+++ root/tests/metamer/trunk/src/main/webapp/components/a4jLog/simple.xhtml 2010-07-10
18:31:32 UTC (rev 17826)
@@ -19,12 +19,12 @@
<ui:define name="component">
<h:inputText id="nameInput" value="#{a4jLogBean.name}"
/>
- <a4j:commandButton id="submit" value="Submit"
render="out" execute="@form" />
- <a4j:commandButton id="submitDebug" value="Debug
Message" render="out" execute="@form"
action="#{a4jLogBean.debugAction}"/>
- <a4j:commandButton id="submitInfo" value="Info
Message" render="out" execute="@form"
action="#{a4jLogBean.infoAction}"/>
- <a4j:commandButton id="submitWarn" value="Warning
Message" render="out" execute="@form"
action="#{a4jLogBean.warnAction}"/>
- <a4j:commandButton id="submitError" value="Error
Message" render="out" execute="@form"
action="#{a4jLogBean.errorAction}"/>
-
+ <a4j:commandButton id="submitButton" value="Submit"
render="out" execute="@form" />
+ <input type="button" id="debugButton"
value="Debug Message"
onclick="RichFaces.log.debug('***DEBUG***')" />
+ <input type="button" id="infoButton" value="Info
Message" onclick="RichFaces.log.info('***INFO***')"/>
+ <input type="button" id="warnButton"
value="Warning Message"
onclick="RichFaces.log.warn('***WARN***')"/>
+ <input type="button" id="errorButton"
value="Error Message"
onclick="RichFaces.log.error('***ERROR***')"/>
+
<br/>
<a4j:outputPanel id="out">