-
1. Re: AjaxStateManager duplicate Id for a component exception
bek816 Aug 5, 2008 10:50 AM (in response to bek816)Hello?
-
2. Re: AjaxStateManager duplicate Id for a component exception
bek816 Aug 5, 2008 4:57 PM (in response to bek816)Can someone explain to me what the AjaxStateManager in the 3.1.x branch is doing and why it is generating all sorts of duplicate id exceptions? I looked at the old ajax4jsf code and there was no AjaxStateManager class (it didn't exist). I looked at the latest 3.2.x code and the "apply" method that throws the exception is gone. In fact the class was totally revamped.
-
3. Re: AjaxStateManager duplicate Id for a component exception
alexsmirnov Aug 5, 2008 7:35 PM (in response to bek816)This code is a JSR requirements. In the old versions we didn't use own StateManager implementations, but this code exist in the any default implementations too.
Also, what version of the JSF you are use ? In the latest releases, some workarounds for a SUN RI prior to 1.1_02 and MyFaces prior to 1.1.4 have been removed.
Also, it was a bug in the facelets implementations for a <f:facet> tag. Try to set exact id's for an all "header" and "footer" components. -
4. Re: AjaxStateManager duplicate Id for a component exception
bek816 Aug 6, 2008 10:37 AM (in response to bek816)Thanks for the reply - incidentally I discovered the same workaround you suggested below. This however came after a week of effort. So if I have something like this:
<t:column id="columnId"> <f:facet name="header"> <h:outputText value='something' id="columnHeaderId" /> </f:facet> <h:outputText value="#{step.assignedDtm}" id="columnOutputId"/> </t:column>
Which ids are needed? I've gotten it to work by putting ids in all the places above. Are you suggesting that ids are only needed on the output text inside the facet?
We are using MyFaces 1.1.4 (snapshot), Tomahawk 1.1.2, and RichFaces 3.1.4. -
5. Re: AjaxStateManager duplicate Id for a component exception
bek816 Aug 6, 2008 4:02 PM (in response to bek816)Also, what version of the JSF you are use ? In the latest releases, some workarounds for a SUN RI prior to 1.1_02 and MyFaces prior to 1.1.4 have been removed.
In the latest releases of what? RichFaces or MyFaces? Are you suggesting that if we go back to MyFaces 1.1.3 there's a workaround there?