This content has been marked as final.
Show 5 replies
-
1. Re: How to rerender?
ilya_shaikovsky Jun 6, 2007 12:18 PM (in response to shlang)You may not reRender components based on rendered attribute. Wrap it to something which is present in tree always (outputPanel with none layout) and then reRender wrapper.
-
2. Re: How to rerender?
sergeysmirnov Jun 6, 2007 12:26 PM (in response to shlang)Key rule - do not point with reRender to the id of the component that has 'rendered' attribute. You did it twice. To minimize the changes you can each of the rerendered component with a4j:outputPanel layout="none"
-
3. Re: How to rerender?
shlang Jun 6, 2007 12:45 PM (in response to shlang)no luck...
<a4j:form id="voteForm"> <a4j:outputPanel id="votePanel" layout="none"> <a4j:commandLink immediate="true" rendered="#{Video.mayVote}" id="voteButton" limitToList="true" reRender="votePanel" actionListener="#{Video.addVote}"> <h:graphicImage id="voteImage" url="img/votenow.gif"/> <f:param name="video" value="#{Video.ids}"/> </a4j:commandLink> <h:graphicImage id="voteImageDisabled" rendered="#{!Video.mayVote}" url="img/votenow_d.gif"/> </a4j:outputPanel> </a4j:form>
-
4. Re: How to rerender?
sergeysmirnov Jun 6, 2007 1:00 PM (in response to shlang)in case of layout="none" you should NOT point to id of outputPanel, but to the child component. (in case of inline or block you should)
-
5. Re: How to rerender?
shlang Jun 6, 2007 1:51 PM (in response to shlang)Thanks a lot! Problem resolved.