kurtomerfaruk / wicked-charts

Automatically exported from code.google.com/p/wicked-charts
0 stars 0 forks source link

JSF2.1: wc:chart inside ui:repeat have multiple identical ids #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Simply create a chart inside a ui:repeat

The generated graphs should have distinct ids but instead of that, they get the 
same one.

I'm working with latest wicked-charts from svn (10 june of 2013, r276)
and I'm using Apache MyFaces

<ui:repeat value="${mybean.options}" var="opts">
    <wc:chart options="#{opts}" />
</ui:repeat>

With this code I get the duplicated id "j_id_19" for all charts generated with 
options from myBean.

Thanks in advance

Original issue reported on code.google.com by clemvang...@gmail.com on 21 Jun 2013 at 4:21

GoogleCodeExporter commented 9 years ago
I made a quick & dirty fix with the following line:

this.setId(this.getId() + this.hashCode())

However I'm not sure that it's wicked-charts fault, maybe more the JSF 
implementation.

Original comment by clemvang...@gmail.com on 21 Jun 2013 at 4:43

GoogleCodeExporter commented 9 years ago
moved issue to github at https://github.com/thombergs/wicked-charts/issues/10

Original comment by tom.homb...@gmail.com on 21 Apr 2014 at 11:39