struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Re: Struts 2 and automatic ids
Date Wed, 08 Oct 2014 07:25:20 GMT
> I was wondering what the proper solution should be and didn't find any 
:\
> 
> You can always add id attribute your self - this should work
> 
> <s:hidden id="'hidden-'+%{#user.id}" name="userIds" value="%{#user.id}" 
/>
> <s:select id="'groups'++%{#user.id}" list="groupList" name="groupIds"
> value="%{groupValues[#user.id]}" />
> 
> but it means we shouldn't autogenerate IDs which can break few things :/


Every time I see those autogenerated IDs, I think this can be dangerous, 
but it never bite me, so I did not spent time on it ;)

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message