svn commit: r474700 - /incubator/wicket/branches/wicket-1.x/wicket-extensions/src/main/java/wicket/extensions/rating/RatingPanel_da.properties
Author: frankbille Date: Tue Nov 14 00:47:12 2006 New Revision: 474700 URL: http://svn.apache.org/viewvc?view=revrev=474700 Log: Danish translation of RatingPanel. Added: incubator/wicket/branches/wicket-1.x/wicket-extensions/src/main/java/wicket/extensions/rating/RatingPanel_da.properties (with props) Added: incubator/wicket/branches/wicket-1.x/wicket-extensions/src/main/java/wicket/extensions/rating/RatingPanel_da.properties URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-extensions/src/main/java/wicket/extensions/rating/RatingPanel_da.properties?view=autorev=474700 == --- incubator/wicket/branches/wicket-1.x/wicket-extensions/src/main/java/wicket/extensions/rating/RatingPanel_da.properties (added) +++ incubator/wicket/branches/wicket-1.x/wicket-extensions/src/main/java/wicket/extensions/rating/RatingPanel_da.properties Tue Nov 14 00:47:12 2006 @@ -0,0 +1,16 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the License); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an AS IS BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +rating.complete = Vurderet til {0,number,#.#} ud af {1,number,#} stemmer +rating.simple = Vurderet til {0,number,#.#} Propchange: incubator/wicket/branches/wicket-1.x/wicket-extensions/src/main/java/wicket/extensions/rating/RatingPanel_da.properties -- svn:eol-style = native
svn commit: r474699 - in /incubator/wicket/branches/wicket-1.x: wicket-extensions/src/test/java/wicket/util/ wicket-extensions/src/test/java/wicket/util/license/ wicket/src/main/java/wicket/util/licen
Author: frankbille Date: Tue Nov 14 00:47:06 2006 New Revision: 474699 URL: http://svn.apache.org/viewvc?view=revrev=474699 Log: Backported ApacheLicenseHeaderTestCase. Added LicenseHeaderTest for wicket and wicket-extensions. Added: incubator/wicket/branches/wicket-1.x/wicket-extensions/src/test/java/wicket/util/ incubator/wicket/branches/wicket-1.x/wicket-extensions/src/test/java/wicket/util/license/ incubator/wicket/branches/wicket-1.x/wicket-extensions/src/test/java/wicket/util/license/ApacheLicenceHeaderTest.java incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/AbstractLicenseHeaderHandler.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/ApacheLicenseHeaderTestCase.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/CssLicenseHeaderHandler.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/HtmlLicenseHeaderHandler.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/ILicenseHeaderHandler.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/JavaLicenseHeaderHandler.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/JavaScriptLicenseHeaderHandler.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/PropertiesLicenseHeaderHandler.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/VelocityLicenseHeaderHandler.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/XmlLicenseHeaderHandler.java (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/cssLicense.txt (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/javaLicense.txt (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/javaScriptLicense.txt (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/propertiesLicense.txt (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/velocityLicense.txt (with props) incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/xmlLicense.txt (with props) incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/util/license/ incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/util/license/ApacheLicenceHeaderTest.java (with props) Added: incubator/wicket/branches/wicket-1.x/wicket-extensions/src/test/java/wicket/util/license/ApacheLicenceHeaderTest.java URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-extensions/src/test/java/wicket/util/license/ApacheLicenceHeaderTest.java?view=autorev=474699 == --- incubator/wicket/branches/wicket-1.x/wicket-extensions/src/test/java/wicket/util/license/ApacheLicenceHeaderTest.java (added) +++ incubator/wicket/branches/wicket-1.x/wicket-extensions/src/test/java/wicket/util/license/ApacheLicenceHeaderTest.java Tue Nov 14 00:47:06 2006 @@ -0,0 +1,31 @@ +/* + * $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar 2006) eelco12 $ + * $Revision: 5004 $ + * $Date: 2006-03-17 20:47:08 -0800 (Fri, 17 Mar 2006) $ + * + * == + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package wicket.util.license; + +/** + * Test that the license headers are in place in this project. The tests are run + * from [EMAIL PROTECTED] ApacheLicenseHeaderTestCase}, but you can add project specific + * tests here if needed. + * + * @author Frank Bille Jensen (frankbille) + */ +public class ApacheLicenceHeaderTest extends ApacheLicenseHeaderTestCase +{ + +} Added: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/util/license/AbstractLicenseHeaderHandler.java URL:
[jira] Updated: (WICKET-67) Adding the CreditCardValidator
[ http://issues.apache.org/jira/browse/WICKET-67?page=all ] Jean-Baptiste Quenot updated WICKET-67: --- Attachment: 20060719-wicket-CreditCardValidator Adding the CreditCardValidator -- Key: WICKET-67 URL: http://issues.apache.org/jira/browse/WICKET-67 Project: Wicket Issue Type: New Feature Components: wicket Reporter: Jean-Baptiste Quenot Attachments: 20060719-wicket-CreditCardValidator The attached patch adds a new Form Validator to validate a credit card number. The validation code comes from Apache Cocoon. Note: I provide translations in English and French only. Thanks in advance! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (WICKET-66) Fix URL prefix for servlet mapping /* and non-root context
Fix URL prefix for servlet mapping /* and non-root context -- Key: WICKET-66 URL: http://issues.apache.org/jira/browse/WICKET-66 Project: Wicket Issue Type: Bug Components: wicket Reporter: Jean-Baptiste Quenot See http://www.nabble.com/Wicket-1.2-servlet-mapping-tf2244115.html#a6224167 for an in-depth explanation of the problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (WICKET-65) Handle String array in PageParameters
Handle String array in PageParameters - Key: WICKET-65 URL: http://issues.apache.org/jira/browse/WICKET-65 Project: Wicket Issue Type: Bug Components: wicket Reporter: Jean-Baptiste Quenot Attachments: 20061114-wicket-WebRequestCodingStrategy-StringArray When building PageParameters, it is possible to repeat the same parameter name to build a string array, this is documented here: http://wicket.sourceforge.net/apidocs/wicket/util/value/ValueMap.html#add(java.lang.String,%20java.lang.String) However when issuing setResponsePage(MyPage.class, params) the newly constructed URL does not honour the string array parameter, only the first value is used. Example: PageParameters params = new PageParameters(); params.add(a, 1); params.add(a, 2); This builds a parameter that is a String[] with name a and values: [1, 2]. But the URL shown in the browser is: http://server/app?a=1 instead of http://server/app?a=1a=2 Note that in the target page I'm using params.getStringArray(a) to get the string array. Please find attached a patch against branch wicket-1.x that adresses the URL encoding issue. The patch also refactors the URL encoding logic to have a more readable and compact code. Thanks in advance! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[CONF] Apache Wicket: Servlet container authentication (page created)
Page Created : WICKET : Servlet container authentication Servlet container authentication has been created by syl (Nov 14, 2006). Content: aaa Powered by Atlassian Confluence (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request Unsubscribe or edit your notifications preferences
svn commit: r474818 - in /incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket: Session.java markup/html/WebPage.java
Author: jcompagner Date: Tue Nov 14 07:23:21 2006 New Revision: 474818 URL: http://svn.apache.org/viewvc?view=revrev=474818 Log: session pagemap access meta should be cleared for a pagemap that gets removed Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/WebPage.java Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java?view=diffrev=474818r1=474817r2=474818 == --- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java (original) +++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java Tue Nov 14 07:23:21 2006 @@ -21,11 +21,13 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; +import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Locale; import java.util.Map; +import java.util.Set; import java.util.Map.Entry; import org.apache.commons.logging.Log; @@ -122,8 +124,35 @@ */ public abstract class Session implements Serializable { + private static final long serialVersionUID = 1L; + /** meta data key for missing body tags logging. */ + public static final MetaDataKey PAGEMAP_ACCESS_MDK = new MetaDataKey( + PageMapAccessMetaData.class) + { + private static final long serialVersionUID = 1L; + }; + + /** +* meta data for recording map map access. +*/ + public static final class PageMapAccessMetaData implements Serializable + { + private static final long serialVersionUID = 1L; + + Set pageMapNames = new HashSet(2); + + /** +* @param pagemap the pagemap to add as used. +* @return the boolean if it was added (didn't already contain the pagemap) +*/ + public boolean add(PageMap pagemap) + { + return pageMapNames.add(pagemap.getName()); + } + } + /** Name of session attribute under which this session is stored */ public static final String SESSION_ATTRIBUTE_NAME = session; @@ -688,6 +717,8 @@ */ public final void removePageMap(final PageMap pageMap) { + PageMapAccessMetaData pagemapMetaData = (PageMapAccessMetaData)getMetaData(PAGEMAP_ACCESS_MDK); + if(pagemapMetaData != null) pagemapMetaData.pageMapNames.remove(pageMap.getName()); usedPageMaps.remove(pageMap); removeAttribute(attributeForPageMapName(pageMap.getName())); dirty(); Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/WebPage.java URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/WebPage.java?view=diffrev=474818r1=474817r2=474818 == --- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/WebPage.java (original) +++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/WebPage.java Tue Nov 14 07:23:21 2006 @@ -17,16 +17,11 @@ */ package wicket.markup.html; -import java.io.Serializable; -import java.util.HashSet; -import java.util.Set; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import wicket.Component; import wicket.IRequestTarget; -import wicket.MetaDataKey; import wicket.Page; import wicket.PageMap; import wicket.PageParameters; @@ -81,23 +76,6 @@ /** log. */ private static final Log log = LogFactory.getLog(WebPage.class); - /** meta data key for missing body tags logging. */ - private static final MetaDataKey PAGEMAP_ACCESS_MDK = new MetaDataKey( - PageMapAccessMetaData.class) - { - private static final long serialVersionUID = 1L; - }; - - /** -* meta data for recording map map access. -*/ - private static final class PageMapAccessMetaData implements Serializable - { - private static final long serialVersionUID = 1L; - - Set pageMapNames = new HashSet(1); - } - /** The resource references used for new window/tab support */ private static ResourceReference cookiesResource = new ResourceReference(WebPage.class, cookies.js); @@ -375,37 +353,15 @@ Session session = getSession(); - PageMapAccessMetaData meta =
[jira] Updated: (WICKET-56) RadioChoice produces invalid XHTML
[ http://issues.apache.org/jira/browse/WICKET-56?page=all ] Igor Vaynberg updated WICKET-56: Comment: was deleted RadioChoice produces invalid XHTML -- Key: WICKET-56 URL: http://issues.apache.org/jira/browse/WICKET-56 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 1.2.3 Reporter: Gili If a RadioChoice component is bound to a div tag then Wicket adds a name attribute, but the XHTML validator complains that NAME may not be defined for a div. It looks as if only the actual input tags are supposed to contain name, not the parent tag. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (WICKET-56) RadioChoice produces invalid XHTML
[ http://issues.apache.org/jira/browse/WICKET-56?page=comments#action_12449918 ] Igor Vaynberg commented on WICKET-56: - try calling setRenderBodyOnly(true) on the component. if that works and the component still works i will roll it into the core. RadioChoice produces invalid XHTML -- Key: WICKET-56 URL: http://issues.apache.org/jira/browse/WICKET-56 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 1.2.3 Reporter: Gili If a RadioChoice component is bound to a div tag then Wicket adds a name attribute, but the XHTML validator complains that NAME may not be defined for a div. It looks as if only the actual input tags are supposed to contain name, not the parent tag. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
svn commit: r475139 - in /incubator/wicket/trunk/wicket/src/main/java/wicket: behavior/AbstractBehavior.java markup/html/IHeaderResponse.java markup/html/WebPage.java
Author: ivaynberg Date: Tue Nov 14 23:13:30 2006 New Revision: 475139 URL: http://svn.apache.org/viewvc?view=revrev=475139 Log: tweaks Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/behavior/AbstractBehavior.java incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/IHeaderResponse.java incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/WebPage.java Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/behavior/AbstractBehavior.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/behavior/AbstractBehavior.java?view=diffrev=475139r1=475138r2=475139 == --- incubator/wicket/trunk/wicket/src/main/java/wicket/behavior/AbstractBehavior.java (original) +++ incubator/wicket/trunk/wicket/src/main/java/wicket/behavior/AbstractBehavior.java Tue Nov 14 23:13:30 2006 @@ -65,8 +65,14 @@ */ public final void rendered(final Component component) { - onRendered(component); - cleanup(); + try + { + onRendered(component); + } + finally + { + cleanup(); + } } /** @@ -85,8 +91,14 @@ */ public void exception(Component component, RuntimeException exception) { - onException(component, exception); - cleanup(); + try + { + onException(component, exception); + } + finally + { + cleanup(); + } } /** Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/IHeaderResponse.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/IHeaderResponse.java?view=diffrev=475139r1=475138r2=475139 == --- incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/IHeaderResponse.java (original) +++ incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/IHeaderResponse.java Tue Nov 14 23:13:30 2006 @@ -14,108 +14,111 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package wicket.markup.html; - -import java.io.Serializable; - -import wicket.ResourceReference; -import wicket.Response; - -/** - * Interface that is used to render header elements (usually javascript and CSS - * references). - * - * Implementation of this interface is responsible for filtering duplicate - * contributions (so that for example the same javascript is not loaded twice) - * during the same request. - * - * @author Matej Knopp - */ -public interface IHeaderResponse extends Serializable -{ - /** -* Writes a javascript reference, if the specified reference hasn't been -* rendered yet. -* -* @param reference -*resource reference pointing to the javascript resource -*/ - public void renderJavascriptReference(ResourceReference reference); - - /** -* Renders javascript code to the response, if the javascript has not -* already been rendered. -* -* @param javascript -*javacript content to be rendered. -* -* @param id -*unique id for the javascript element. This can be null, -*however in that case the ajax header contribution can't detect -*duplicate script fragments. -*/ - public void renderJavascript(CharSequence javascript, String id); - - /** -* Writes a CSS reference, if the specified reference hasn't been rendered -* yet. -* -* @param reference -*resource reference pointing to the CSS resource -*/ - public void renderCSSReference(ResourceReference reference); - - /** -* Renders an arbitrary string to the header. The string is only rendered if -* the same string hasn't been rendered before. -* p -* Note: This method is kind of dangerous as users are able to write to the -* output whatever they like. -* -* @param string -*string to be rendered to head -*/ - public void renderString(CharSequence string); - - /** -* Marks the given object as rendered. The object can be anything (string, -* resource reference, etc...). The purpose of this function is to allow -* user to manually keep track of rendered items. This can be useful for -* items that are expensive to generate (like interpolated text). -* -* @param object -*object to be
[jira] Assigned: (WICKET-41) Problem in generation of the html code of the page
[ http://issues.apache.org/jira/browse/WICKET-41?page=all ] Igor Vaynberg reassigned WICKET-41: --- Assignee: Matej Knopp looks like HeaderResponse is not filtering duplicates. also need to make sure methods like (CharSequeunce script, String id) filter exclusively on id and discregard value of script. right now looks like you are sticking both into an array so both are used for comparison. so [foo,id] and [bar,id] will result in both foo and bar rendering which is wrong. Problem in generation of the html code of the page -- Key: WICKET-41 URL: http://issues.apache.org/jira/browse/WICKET-41 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 2.0 Reporter: Alberto Bueno Assigned To: Matej Knopp When we create a page, the page generates this html code: script type=text/javascript !--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/quickstart/app?wicket:interface=:1::INewBrowserWindowListener; } /*--]]*//script Now, we add a button in the page (a very simple page): public class Index extends QuickStartPage { public Index(final PageParameters parameters) { Form form = new Form(this, form); new Button(form, button){ @Override public void onSubmit() { // TODO Auto-generated method stub String p = ; } }; } } And when we click the button, in the generation of the page we have the code duplicated: script type=text/javascript !--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/quickstart/app?wicket:interface=:1::INewBrowserWindowListener; } /*--]]*//script script type=text/javascript !--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/quickstart/app?wicket:interface=:1::INewBrowserWindowListener; } /*--]]*//script And if we continue clicking the button, the page continues duplicating the code... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (WICKET-71) Extra clarification on changing rendering of ListView
Extra clarification on changing rendering of ListView - Key: WICKET-71 URL: http://issues.apache.org/jira/browse/WICKET-71 Project: Wicket Issue Type: Improvement Components: wicket Affects Versions: 1.2.3 Reporter: Erik van Oosten Please add the following to the class comment of wicket.ListItem. * * p * NOTE: when you want to change the default generated markup it is important to * realise that the ListView instances does not correspond to any markup however, * the generated ListItems do. br / * This means that methods like [EMAIL PROTECTED] #setRenderBodyOnly(boolean)} and * [EMAIL PROTECTED] #add(wicket.behavior.IBehavior)} should be invoked on the ListItem that * given in the [EMAIL PROTECTED] #populateItem(ListItem)} method. * /p -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
svn commit: r475142 - /incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/list/ListView.java
Author: ivaynberg Date: Tue Nov 14 23:30:32 2006 New Revision: 475142 URL: http://svn.apache.org/viewvc?view=revrev=475142 Log: WICKET-71: javadoc patch Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/list/ListView.java Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/list/ListView.java URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/list/ListView.java?view=diffrev=475142r1=475141r2=475142 == --- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/list/ListView.java (original) +++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/list/ListView.java Tue Nov 14 23:30:32 2006 @@ -38,10 +38,10 @@ * Example: * * pre - * lt;tbodygt; - * lt;tr wicket:id=quot;rowsquot; class=quot;evenquot;gt; - * lt;tdgt;lt;span wicket:id=quot;idquot;gt;Test IDlt;/spangt;lt;/tdgt; - * ... + * lt;tbodygt; + *lt;tr wicket:id=quot;rowsquot; class=quot;evenquot;gt; + *lt;tdgt;lt;span wicket:id=quot;idquot;gt;Test IDlt;/spangt;lt;/tdgt; + *... * /pre * * p @@ -62,7 +62,19 @@ * /pre * * p - * WARNING: though you can nest ListViews within Forms, you HAVE to set the + * strongNOTE:/strong + * + * When you want to change the default generated markup it is important to + * realise that the ListView instance itself does not correspond to any markup, + * however, the generated ListItems do.br/ + * + * This means that methods like [EMAIL PROTECTED] #setRenderBodyOnly(boolean)} and + * [EMAIL PROTECTED] #add(wicket.behavior.IBehavior)} should be invoked on the + * [EMAIL PROTECTED] ListItem} that is given in [EMAIL PROTECTED] #populateItem(ListItem)} method. + * /p + * + * p + * strongWARNING:/strong though you can nest ListViews within Forms, you HAVE to set the * optimizeItemRemoval property to true in order to have validation work * properly. By default, optimizeItemRemoval is false, which has the effect that * ListView replaces all child components by new instances. The idea behind this
svn commit: r475143 - /incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java
Author: ivaynberg Date: Tue Nov 14 23:31:19 2006 New Revision: 475143 URL: http://svn.apache.org/viewvc?view=revrev=475143 Log: WICKET-71: javadoc patch Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java?view=diffrev=475143r1=475142r2=475143 == --- incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java (original) +++ incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java Tue Nov 14 23:31:19 2006 @@ -36,10 +36,10 @@ * Example: * * pre - * lt;tbodygt; - * lt;tr wicket:id=quot;rowsquot; class=quot;evenquot;gt; - * lt;tdgt;lt;span wicket:id=quot;idquot;gt;Test IDlt;/spangt;lt;/tdgt; - * ... + * lt;tbodygt; + *lt;tr wicket:id=quot;rowsquot; class=quot;evenquot;gt; + *lt;tdgt;lt;span wicket:id=quot;idquot;gt;Test IDlt;/spangt;lt;/tdgt; + * ... * /pre * * p @@ -60,6 +60,18 @@ * /pre * * p + * strongNOTE:/strong + * + * When you want to change the default generated markup it is important to + * realise that the ListView instance itself does not correspond to any markup, + * however, the generated ListItems do.br/ + * + * This means that methods like [EMAIL PROTECTED] #setRenderBodyOnly(boolean)} and + * [EMAIL PROTECTED] #add(wicket.behavior.IBehavior)} should be invoked on the + * [EMAIL PROTECTED] ListItem} that is given in [EMAIL PROTECTED] #populateItem(ListItem)} method. + * /p + * + * p * WARNING: though you can nest ListViews within Forms, you HAVE to set the * setReuseItems property to true in order to have validation work properly. By * default, reuseItems is false, which has the effect that ListView replaces all @@ -613,7 +625,7 @@ renderItem(item); } } - + markupStream.skipComponent(); }
[jira] Closed: (WICKET-71) Extra clarification on changing rendering of ListView
[ http://issues.apache.org/jira/browse/WICKET-71?page=all ] Igor Vaynberg closed WICKET-71. --- Fix Version/s: 1.3 2.0 Resolution: Fixed Assignee: Igor Vaynberg Extra clarification on changing rendering of ListView - Key: WICKET-71 URL: http://issues.apache.org/jira/browse/WICKET-71 Project: Wicket Issue Type: Improvement Components: wicket Affects Versions: 1.2.3 Reporter: Erik van Oosten Assigned To: Igor Vaynberg Fix For: 1.3, 2.0 Please add the following to the class comment of wicket.ListItem. * * p * NOTE: when you want to change the default generated markup it is important to * realise that the ListView instances does not correspond to any markup however, * the generated ListItems do. br / * This means that methods like [EMAIL PROTECTED] #setRenderBodyOnly(boolean)} and * [EMAIL PROTECTED] #add(wicket.behavior.IBehavior)} should be invoked on the ListItem that * given in the [EMAIL PROTECTED] #populateItem(ListItem)} method. * /p -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
svn commit: r475147 - in /incubator/wicket/branches/wicket-1.2.x/wicket: src/main/java/wicket/markup/html/form/ src/main/java/wicket/util/tester/ src/test/java/wicket/markup/html/form/ ws/ ws/wicket-1
Author: ivaynberg Date: Tue Nov 14 23:57:36 2006 New Revision: 475147 URL: http://svn.apache.org/viewvc?view=revrev=475147 Log: backport WICKET-64 Added: incubator/wicket/branches/wicket-1.2.x/wicket/ws/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/markup/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/markup/html/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/markup/html/form/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/markup/html/form/Check.java incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/markup/html/form/CheckGroup.java incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/markup/html/form/Radio.java incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/markup/html/form/RadioGroup.java incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/util/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/util/tester/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/main/java/wicket/util/tester/FormTester.java incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/ incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/CheckGroupDisabledTestPage_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/CheckGroupTest.java incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/CheckGroupTestPage1_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/CheckGroupTestPage2_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/CheckGroupTestPage3_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/CheckGroupTestPage4_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/RadioGroupDisabledTestPage_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/RadioGroupTest.java incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/RadioGroupTestPage1_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/ws/wicket-1.2.x/src/test/java/wicket/markup/html/form/RadioGroupTestPage3_expected.html Modified: incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/markup/html/form/Check.java incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/markup/html/form/CheckGroup.java incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/markup/html/form/Radio.java incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/markup/html/form/RadioGroup.java incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/util/tester/FormTester.java incubator/wicket/branches/wicket-1.2.x/wicket/src/test/java/wicket/markup/html/form/CheckGroupDisabledTestPage_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/src/test/java/wicket/markup/html/form/CheckGroupTest.java incubator/wicket/branches/wicket-1.2.x/wicket/src/test/java/wicket/markup/html/form/CheckGroupTestPage1_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/src/test/java/wicket/markup/html/form/CheckGroupTestPage2_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/src/test/java/wicket/markup/html/form/CheckGroupTestPage3_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/src/test/java/wicket/markup/html/form/CheckGroupTestPage4_expected.html incubator/wicket/branches/wicket-1.2.x/wicket/src/test/java/wicket/markup/html/form/RadioGroupDisabledTestPage_expected.html