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 665AC10BC2 for ; Tue, 21 Jan 2014 11:06:09 +0000 (UTC) Received: (qmail 34702 invoked by uid 500); 21 Jan 2014 11:06:07 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 34152 invoked by uid 500); 21 Jan 2014 11:06:06 -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 34141 invoked by uid 99); 21 Jan 2014 11:06:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jan 2014 11:06:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of davelnewton@gmail.com designates 209.85.128.45 as permitted sender) Received: from [209.85.128.45] (HELO mail-qe0-f45.google.com) (209.85.128.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jan 2014 11:05:59 +0000 Received: by mail-qe0-f45.google.com with SMTP id 1so1724025qec.18 for ; Tue, 21 Jan 2014 03:05:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AsEIKMQG1JGwYGya9LQPtTi5LAWoyqdr/NFvJByAs/Y=; b=irvssx9ikHEdewMfwNn06V9Vt/R3CbeR48rYPVc6TFyYKXbfasMCqBqikrx3kxRxkZ +tKpjSpoNbCxXl8SHV/HtDkFeCz7L81baJ+S3WjgvEd31llk4p9rqvdY9bHdGc9oxbRE 0gQXqUVmkBKNT6LjmR8MKHgf2VrgPkRRx9qURjIKfO7cmphSRHU9d/JdWO/NoLcyJp3i WEPWlAhQ1CHaIvheZv/QouhE5DBt6AxgRaKJSSKrtjibLuHqIEpL7bM/ZG1FGXhZkDCY ngUDv20dRL9km1yr5UZA44SypQ6ARHV6lXN9G2cMKBlqFs0tQmZ98sEn5V3nBLpbaTjA wI7w== MIME-Version: 1.0 X-Received: by 10.224.38.137 with SMTP id b9mr36219608qae.38.1390302338740; Tue, 21 Jan 2014 03:05:38 -0800 (PST) Received: by 10.96.98.70 with HTTP; Tue, 21 Jan 2014 03:05:38 -0800 (PST) Received: by 10.96.98.70 with HTTP; Tue, 21 Jan 2014 03:05:38 -0800 (PST) In-Reply-To: References: <1390296217.25814.YahooMailNeo@web164002.mail.gq1.yahoo.com> Date: Tue, 21 Jan 2014 06:05:38 -0500 Message-ID: Subject: Re: Dynamic ID generated by FreeMaker From: Dave Newton To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=001a11c2cfc807f66f04f078fdab X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2cfc807f66f04f078fdab Content-Type: text/plain; charset=ISO-8859-1 Note to self: the null check should probably be a blank check. On Jan 21, 2014 4:27 AM, "Lukasz Lenart" wrote: > > https://git-wip-us.apache.org/repos/asf?p=struts.git;a=blob;f=core/src/main/java/org/apache/struts2/components/UIBean.java;h=05720134eb7b6337ec9729f3d4c7856751f9142c;hb=6199a402675ed625c11dce1ad8fe6fffc87430cd#l965 > > 2014/1/21 Alireza Fattahi : > > Hi, > > > > I found that in struts 2.3.16 the id is generated for input and selects > by adding the form name and input name. For example id="loginForm#userName" > > > > I try to change this so only it generate the only input name as its id. > > > > I reviwed the text.ftl and find below line: > > > > <#if parameters.id??> > > id="${parameters.id?html}"<#rt/> > > > > > > Which means if id is defined use it. But I could not find where/how the > autumatic generated ID is used here. > > > > ~Regards, > > ~~Alireza Fattahi > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --001a11c2cfc807f66f04f078fdab--