-
1. Re: a4j:jsFunction rerender doesn't work
mcmurdosound Jan 31, 2012 1:41 PM (in response to true_mykola)do not rerender forms. You should add an a4j:outputPanel or a h:panelGroup to the the form and reRender this one instead:
<h:form id="#{
viewId}
Form">
<a4j:outputPanel id="refreshMe">
<script>
console.log("i was rerendered!");
</script>
<a4j:jsFunction action="#{MbReportsContext.initializeModalPanel}"
name="initializeReportPanel#{viewId}" reRender="#{viewIdColon}#{viewId}Form:refreshMe">
</a4j:jsFunction>...
the script tag should give a hint, if the part of the page is actually rerendered.
-
2. Re: a4j:jsFunction rerender doesn't work
true_mykola Jan 31, 2012 2:27 PM (in response to mcmurdosound)Nope, it didn't help.
-
3. Re: a4j:jsFunction rerender doesn't work
mcmurdosound Jan 31, 2012 2:34 PM (in response to true_mykola)sorry, my fault. I've got mixed up with your forms ;-) I thought, the jsFunction would reRender its surrounding form but it reRenders the modal panels form instead!
Then try:
</f:facet>
<h:form id="reportRunForm"><a4j:outputPanel id="refreshMe">...
and reRender the panel:
reRender="#{viewIdColon}reportRunForm:refreshMe"
-
4. Re: a4j:jsFunction rerender doesn't work
true_mykola Jan 31, 2012 3:10 PM (in response to mcmurdosound)well, of course i didn't just copy-paste i put correct id into reRender parameter and it didn't work