You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/09/24 23:38:11 UTC
svn commit: r449493 -
/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java
Author: werpu
Date: Sun Sep 24 14:38:11 2006
New Revision: 449493
URL: http://svn.apache.org/viewvc?view=rev&rev=449493
Log:
revamped the renderer to utilize the new scrollable fisheye class
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java?view=diff&rev=449493&r1=449492&r2=449493
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java Sun Sep 24 14:38:11 2006
@@ -48,9 +48,9 @@
public class HtmlFishEyeNavigationMenuRenderer extends HtmlLinkRenderer {
private static final String ON_CLICK_ATTR = "onClick";
- private static final String DOJO_COMPONENT_TYPE = "FisheyeList";
+ private static final String DOJO_COMPONENT_TYPE = "ScrollableFisheyeList";
- private static final String DOJO_ITEM_TYPE = "FisheyeListItem";
+ private static final String DOJO_ITEM_TYPE = "ScrollableFisheyeListItem";
public static final String ATTACH_EDGE_ATTR = "attachEdge";
@@ -112,8 +112,10 @@
JSFAttr.JAVASCRIPT_LOCATION);
DojoUtils.addMainInclude(context, component, javascriptLocation,
DojoUtils.getDjConfigInstance(context));
- DojoUtils.addRequire(context, component, "dojo.widget.FisheyeList");
-
+ DojoUtils.addRequire(context, component, "dojo.widget.myfaces.ScrollableFisheyeList");
+ DojoUtils.addRequire(context, component, "dojo.widget.html.myfaces.ScrollableFisheyeListItem");
+ DojoUtils.addRequire(context, component, "dojo.widget.Button");
+
writer.startElement(HTML.DIV_ELEM, fisheye);
writer.writeAttribute(HTML.ID_ATTR, component.getClientId(context),
null);
@@ -195,6 +197,7 @@
writer.write(item);
writer.write(");\n");
}
+ writer.write(jsMenuVar+".programmaticDone();\n");
writer.endElement(HTML.SCRIPT_ELEM);
}
}