-
1. Re: Rerender after ajax when facelets template is reloaded d
ilya_shaikovsky Sep 1, 2009 6:33 AM (in response to ka1zer)RF version?
-
2. Re: Rerender after ajax when facelets template is reloaded d
ka1zer Sep 1, 2009 6:36 AM (in response to ka1zer)3.3.1.GA
-
3. Re: Rerender after ajax when facelets template is reloaded d
nbelaevski Sep 1, 2009 12:43 PM (in response to ka1zer)Hi,
Yes that's a known problem - when template is recompiled, new set of implicit IDs is created and it isn't the same that was used when the page was rendered - so client updates fail when trying to match elements. Solution: assign explicit IDs to input, command components either as to surrounding naming containers such as h:form or f:subview. -
4. Re: Rerender after ajax when facelets template is reloaded d
ka1zer Sep 2, 2009 3:07 AM (in response to ka1zer)Aha! Why didn't I think of that? :o)
So, if I assign explicit IDs to the component that's being reRendered, it should be fine, right? -
5. Re: Rerender after ajax when facelets template is reloaded d
ka1zer Sep 2, 2009 4:42 AM (in response to ka1zer)OK, it works now. Thank you very much for the solution. I need to put explicit ID on the ajax-button (including containers such as form), otherwise the ajax command fails (I found out that the beanmethod didn't get called). Also, the components that should be rerendered need to have explicit IDs. Then it works.
Thanks again!