Return-Path: Delivered-To: apmail-velocity-dev-archive@www.apache.org Received: (qmail 61103 invoked from network); 12 Feb 2009 05:40:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 05:40:21 -0000 Received: (qmail 74007 invoked by uid 500); 12 Feb 2009 05:40:21 -0000 Delivered-To: apmail-velocity-dev-archive@velocity.apache.org Received: (qmail 73992 invoked by uid 500); 12 Feb 2009 05:40:21 -0000 Mailing-List: contact dev-help@velocity.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Velocity Developers List" Delivered-To: mailing list dev@velocity.apache.org Received: (qmail 73981 invoked by uid 500); 12 Feb 2009 05:40:21 -0000 Delivered-To: apmail-jakarta-velocity-dev@jakarta.apache.org Received: (qmail 73978 invoked by uid 99); 12 Feb 2009 05:40:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 21:40:21 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 05:40:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E26E0234C48C for ; Wed, 11 Feb 2009 21:39:59 -0800 (PST) Message-ID: <1618719357.1234417199926.JavaMail.jira@brutus> Date: Wed, 11 Feb 2009 21:39:59 -0800 (PST) From: "Sergiy Kovalchuk (JIRA)" To: velocity-dev@jakarta.apache.org Subject: [jira] Updated: (VELTOOLS-113) new DisplayTool features In-Reply-To: <1659655968.1234298519818.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/VELTOOLS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergiy Kovalchuk updated VELTOOLS-113: -------------------------------------- Attachment: DisplayToolTests.patch DisplayTool.patch Patch and tests attached. > new DisplayTool features > ------------------------ > > Key: VELTOOLS-113 > URL: https://issues.apache.org/jira/browse/VELTOOLS-113 > Project: Velocity Tools > Issue Type: New Feature > Components: GenericTools > Reporter: Nathan Bubna > Priority: Minor > Attachments: DisplayTool.patch, DisplayToolTests.patch > > > More ideas from the dev list: > ---------------------------------------------------------------------------------------------- > On Sat, Feb 7, 2009 at 3:41 PM, wrote: > Hello, > I wanted to share with you a few ideas I have about new simple > improvements for DisplayTools. I should be able to make patches for > them if you are interested. > #snip > 2. Add new "property" parameter to > list(Object list, String delim, String finaldelim, String property) > method that will format an array or collection of objects on selected > property (similar to SortTools). > 3. Add new method: > stripTags(Object obj, String... allowedTags) > that will strip all (html) tags from the text except those listed in > allowedTags (allowed tags are passed like this: "br","img","p"). > 4. Add new method: > br(Object obj) > that will replace \n with "
\n" > 5. Add new "preserveWords" parameter to: > truncate(Object truncateMe, int maxLength, String suffix, boolean preserveWords) > that will truncate a string to a last complete word within maxLength > instead of exact character. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org For additional commands, e-mail: dev-help@velocity.apache.org