Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40C7F86FB for ; Fri, 9 Sep 2011 22:59:40 +0000 (UTC) Received: (qmail 3480 invoked by uid 500); 9 Sep 2011 22:59:38 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 3436 invoked by uid 500); 9 Sep 2011 22:59:37 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 3428 invoked by uid 99); 9 Sep 2011 22:59:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 22:59:37 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of vatermann@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 22:59:32 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R2A2R-0005RK-Aq for user@struts.apache.org; Fri, 09 Sep 2011 15:59:11 -0700 Date: Fri, 9 Sep 2011 15:59:11 -0700 (PDT) From: vatermann_shoevarek To: user@struts.apache.org Message-ID: <1315609151283-4788197.post@n5.nabble.com> Subject: Java templates tag and the significance of parameters.nameValue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am considering switching my application to using Java theme provided by Java templates plugin. The only problem I have is the tag. My solution uses with name of the Long type property of element in list passed to "list" attribute as a "listKey" and collection of Long instances as a selected keys in "value" attribute. After conversion generated drop down does not check options correctly. I have looked into FreeMarker template and CheckboxListHandler implementations and the difference I see is that where the FM probably compares current option key with parameters.nameValue using plain equal() method call, the Java templates handler implementation assumes that the nameValue is a boolean. That obviously is not the case so none of the options are checked. So here are my questions. What should I set to "value" attribute of that tag and how parameters.nameValue is managed? That property is not exposed as a tag attribute?? Thanks in advance for any help. Regards, Andrzej -- View this message in context: http://struts.1045723.n5.nabble.com/Java-templates-s-checkboxlist-tag-and-the-significance-of-parameters-nameValue-tp4788197p4788197.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org