[CONF] Confluence Changes in the last 24 hours

2008-11-19 Thread confluence
-
This is a daily summary of all recent changes in Confluence.

-
Updated Spaces:
-

Apache Directory Server v1.5 (DIRxSRVx11) 
http://cwiki.apache.org/confluence/display/DIRxSRVx11
|
|-Pages Added or Edited in This Space
 |-- NTP Protocol Configuration was last edited by elecharny (08:20 AM).
 |   
http://cwiki.apache.org/confluence/display/DIRxSRVx11/NTP+Protocol+Configuration
 |-- Navigation was last edited by felixk (01:39 AM).
 |   http://cwiki.apache.org/confluence/display/DIRxSRVx11/Navigation

Apache Qpid (qpid) http://cwiki.apache.org/confluence/display/qpid
|
|-Pages Added or Edited in This Space
 |-- Java XML ACLs was last edited by ritchiem (09:53 AM).
 |   http://cwiki.apache.org/confluence/display/qpid/Java+XML+ACLs
 |-- ACL was last edited by ritchiem (08:45 AM).
 |   http://cwiki.apache.org/confluence/display/qpid/ACL
 |-- Documentation was last edited by ritchiem (08:36 AM).
 |   http://cwiki.apache.org/confluence/display/qpid/Documentation
 |-- Qpid Design - Access Control Lists was last edited by ritchiem (08:32 AM).
 |   
http://cwiki.apache.org/confluence/display/qpid/Qpid+Design+-+Access+Control+Lists
 |-- Qpid ACLs was created by ritchiem (08:29 AM).
 |   http://cwiki.apache.org/confluence/display/qpid/Qpid+ACLs

Apache ActiveMQ (ACTIVEMQ) http://cwiki.apache.org/confluence/display/ACTIVEMQ
|
|-Pages Added or Edited in This Space
 |-- Stomp was last edited by dejanb (05:44 AM).
 |   http://cwiki.apache.org/confluence/display/ACTIVEMQ/Stomp

Apache ActiveMQ CPP (AMQCPP) http://cwiki.apache.org/confluence/display/AMQCPP
|
|-Pages Added or Edited in This Space
 |-- ActiveMQ-CPP 2.2.2 Release was created by tabish121 (10:55 AM).
 |   
http://cwiki.apache.org/confluence/display/AMQCPP/ActiveMQ-CPP+2.2.2+Release
 |-- Download was last edited by tabish121 (02:18 PM).
 |   http://cwiki.apache.org/confluence/display/AMQCPP/Download
 |-- Configuring was last edited by tabish121 (08:20 AM).
 |   http://cwiki.apache.org/confluence/display/AMQCPP/Configuring

Apache Struts 2 Documentation (WW) http://cwiki.apache.org/confluence/display/WW
 |
 |-New Comments in This Space
 |-- http://cwiki.apache.org/confluence/display/WW/Exception+Interceptor (1)

Tuscany Wiki (TUSCANYWIKI) 
http://cwiki.apache.org/confluence/display/TUSCANYWIKI
|
|-Pages Added or Edited in This Space
 |-- Release - Java SCA 1.4 was last edited by ramkumar.rj (10:41 PM).
 |   
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Release+-+Java+SCA+1.4
 |-- Equinox Branch Merge was created by slaws (10:42 AM).
 |   http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Equinox+Branch+Merge
 |-- Home was last edited by slaws (10:38 AM).
 |   http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Home

Apache Tuscany (TUSCANY) http://cwiki.apache.org/confluence/display/TUSCANY
|
|-Pages Added or Edited in This Space
 |-- SCA Java Subproject Menu was last edited by [EMAIL PROTECTED] (05:59 PM).
 |   http://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+Subproject+Menu

Apache Archiva (ARCHIVA) http://cwiki.apache.org/confluence/display/ARCHIVA
 |
 |-New Comments in This Space
 |-- http://cwiki.apache.org/confluence/display/ARCHIVA/The+Design+of+Archiva 
(1)
 |-- http://cwiki.apache.org/confluence/display/ARCHIVA/Archiva+on+JBoss (1)

Apache Directory Studio (DIRxSTUDIO) 
http://cwiki.apache.org/confluence/display/DIRxSTUDIO
|
|-Pages Added or Edited in This Space
 |-- Navigation was last edited by felixk (01:40 AM).
 |   http://cwiki.apache.org/confluence/display/DIRxSTUDIO/Navigation

-
Updated User Profiles:
-

hoodia_gordonii_hg_p57
|- http://cwiki.apache.org/confluence/display/~hoodia_gordonii_hg_p57

-
CONFLUENCE INFORMATION
This message is automatically generated by Confluence

Unsubscribe or edit your notifications preferences
   http://cwiki.apache.org/confluence/users/viewnotifications.action

If you think it was sent incorrectly contact one of the administrators
   http://cwiki.apache.org/confluence/administrators.action

If you want more information on Confluence, or have a bug to report see
   http://www.atlassian.com/software/confluence




svn commit: r719021 - in /struts/struts2/trunk/core/src: main/resources/template/simple/ test/java/org/apache/struts2/views/jsp/ui/ test/resources/org/apache/struts2/views/jsp/ui/

2008-11-19 Thread musachy
Author: musachy
Date: Wed Nov 19 10:47:34 2008
New Revision: 719021

URL: http://svn.apache.org/viewvc?rev=719021&view=rev
Log:
WW-2610 dont set "style" attribute, if there are field errors and cssClass was 
set. Tests added. 

Thanks to Gabriel Belingueres for the patch

Added:

struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/ui/ValidationStylesTest.java

struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-1.txt
   (with props)

struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt

struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt
Modified:
struts/struts2/trunk/core/src/main/resources/template/simple/css.ftl

Modified: struts/struts2/trunk/core/src/main/resources/template/simple/css.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/css.ftl?rev=719021&r1=719020&r2=719021&view=diff
==
--- struts/struts2/trunk/core/src/main/resources/template/simple/css.ftl 
(original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/css.ftl Wed 
Nov 19 10:47:34 2008
@@ -28,7 +28,7 @@
 <#elseif !(parameters.cssClass?exists) && (hasFieldErrors && 
parameters.cssErrorClass?exists)>
  class="${parameters.cssErrorClass?html}"<#rt/>
 
-<#if parameters.cssStyle?exists && !(hasFieldErrors && 
parameters.cssErrorStyle?exists)>
+<#if parameters.cssStyle?exists && !(hasFieldErrors && 
(parameters.cssErrorStyle?exists || parameters.cssErrorClass?exists))>
  style="${parameters.cssStyle?html}"<#rt/>
 <#elseif hasFieldErrors && parameters.cssErrorStyle?exists>
  style="${parameters.cssErrorStyle?html}"<#rt/>

Added: 
struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/ui/ValidationStylesTest.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/ui/ValidationStylesTest.java?rev=719021&view=auto
==
--- 
struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/ui/ValidationStylesTest.java
 (added)
+++ 
struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/ui/ValidationStylesTest.java
 Wed Nov 19 10:47:34 2008
@@ -0,0 +1,85 @@
+/*
+ * $Id: User.java 651946 2008-04-27 13:41:38Z apetrelli $
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.struts2.views.jsp.ui;
+
+import org.apache.struts2.TestAction;
+import org.apache.struts2.views.jsp.AbstractUITagTest;
+
+public class ValidationStylesTest extends AbstractUITagTest {
+private TextFieldTag tag;
+
+public void testNormalStyle() throws Exception {
+tag.setCssStyle("style");
+tag.doStartTag();
+tag.doEndTag();
+
+
verify(ValidationStylesTest.class.getResource("validationstyles-1.txt"));
+}
+
+public void testErrorStyle() throws Exception {
+tag.setCssErrorStyle("errstyle");
+tag.doStartTag();
+tag.doEndTag();
+
+
verify(ValidationStylesTest.class.getResource("validationstyles-2.txt"));
+}
+
+public void testErrorClass() throws Exception {
+tag.setCssErrorClass("errclass");
+tag.doStartTag();
+tag.doEndTag();
+
+
verify(ValidationStylesTest.class.getResource("validationstyles-3.txt"));
+}
+
+public void testStyleAndErrorStyle() throws Exception {
+tag.setCssStyle("style");
+tag.setCssErrorStyle("errstyle");
+tag.doStartTag();
+tag.doEndTag();
+
+
verify(ValidationStylesTest.class.getResource("validationstyles-2.txt"));
+}
+
+ public void testStyleAndErrorClass() throws Exception {
+tag.setCssStyle("style");
+tag.setCssErrorClass("errclass");
+tag.doStartTag();
+tag.doEndTag();
+
+
verify(ValidationStylesTest.class.getResource("validationstyles-3.txt"));
+}
+
+@Override
+protected void setUp() throws Exception {
+super.setUp();
+TestAction testAction = (TestAction) action;
+tag = ne