myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r809924 - in /myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF: ./ groovy/org/apache/myfaces/groovyloader/blog/ groovy/org/apache/myfaces/groovyloader/test/
Date Tue, 01 Sep 2009 09:23:14 GMT
Author: werpu
Date: Tue Sep  1 09:23:13 2009
New Revision: 809924

URL: http://svn.apache.org/viewvc?rev=809924&view=rev
Log:
https://issues.apache.org/jira/browse/EXTSCRIPT-3
removed some debugging infos



Modified:
    myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/Blog.groovy
    myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/JSFUtil.groovy
    myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestBean.groovy
    myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestComponent.groovy
    myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestPhaseListener.groovy
    myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestRenderer.groovy
    myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml

Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/Blog.groovy
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/Blog.groovy?rev=809924&r1=809923&r2=809924&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/Blog.groovy
(original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/Blog.groovy
Tue Sep  1 09:23:13 2009
@@ -25,40 +25,40 @@
 
 
 public class Blog {
-   //bug application and session scoped beans  are not refreshed structurally yet
+    //bug application and session scoped beans  are not refreshed structurally yet
 
-   Log log = LogFactory.getLog(Blog.class) 
+    Log log = LogFactory.getLog(Blog.class)
 
-    String title        = "Hello to the myfaces dynamic blogging"
-    String title1       = "You can alter the code for this small blogging application on
the fly, you even can add new classes on the fly and Grooy will pick it up"
+    String title = "Hello to the myfaces dynamic blogging"
+    String title1 = "You can alter the code for this small blogging application on the fly,
you even can add new classes on the fly and Grooy will pick it up"
 
-    String firstName    = ""
-    String lastName     = ""
-    String topic        = ""
+    String firstName = ""
+    String lastName = ""
+    String topic = ""
 
-    String content        = ""
+    String content = ""
 
     public String addEntry() {
         log.info("adding entry");
 
-        
-        def service =  JSFUtil.resolveVariable("blogService")
 
-        if(service == null) {
+        def service = JSFUtil.resolveVariable("blogService")
+
+        if (service == null) {
             log.error("service not found")
         } else {
             log.info("service found")
-            
+
         }
 
         def entry = new BlogEntry()
         //we now map it in the verbose way, the lean way would be to do direct introspection
attribute mapping
-        
+
         entry.firstName = firstName
         entry.lastName = lastName
         entry.topic = topic
         entry.content = content
-        
+
 
         service.addEntry(entry)
 
@@ -66,7 +66,4 @@
         return null;
     }
 
-    
-
-
 }
\ No newline at end of file

Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/JSFUtil.groovy
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/JSFUtil.groovy?rev=809924&r1=809923&r2=809924&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/JSFUtil.groovy
(original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/JSFUtil.groovy
Tue Sep  1 09:23:13 2009
@@ -28,9 +28,9 @@
 public class JSFUtil {
 
 
-    public static  Object resolveVariable(String beanName) {
+    public static Object resolveVariable(String beanName) {
         Log log = LogFactory.getLog(JSFUtil.class)
-        log.info("ElResolver Instance:"+FacesContext.getCurrentInstance().getELContext().getELResolver().toString())
+        log.info("ElResolver Instance:" + FacesContext.getCurrentInstance().getELContext().getELResolver().toString())
         return FacesContext.getCurrentInstance().getELContext().getELResolver().getValue(FacesContext.getCurrentInstance().getELContext(),
null, beanName)
     }
 

Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestBean.groovy
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestBean.groovy?rev=809924&r1=809923&r2=809924&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestBean.groovy
(original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestBean.groovy
Tue Sep  1 09:23:13 2009
@@ -32,7 +32,6 @@
     //String newAttribute = "This is a new attribute"
     //uncomment this and add a control to the page displaying it
 
-
     public String getHelloworld() {
         return helloworld
     }

Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestComponent.groovy
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestComponent.groovy?rev=809924&r1=809923&r2=809924&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestComponent.groovy
(original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestComponent.groovy
Tue Sep  1 09:23:13 2009
@@ -60,9 +60,9 @@
             return _testattr
 
         ValueBinding vb = getValueBinding("testattr")
-        String v = vb != null ? (String)vb.getValue(getFacesContext()) : null
+        String v = vb != null ? (String) vb.getValue(getFacesContext()) : null
         return v != null ? v : ""
-                                
+
     }
 
 

Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestPhaseListener.groovy
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestPhaseListener.groovy?rev=809924&r1=809923&r2=809924&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestPhaseListener.groovy
(original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestPhaseListener.groovy
Tue Sep  1 09:23:13 2009
@@ -32,7 +32,6 @@
         if (event.getPhaseId() == PhaseId.RENDER_RESPONSE)
             println "restoring a view bbb bbb" + event.getPhaseId()
 
-
     }
 
     public void beforePhase(PhaseEvent event) {

Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestRenderer.groovy
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestRenderer.groovy?rev=809924&r1=809923&r2=809924&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestRenderer.groovy
(original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/test/TestRenderer.groovy
Tue Sep  1 09:23:13 2009
@@ -54,11 +54,11 @@
     }
 
     public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) {
-          print super.toString()
-           super.encodeEnd(facesContext, uiComponent);    //To change body of overridden
methods use File | Settings | File Templates.
+        print super.toString()
+        super.encodeEnd(facesContext, uiComponent);    //To change body of overridden methods
use File | Settings | File Templates.
         facesContext.getResponseWriter().write """\
             encode end here
         """
-        
+
     }
 }
\ No newline at end of file

Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml?rev=809924&r1=809923&r2=809924&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml Tue Sep  1
09:23:13 2009
@@ -45,6 +45,7 @@
         <param-value>org.apache.myfaces.scripting.servlet.StartupServletContextPluginChainLoader</param-value>
     </context-param>
 
+    <!--
     <context-param>
         <description>Additional comma separated loader paths to allow direct editing
on the sources directory instead
             of the deployment dir
@@ -62,6 +63,7 @@
         <param-value>/Users/werpu2/development/workspace/extensions-scripting/examples/src/main/webapp/WEB-INF/java
         </param-value>
     </context-param>
+    -->
 
     <context-param>
         <description>State saving method: "client" or "server" (= default)



Mime
View raw message