Alright, this is starting to drive me a little crazy now. For some reason the mailing list moderate thing marks every single one of your commit logs as needing moderation. I went so far as to subscribe your user to the commits mailing list to get rid of this yesterday. Are you on that list or did you unsubscribe yourself?
On 12/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Author: freemant Date: Tue Dec 12 21:21:17 2006 New Revision: 486498 URL: http://svn.apache.org/viewvc?view=rev&rev=486498 Log: Now we provide an array to the "source" of the Loop component. Modified: tapestry/tapestry5/tapestry-Workbench/src/main/java/org/apache/tapestry/workbench/components/Border.java Modified: tapestry/tapestry5/tapestry-Workbench/src/main/java/org/apache/tapestry/workbench/components/Border.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-Workbench/src/main/java/org/apache/tapestry/workbench/components/Border.java?view=diff&rev=486498&r1=486497&r2=486498 ============================================================================== --- tapestry/tapestry5/tapestry-Workbench/src/main/java/org/apache/tapestry/workbench/components/Border.java (original) +++ tapestry/tapestry5/tapestry-Workbench/src/main/java/org/apache/tapestry/workbench/components/Border.java Tue Dec 12 21:21:17 2006 @@ -1,8 +1,5 @@ package org.apache.tapestry.workbench.components; -import java.util.Arrays; -import java.util.List; - import org.apache.tapestry.Asset; import org.apache.tapestry.ComponentResources; import org.apache.tapestry.annotations.BeginRender; @@ -51,11 +48,12 @@ * Returns the logical names of the pages accessible via the navigation bar, * in appopriate order. */ - public List getPageTabNames() + public String[] getPageTabNames() { - return Arrays.asList("Home", "localization/Localization", "Fields", - "Dates", "Chart", "Palette", "Upload", "Redirect", - "ExceptionTab", "Table", "TreeHome"); + return new String[] + { "Home", "localization/Localization", "Fields", "Dates", "Chart", + "Palette", "Upload", "Redirect", "ExceptionTab", "Table", + "TreeHome" }; } @BeginRender @@ -64,10 +62,11 @@ renderingPageFullName = resources.getPage().getClass().getName(); } - private boolean isCurrentPageActive() + private boolean isCurrentPageActive() { return renderingPageFullName.endsWith(pageName); } + @OnEvent(component = "link") public String onClickPage(String pageName) { @@ -96,7 +95,7 @@ public Asset getMidTabAsset() { - return isCurrentPageActive() ? activeMid: inactiveMid; + return isCurrentPageActive() ? activeMid : inactiveMid; } public Asset getRightTabAsset()
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
