tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkuhn...@apache.org
Subject svn commit: r612146 - /tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/palette/Palette.java
Date Tue, 15 Jan 2008 16:13:50 GMT
Author: jkuhnert
Date: Tue Jan 15 08:13:46 2008
New Revision: 612146

URL: http://svn.apache.org/viewvc?rev=612146&view=rev
Log:
Made Palette call Form delegate for pre/post contributions.

Modified:
    tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/palette/Palette.java

Modified: tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/palette/Palette.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/palette/Palette.java?rev=612146&r1=612145&r2=612146&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/palette/Palette.java
(original)
+++ tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/palette/Palette.java
Tue Jan 15 08:13:46 2008
@@ -14,22 +14,7 @@
 
 package org.apache.tapestry.contrib.palette;
 
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.tapestry.BaseComponent;
-import org.apache.tapestry.IAsset;
-import org.apache.tapestry.IForm;
-import org.apache.tapestry.IMarkupWriter;
-import org.apache.tapestry.IRequestCycle;
-import org.apache.tapestry.IScript;
-import org.apache.tapestry.PageRenderSupport;
-import org.apache.tapestry.Tapestry;
-import org.apache.tapestry.TapestryUtils;
+import org.apache.tapestry.*;
 import org.apache.tapestry.components.Block;
 import org.apache.tapestry.form.FormComponentContributorContext;
 import org.apache.tapestry.form.IPropertySelectionModel;
@@ -44,6 +29,8 @@
 import org.apache.tapestry.valid.ValidationConstants;
 import org.apache.tapestry.valid.ValidatorException;
 
+import java.util.*;
+
 /**
  * A component used to make a number of selections from a list. The general look is a pair
of
  * <select> elements. with a pair of buttons between them. The right element
is a list of
@@ -265,11 +252,15 @@
     {
         _symbols = new HashMap(MAP_SIZE);
 
+        getForm().getDelegate().writePrefix(writer, cycle, this, null);
+
         runScript(cycle);
 
         constructColumns();
 
         getValidatableFieldSupport().renderContributions(this, writer, cycle);
+
+        getForm().getDelegate().writeSuffix(writer, cycle, this, null);
     }
 
     protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle cycle)



Mime
View raw message