Issues Closed: week of 2007-07-27

2007-07-27 Thread dblevins

Shale - Friday, July 27, 2007

  0 closed in last 7 days



svn commit: r560350 - in /shale/framework/trunk: shale-tiger/src/main/java/org/apache/shale/tiger/view/faces/ shale-tiger/src/test/java/org/apache/shale/tiger/view/faces/ shale-view/src/main/java/org/

2007-07-27 Thread gvanmatre
Author: gvanmatre
Date: Fri Jul 27 11:48:18 2007
New Revision: 560350

URL: http://svn.apache.org/viewvc?view=revrev=560350
Log:
Shale view library was not working with ajax4jsf.  Request parameters were 
being unnecessarily removed in order to ensure the destroy callback was invoked 
on ViewControllers annotated using the tiger library.  This logic was 
repositioned so that only ViewControllers are removed from the request map 
(SHALE-409).

Modified:

shale/framework/trunk/shale-tiger/src/main/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2.java

shale/framework/trunk/shale-tiger/src/test/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2TestCase.java

shale/framework/trunk/shale-view/src/main/java/org/apache/shale/view/faces/ViewControllerCallbacks.java

shale/framework/trunk/shale-view/src/main/java/org/apache/shale/view/faces/ViewPhaseListener.java

shale/framework/trunk/shale-view/src/test/java/org/apache/shale/view/faces/ViewControllerCallbacksTestCase.java

Modified: 
shale/framework/trunk/shale-tiger/src/main/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2.java
URL: 
http://svn.apache.org/viewvc/shale/framework/trunk/shale-tiger/src/main/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2.java?view=diffrev=560350r1=560349r2=560350
==
--- 
shale/framework/trunk/shale-tiger/src/main/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2.java
 (original)
+++ 
shale/framework/trunk/shale-tiger/src/main/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2.java
 Fri Jul 27 11:48:18 2007
@@ -21,7 +21,10 @@
 import java.lang.reflect.Method;
 import java.util.HashMap;
 import java.util.Map;
+
 import javax.faces.context.FacesContext;
+
+import org.apache.shale.tiger.view.Destroy;
 import org.apache.shale.tiger.view.Preprocess;
 import org.apache.shale.tiger.view.Prerender;
 import org.apache.shale.tiger.view.View;
@@ -116,6 +119,24 @@
 }
 
 
+/**
+ * Checks the codeinstance/code to determine if it is a
+ * shale codeViewController/code, codeAbstractRequestBean/code,
+ * or has the codeDestory/code annotation.
+ *
+ * @param instance Bean instance on which to perform this callback
+ * @return codetrue/code if the instance implements has a 
codedestroy/code callback
+ */
+
+public boolean isViewController(Object instance) {
+
+if (super.isViewController(instance)) {
+return true;
+}
+
+return (method(instance, Destroy.class) != null);
+}
+
 // - Private 
Methods
 
 
@@ -123,7 +144,7 @@
  * pThe set of method annotations for callbacks of interest./p
  */
 private static final Class[] annotations =
-{ Preprocess.class, Prerender.class };
+{ Preprocess.class, Prerender.class, Destroy.class };
 
 
 

Modified: 
shale/framework/trunk/shale-tiger/src/test/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2TestCase.java
URL: 
http://svn.apache.org/viewvc/shale/framework/trunk/shale-tiger/src/test/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2TestCase.java?view=diffrev=560350r1=560349r2=560350
==
--- 
shale/framework/trunk/shale-tiger/src/test/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2TestCase.java
 (original)
+++ 
shale/framework/trunk/shale-tiger/src/test/java/org/apache/shale/tiger/view/faces/ViewControllerCallbacks2TestCase.java
 Fri Jul 27 11:48:18 2007
@@ -90,6 +90,7 @@
 assertEquals(preprocess/prerender/,
  tvc.log());
 
+assertTrue(callbacks.isViewController(tvc));
 }
 
 

Modified: 
shale/framework/trunk/shale-view/src/main/java/org/apache/shale/view/faces/ViewControllerCallbacks.java
URL: 
http://svn.apache.org/viewvc/shale/framework/trunk/shale-view/src/main/java/org/apache/shale/view/faces/ViewControllerCallbacks.java?view=diffrev=560350r1=560349r2=560350
==
--- 
shale/framework/trunk/shale-view/src/main/java/org/apache/shale/view/faces/ViewControllerCallbacks.java
 (original)
+++ 
shale/framework/trunk/shale-view/src/main/java/org/apache/shale/view/faces/ViewControllerCallbacks.java
 Fri Jul 27 11:48:18 2007
@@ -18,6 +18,8 @@
 package org.apache.shale.view.faces;
 
 import javax.faces.context.FacesContext;
+
+import org.apache.shale.view.AbstractRequestBean;
 import org.apache.shale.view.Constants;
 import org.apache.shale.view.ExceptionHandler;
 import org.apache.shale.view.ViewController;
@@ -81,6 +83,19 @@
 
 }
 
+/**
+ * Checks the codeinstance/code to determine if it is a
+ * shale codeViewController/code or codeAbstractRequestBean/code.
+ *
+ * @param instance Bean instance on which to perform this 

svn commit: r560439 - /shale/framework/trunk/shale-clay/src/main/resources/META-INF/clay-config.xml

2007-07-27 Thread gvanmatre
Author: gvanmatre
Date: Fri Jul 27 18:59:18 2007
New Revision: 560439

URL: http://svn.apache.org/viewvc?view=revrev=560439
Log:
Fixed incomplete clay xml config for the outputFormat component.  Reported by 
Ian Priest (SHALE-451).

Modified:
shale/framework/trunk/shale-clay/src/main/resources/META-INF/clay-config.xml

Modified: 
shale/framework/trunk/shale-clay/src/main/resources/META-INF/clay-config.xml
URL: 
http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/main/resources/META-INF/clay-config.xml?view=diffrev=560439r1=560438r2=560439
==
--- 
shale/framework/trunk/shale-clay/src/main/resources/META-INF/clay-config.xml 
(original)
+++ 
shale/framework/trunk/shale-clay/src/main/resources/META-INF/clay-config.xml 
Fri Jul 27 18:59:18 2007
@@ -885,7 +885,10 @@
   component jsfid=h:inputText extends=inputText/
 
   component jsfid=outputFormat componentType=javax.faces.HtmlOutputFormat 
extends=baseOutput
- descriptionRender a readonly text value substituting inline string 
parameters. /description  
+ descriptionRender a readonly text value substituting inline string 
parameters. /description
+ attributes
+set name=escape bindingType=VB/
+ /attributes  
   /component
   component jsfid=h:outputFormat extends=outputFormat/
   




svn commit: r560440 - /shale/framework/branches/SHALE_1_0_X/shale-clay/src/main/resources/META-INF/clay-config.xml

2007-07-27 Thread gvanmatre
Author: gvanmatre
Date: Fri Jul 27 19:01:12 2007
New Revision: 560440

URL: http://svn.apache.org/viewvc?view=revrev=560440
Log:
Fixed incomplete clay xml config for the outputFormat component.  Reported by 
Ian Priest (SHALE-451).

Modified:

shale/framework/branches/SHALE_1_0_X/shale-clay/src/main/resources/META-INF/clay-config.xml

Modified: 
shale/framework/branches/SHALE_1_0_X/shale-clay/src/main/resources/META-INF/clay-config.xml
URL: 
http://svn.apache.org/viewvc/shale/framework/branches/SHALE_1_0_X/shale-clay/src/main/resources/META-INF/clay-config.xml?view=diffrev=560440r1=560439r2=560440
==
--- 
shale/framework/branches/SHALE_1_0_X/shale-clay/src/main/resources/META-INF/clay-config.xml
 (original)
+++ 
shale/framework/branches/SHALE_1_0_X/shale-clay/src/main/resources/META-INF/clay-config.xml
 Fri Jul 27 19:01:12 2007
@@ -885,7 +885,10 @@
   component jsfid=h:inputText extends=inputText/
 
   component jsfid=outputFormat componentType=javax.faces.HtmlOutputFormat 
extends=baseOutput
- descriptionRender a readonly text value substituting inline string 
parameters. /description  
+ descriptionRender a readonly text value substituting inline string 
parameters. /description
+ attributes
+set name=escape bindingType=VB/
+ /attributes  
   /component
   component jsfid=h:outputFormat extends=outputFormat/
   




svn commit: r560474 [1/2] - /shale/framework/branches/SHALE_1_0_X/shale-clay/src/main/resources/META-INF/tomahawk-1_1_3-config.xml

2007-07-27 Thread gvanmatre
Author: gvanmatre
Date: Fri Jul 27 19:41:57 2007
New Revision: 560474

URL: http://svn.apache.org/viewvc?view=revrev=560474
Log:
Applied the tomahawk clay XML config generated by the Tld2ClayCfg tool to the 
framework_1_0_X branch (SHALE-431). 

Modified:

shale/framework/branches/SHALE_1_0_X/shale-clay/src/main/resources/META-INF/tomahawk-1_1_3-config.xml