techno, electro dj, livesets , mixed mp3

DJ Spark

Multibox do Struts e o atributo ‘for’ no label

September 4th, 2007 by DJ Spark

É bem simples: faça o loop e use o atributo ‘count’ para dar um ID para seu INPUT , colocando o mesmo ID no FOR.

<logic:iterate id=”item” property=”items” indexId=”count”>
<label for=”xx<bean:write name=’count’/>”>
<html:multibox property=”item” styleId=”<%=”xx”+count%>”>
<bean:write name=”item” property=”value”/>
</html:multibox>
<bean:write name=”item” property=”label”/>
</label>
</logic:iterate>

Achei nos comentários aqui: http://www.beernut.ca/jim/archives/002408.html

Filed under web   having

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.