From issues-return-12828-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Wed Apr 15 20:10:29 2009 Return-Path: Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: (qmail 37972 invoked from network); 15 Apr 2009 20:10:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2009 20:10:29 -0000 Received: (qmail 30915 invoked by uid 500); 15 Apr 2009 20:10:29 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 30872 invoked by uid 500); 15 Apr 2009 20:10:29 -0000 Mailing-List: contact issues-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 issues@struts.apache.org Received: (qmail 30864 invoked by uid 99); 15 Apr 2009 20:10:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 20:10:29 +0000 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; Wed, 15 Apr 2009 20:10:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 389EC234C044 for ; Wed, 15 Apr 2009 13:10:06 -0700 (PDT) Message-ID: <574494043.1239826206230.JavaMail.jira@brutus> Date: Wed, 15 Apr 2009 13:10:06 -0700 (PDT) From: "Musachy Barroso (JIRA)" To: issues@struts.apache.org Subject: [jira] Resolved: (WW-1298) FreeMarker, WW2 tags and Java primitive values as tag parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Musachy Barroso resolved WW-1298. --------------------------------- Resolution: Fixed I just verified that this works with: <@s.url action="login" namespace="/chat" method="POST" encode=true/> > FreeMarker, WW2 tags and Java primitive values as tag parameters > ---------------------------------------------------------------- > > Key: WW-1298 > URL: https://issues.apache.org/struts/browse/WW-1298 > Project: Struts 2 > Issue Type: Improvement > Components: Plugin - Tags > Affects Versions: WW 2.2.2 > Reporter: Vladimir Olenin > Fix For: Future > > > Currently there seems to be no way to pass 'primitive' java values as parameters to the WebWork tags, when tags are used from within FreeMarker templates. Eg: > <@ww.url encode=true/> > The 'encode' parameter would be ignored, because FM automatically wraps primitive 'true/false' values into TemplateBooleanModel and WebWork URL component doesn't have appropriate setter (URL component has only setEncode(boolean) setter). > I think the same is valid for other WW tags that accept (other) primitive values... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.