You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2010/05/12 11:55:27 UTC

svn commit: r943422 - /incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java

Author: scottbw
Date: Wed May 12 09:55:27 2010
New Revision: 943422

URL: http://svn.apache.org/viewvc?rev=943422&view=rev
Log:
Fixed to always prepend "*" to the access list rather than append it, as per the W3C WARP spec.

Modified:
    incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java

Modified: incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java?rev=943422&r1=943421&r2=943422&view=diff
==============================================================================
--- incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java (original)
+++ incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java Wed May 12 09:55:27 2010
@@ -348,7 +348,13 @@ public class WidgetManifestModel impleme
 			if(tag.equals(IW3CXMLConfiguration.ACCESS_ELEMENT)) {											
 				IAccessEntity access = new AccessEntity();
 				access.fromXML(child);
-				if (access.getOrigin()!=null) fAccessList.add(access);
+				if (access.getOrigin()!=null){
+					if (access.getOrigin().equals("*")) {
+						fAccessList.add(0, access);
+					} else {
+						fAccessList.add(access);
+					}
+				}
 			}
 			
 			// CONTENT IS OPTIONAL - can be 0 or 1