-
1. Re: modalPanel with reRender
liuliu May 11, 2007 3:29 AM (in response to crolmos)hi,
i think i have the problem similar with you. see my post
http://jboss.com/index.html?module=bb&op=viewtopic&t=108344
If you rerender inside the modalpanel,not modelpanel himself, i think it will work.
hope this can help you.
liu -
2. Re: modalPanel with reRender
crolmos May 11, 2007 3:36 PM (in response to crolmos)I've already tried to add an a4j:outputPanel inside the modalPanel and reRender it, but that didn't work too. Any other ideas ?
-
3. Re: modalPanel with reRender
sergeysmirnov May 11, 2007 3:45 PM (in response to crolmos)do not point to the modal panel id, point to one of id inside
-
4. Re: modalPanel with reRender
crolmos May 13, 2007 12:09 AM (in response to crolmos)That's not working either...
-
5. Re: modalPanel with reRender
sergeysmirnov May 13, 2007 12:40 PM (in response to crolmos)post you latest code
-
6. Re: modalPanel with reRender
crolmos May 16, 2007 9:55 PM (in response to crolmos)Here is the code (without the simplifications) :
<t:dataTable value="#{stock.data}" var="entity"> <t:column styleClass="column-left"> <f:facet name="header"><f:verbatim>Ação</f:verbatim></f:facet> <a4j:commandLink action="#{stock.updateSelectedStock}" value="#{entity.acronym}" reRender="myPopUp,teste1" oncomplete="javascript:Richfaces.showModalPanel('myPopUp', {width:450, top:200})"> <f:param name="stockId" value="#{entity.id}"/> </a4j:commandLink> </t:column> ... </t:dataTable> <rich:modalPanel id="myPopUp"> <f:facet name="header"> <h:outputText value="Informações de #{stock.stock.name}" /> </f:facet> <f:facet name="controls"> <h:graphicImage value="/images/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('myPopUp')" /> </f:facet> <h:outputText id="teste1" value="#{stock.stock.name}" /> </rich:modalPanel>
The problem occurs when I clink on a link, the modal panel is shown correctly, close the panel and click on a different link.
The modal panel is shown, but the data inside the panel is not rerendered. -
7. Re: modalPanel with reRender
alexanderbelov May 17, 2007 2:38 AM (in response to crolmos)Please, surround your outputText component with h:form.
ModalPanel must have a form inside.
And always use the latest snapshoot. -
8. Re: modalPanel with reRender
ilya_shaikovsky May 17, 2007 6:02 AM (in response to crolmos)form isn't necessary only if you didn't submit anything from the modal panel.
Try to rerender content nested to panel instead of the panel at whole. -
9. Re: modalPanel with reRender
crolmos May 18, 2007 3:15 PM (in response to crolmos)But isn't that what the code above is doing?
I'm rerendering both 'myPopup' (modalPanel id) and 'teste1' (outputText id). -
10. Re: modalPanel with reRender
ilya_shaikovsky May 22, 2007 6:33 AM (in response to crolmos)do not reRender the whole popup, just the content inside that you need to be refreshed.