Author: svieujot
Date: Thu May  5 08:57:59 2005
New Revision: 168347

URL: http://svn.apache.org/viewcvs?rev=168347&view=rev
Log:
Small simplification in dataScroller.

Modified:
    
myfaces/trunk/src/components/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java

Modified: 
myfaces/trunk/src/components/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java
URL: 
http://svn.apache.org/viewcvs/myfaces/trunk/src/components/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java?rev=168347&r1=168346&r2=168347&view=diff
==============================================================================
--- 
myfaces/trunk/src/components/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java
 (original)
+++ 
myfaces/trunk/src/components/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java
 Thu May  5 08:57:59 2005
@@ -82,7 +82,7 @@
 
         HtmlDataScroller scroller = (HtmlDataScroller)component;
 
-        UIData uiData = findUIData(scroller, component);
+        UIData uiData = findUIData(scroller);
         if (uiData == null)
         {
             return;
@@ -163,7 +163,7 @@
 
        protected void setVariables(FacesContext facescontext, HtmlDataScroller 
scroller) throws IOException
     {
-        UIData uiData = findUIData(scroller, scroller);
+        UIData uiData = findUIData(scroller);
         if (uiData == null)
         {
             return;
@@ -273,7 +273,7 @@
                
                HtmlDataScroller scroller = (HtmlDataScroller)uiComponent;
 
-        UIData uiData = findUIData(scroller, uiComponent);
+        UIData uiData = findUIData(scroller);
         if (uiData == null)
         {
             return;
@@ -558,18 +558,18 @@
         return pageCount;
     }
 
-    protected UIData findUIData(HtmlDataScroller scroller, UIComponent 
component)
+    protected UIData findUIData(HtmlDataScroller scroller)
     {
         String forStr = scroller.getFor();
         UIComponent forComp;
         if (forStr == null)
         {
             // DataScroller may be a child of uiData
-            forComp = component.getParent();
+            forComp = scroller.getParent();
         }
         else
         {
-            forComp = component.findComponent(scroller.getFor());
+            forComp = scroller.findComponent(scroller.getFor());
             if (forComp == null)
             {
                 log.warn("could not find UIData referenced by attribute [EMAIL 
PROTECTED] = '" + scroller.getFor() + "'");


Reply via email to