From commits-return-18508-archive-asf-public=cust-asf.ponee.io@struts.apache.org Fri Oct 18 13:26:51 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 564DB18067C for ; Fri, 18 Oct 2019 15:26:51 +0200 (CEST) Received: (qmail 42550 invoked by uid 500); 18 Oct 2019 13:26:50 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 42521 invoked by uid 99); 18 Oct 2019 13:26:50 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2019 13:26:50 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 02B4680938; Fri, 18 Oct 2019 13:26:50 +0000 (UTC) Date: Fri, 18 Oct 2019 13:26:50 +0000 To: "commits@struts.apache.org" Subject: [struts-site] 01/02: Fixes example with list variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: lukaszlenart@apache.org In-Reply-To: <157140520991.30929.6521575254778912004@gitbox.apache.org> References: <157140520991.30929.6521575254778912004@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: struts-site X-Git-Refname: refs/heads/small-fixes X-Git-Reftype: branch X-Git-Rev: 35db3b56f18068274d8dabb8c5fd9a53629900d1 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20191018132650.02B4680938@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch small-fixes in repository https://gitbox.apache.org/repos/asf/struts-site.git commit 35db3b56f18068274d8dabb8c5fd9a53629900d1 Author: Lukasz Lenart AuthorDate: Fri Oct 18 15:25:50 2019 +0200 Fixes example with list variable --- source/tag-developers/freemarker-tags.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/tag-developers/freemarker-tags.md b/source/tag-developers/freemarker-tags.md index 5c40f4c..421a850 100644 --- a/source/tag-developers/freemarker-tags.md +++ b/source/tag-developers/freemarker-tags.md @@ -93,12 +93,12 @@ In the new template, the description is referenced via the parameters Map: `${pa ## Attribute Types -Remember that all tag attributes must first be set as Strings - they are then later evaluated (using [OGNL](ognl.html)) +Remember that all tag attributes must first be set as Strings - they are then later evaluated (using [OGNL](ognl)) to a different type, such as List, int, or boolean. This generally works just fine, but it can be limiting when using FreeMarker which provides more advanced ways to apply attributes. Suppose the following example: ```ftl -<@s.select label="Foo label - %{foo}" name="%{name}" list="%{{1, 2, 3}}"/> +<@s.select label="Foo label - %{foo}" name="%{name}" list="%{1, 2, 3}"/> ``` What will happen here is that each attribute will be evaluated to a String as best it can. This may involve calling the