myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bara...@apache.org
Subject svn commit: r373273 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/util/MyFacesJavascriptRendererUtil.java
Date Sun, 29 Jan 2006 02:01:55 GMT
Author: baranda
Date: Sat Jan 28 18:01:50 2006
New Revision: 373273

URL: http://svn.apache.org/viewcvs?rev=373273&view=rev
Log:
Now the dummyForm system work a bit different. When a component needs to render a dummyForm,
an object with the dummyForm params is instantiated and put in the request map. The AddResource
class, called from the extensions filter, will render the dummyForm before the end of the
body tag getting the information from the request. No more subclasses of HtmlResponseWriter
needed to deal with the dummyForm. Also this should fix an issue where tobago couldn't work,
due to a class cast to HtmlResponseWriterImpl (and tobago uses another implementation of the
HtmlResponseWriter)

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/util/MyFacesJavascriptRendererUtil.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/util/MyFacesJavascriptRendererUtil.java
URL: http://svn.apache.org/viewcvs/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/util/MyFacesJavascriptRendererUtil.java?rev=373273&r1=373272&r2=373273&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/util/MyFacesJavascriptRendererUtil.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/util/MyFacesJavascriptRendererUtil.java
Sat Jan 28 18:01:50 2006
@@ -51,11 +51,9 @@
         HtmlBufferResponseWriterWrapper writerWrapper = HtmlBufferResponseWriterWrapper
                     .getInstance(responseWriter);
 
-        HtmlResponseWriterImpl responseWriterImpl = (HtmlResponseWriterImpl) responseWriter;
-
-        if (responseWriterImpl.isWriteDummyForm())
+        if (DummyFormUtils.isWriteDummyForm(facesContext))
         {
-            DummyFormUtils.writeDummyForm(writerWrapper, responseWriterImpl.getDummyFormParams());
+            DummyFormUtils.writeDummyForm(writerWrapper, DummyFormUtils.getDummyFormParameters(facesContext));
         }
 
         MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(facesContext.getExternalContext());



Mime
View raw message