myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r376995 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java
Date Sat, 11 Feb 2006 15:38:58 GMT
Author: matzew
Date: Sat Feb 11 07:38:56 2006
New Revision: 376995

URL: http://svn.apache.org/viewcvs?rev=376995&view=rev
Log:
using the refactored getActionUrl() from HTML_Renderer

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java?rev=376995&r1=376994&r2=376995&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java
Sat Feb 11 07:38:56 2006
@@ -29,7 +29,6 @@
 import org.apache.myfaces.renderkit.html.util.UnicodeEncoder;
 import org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer;
 
-import javax.faces.application.ViewHandler;
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
 import javax.faces.context.ResponseWriter;
@@ -149,9 +148,7 @@
         out.endElement(HTML.DIV_ELEM);
 
         String clientId = component.getClientId(context);
-        String viewId = context.getViewRoot().getViewId();
-        ViewHandler viewHandler = context.getApplication().getViewHandler();
-        String actionURL = viewHandler.getActionURL(context, viewId);
+        String actionURL = getActionUrl(context);
 
         out.startElement(HTML.SCRIPT_ELEM, null);
         out.writeAttribute(HTML.TYPE_ATTR, "text/javascript", null);



Mime
View raw message