struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Dynamic ID generated by FreeMaker
Date Tue, 21 Jan 2014 09:26:51 GMT
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 <afattahi@yahoo.com>:
> 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/>
> </#if>
>
> 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


Mime
View raw message