myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r815322 - in /myfaces/extensions/scripting/trunk/examples: ./ myfaces12-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/ myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/
Date Tue, 15 Sep 2009 13:24:32 GMT
Author: werpu
Date: Tue Sep 15 13:24:32 2009
New Revision: 815322

URL: http://svn.apache.org/viewvc?rev=815322&view=rev
Log:
https://issues.apache.org/jira/browse/EXTSCRIPT-1

enabling jsf2 example syncing vital parts

Modified:
    myfaces/extensions/scripting/trunk/examples/myfaces12-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java
    myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java
    myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/JSFUtil.java
    myfaces/extensions/scripting/trunk/examples/pom.xml

Modified: myfaces/extensions/scripting/trunk/examples/myfaces12-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/myfaces12-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java?rev=815322&r1=815321&r2=815322&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/myfaces12-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java
(original)
+++ myfaces/extensions/scripting/trunk/examples/myfaces12-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java
Tue Sep 15 13:24:32 2009
@@ -90,7 +90,7 @@
             * 
             */
             //service.addEntry(entry);
-            executeMethod(service, "addEntry", cast(Object.class, entry));
+            executeMethod(service, "addEntry",  entry);
         }
 
         //we stay on the same page

Modified: myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java?rev=815322&r1=815321&r2=815322&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java
(original)
+++ myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Blog.java
Tue Sep 15 13:24:32 2009
@@ -97,8 +97,7 @@
             * 
             */
             //service.addEntry(entry);
-            getLog().info((String)executeFunction(service, "getTest"));
-            executeMethod(service, "addEntry", cast(Object.class, entry));
+            executeMethod(service, "addEntry",  entry);
         }
 
         //we stay on the same page

Modified: myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/JSFUtil.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/JSFUtil.java?rev=815322&r1=815321&r2=815322&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/JSFUtil.java
(original)
+++ myfaces/extensions/scripting/trunk/examples/myfaces20-example/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/JSFUtil.java
Tue Sep 15 13:24:32 2009
@@ -49,8 +49,8 @@
         Log log = LogFactory.getLog(JSFUtil.class);
         Object facesContext = FacesContext.getCurrentInstance();
 
-        Object elContext = executeFunction(facesContext, "getELContext");
-        Object elResolver = executeFunction(elContext, "getELResolver");
+        Object elContext = executeMethod(facesContext, "getELContext");
+        Object elResolver = executeMethod(elContext, "getELResolver");
 
 
             /*
@@ -64,7 +64,7 @@
             */
             //we use the introspection calls here to achieve our goal that way
             //we can shift the dependency resolution from compile time to runtime
-            return executeFunction(elResolver, "getValue", cast(forName("javax.el.ELContext"),
elContext), nullCast(Object.class), cast(Object.class, beanName));
+            return executeMethod(elResolver, "getValue",  elContext, null,  beanName);
             // return FacesContext.getCurrentInstance().getELContext().getELResolver().getValue(FacesContext.getCurrentInstance().getELContext(),
null, beanName);
 
 

Modified: myfaces/extensions/scripting/trunk/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/pom.xml?rev=815322&r1=815321&r2=815322&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/pom.xml (original)
+++ myfaces/extensions/scripting/trunk/examples/pom.xml Tue Sep 15 13:24:32 2009
@@ -19,6 +19,7 @@
 
    <modules>
      <module>myfaces12-example</module>
+	<module>myfaces20-example</module>
 	 <module>spring-example</module>
    </modules>
 



Mime
View raw message