[jboss-user] [JBoss Seam] - how to generate dynamic id of tag?
kannattaa
do-not-reply at jboss.com
Thu Oct 11 11:08:16 EDT 2007
i have a list of commodities and want to generate id of <a:outputPanel> that corresponds to commodity.id . then i am going to rerender particular <a:outputPanel> with ajax, but not all of them.
but #{currentCommodity.id} doesn't occur in result id :
source:
<a:repeat value="#{listCommodities.getCommodities()}" var="currentCommodity">
| <a:outputPanel id="#{currentCommodity.id}spinbox">
| #{currentCommodity.id}
| </a:outputPanel>
| </a:repeat>
result html:
<span id="j_id2:0:spinbox">450</span>
| <span id="j_id2:1:spinbox">451</span>
| <span id="j_id2:2:spinbox">550</span>
| <span id="j_id2:3:spinbox">601</span>
| <span id="j_id2:4:spinbox">500</span>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094153#4094153
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094153
More information about the jboss-user
mailing list