This content has been marked as final.
Show 7 replies
-
1. Re: rerender causes duplicate component id error
grimholtz Aug 20, 2008 6:16 PM (in response to grimholtz)Anyone?
-
2. Re: rerender causes duplicate component id error
shadowcreeper Aug 20, 2008 7:24 PM (in response to grimholtz)Have you trid putting a rich:panel inside the form and rendering that instead?
If you *can* get rid of c:forEach, do it. That component tends to bring in a whole mess of sporadic reRendering problems.
Can anyone point us in the direction of a good tutorial that explains these quirks? Is it just sporadic luckiness that it doesn't happen all the time or sporadic bugs in the code that it does happen sometimes? -
3. Re: rerender causes duplicate component id error
daniel.soneira Aug 21, 2008 3:57 AM (in response to grimholtz)Here is some background:
http://www.ilikespam.com/blog/c:foreach-vs-ui:repeat-in-facelets -
4. Re: rerender causes duplicate component id error
grimholtz Aug 21, 2008 4:10 PM (in response to grimholtz)"daniel.soneira" wrote:
Here is some background:
http://www.ilikespam.com/blog/c:foreach-vs-ui:repeat-in-facelets
Yes, I'm very familiar with that article.If you *can* get rid of c:forEach, do it. That component tends to bring in a whole mess of sporadic reRendering problems.
How? I've substituted ui:repeat but that causes other problems.
Would writing a custom component be any help? -
5. Re: rerender causes duplicate component id error
grimholtz Aug 21, 2008 4:16 PM (in response to grimholtz)"shadowcreeper" wrote:
Have you trid putting a rich:panel inside the form and rendering that instead?
Just tried. No help. Interestingly, the duplicate component id is always on one of the forms even if I rerender the rich:panel you recommended instead.
If i remove the forms and just have one giant form for the whole page, I get a duplicate component id on another component... not the form. -
6. Re: rerender causes duplicate component id error
grimholtz Aug 21, 2008 4:29 PM (in response to grimholtz)More info... I still get the duplicate component id even if I remove reRender from the commandButton and set limitToList (to limit what is reRendered when the commandButton is clicked).
WTF? -
7. Re: rerender causes duplicate component id error
shadowcreeper Aug 21, 2008 4:34 PM (in response to grimholtz)"grimholtz" wrote:
If you *can* get rid of c:forEach, do it. That component tends to bring in a whole mess of sporadic reRendering problems.
How? I've substituted ui:repeat but that causes other problems.
Would writing a custom component be any help?
Unfortunately it is not always easy to get rid of (hence the "if" part).
If you know you will never have more than N number of tabs, you could just conditionally render them, but if N is something larger than say 5, that probably is not feasible.
Doing it in Java is probably the cleanest way to remove the need for c:forEach, but that does not seem easy either. I wish there was a simple HOWTO for creating custom components in Java... :(
PS -- Thanks Daniel, that link is much help.
-Shadow