Hi

Take a look at:

https://issues.apache.org/jira/browse/MYFACES-3389

It explains the limitations of c:forEach and its model. It is a known
weakness of that component and there is no other fix than just make a
proper component like tomahawk t:columns and use it.

regards,

Leonardo Uribe

2012/1/17 Daniel Reznick <vedm...@gmail.com>

> Just for the record,
>
> event when i remove the explicit generation of the id attribute, and let
> the myfaces generate the ids , i get the exact error , but this time the
> duplicated id that is being shown in the alert message (cause of the
> development mode set in the web.xml) , the duplicated id is being created
> by the myfaces and looks like j_id782346873642587..... (something like
> that) , so its not cause of the id that I'm assigning explicitly
>
> On Tue, Jan 17, 2012 at 5:59 PM, Leonardo Uribe <lu4...@gmail.com> wrote:
>
> > Hi
> >
> > I agree mixing build time and render time tags in that way could cause
> > problems like the one described.
> >
> > I can confirm there was a change on the id generation, see:
> >
> > https://issues.apache.org/jira/browse/MYFACES-3329
> > https://issues.apache.org/jira/browse/MYFACES-3330
> > https://issues.apache.org/jira/browse/MYFACES-3331
> >
> > By multiple reasons described on those issues, the change is valid and
> > strongly necessary.
> >
> > The snippet provided reveals in that part an EL expression is used to
> > calculate the id:
> >
> >                      <p:column
> >
> >
> id="expenses_table_device_column#{expensesPage.fixStatisticsDateDate(unitOfTime)}"
> > sortBy="SomeValue">
> >
> > Facelets algorithm uses internally other id
> > (ComponentSupport.MARK_CREATED), It is probably the problem starts here.
> > Maybe the id is changed in some part and does not match the component
> > correctly like ComponentSupport.MARK_CREATED, causing the duplicate id
> > exception.
> >
> > Anyway, there are other ways to do what you want, and use that snippet is
> > not advisable.
> >
> > regards,
> >
> > Leonardo Uribe
> >
>

Reply via email to