-
1. Re: Problem closing ModalPanel
zacwolfe Oct 2, 2007 8:15 PM (in response to zacwolfe)Additional info: if I attach javascript to the close button on the panel itself, it works fine:
<mp:modalPanel ....> ... <f:facet name="controls"> <h:graphicImage value="/images/ico_close.gif" onclick="Richfaces.hideModalPanel('workingPanel');" /> </f:facet> ... </mp:modalPanel>
Only when I try to call javascript from the parent page do I have a problem. -
2. Re: Problem closing ModalPanel
sergeysmirnov Oct 2, 2007 8:30 PM (in response to zacwolfe)similar task: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060361#4060361
I am just curious. Why you use mp:modalPanel, but not rich:modalPanel?
Both code snippets have different names for panel. So, I cannot be sure about such banal problem as typo. -
3. Re: Problem closing ModalPanel
zacwolfe Oct 2, 2007 9:54 PM (in response to zacwolfe)Thanks for the reply.
Yes I accidentally entered mismatched names when I typed in the snippet, but (unfortunately) not in my actual code--but good catch.
Anyway, the link you gave me helped immensely. I wasn't aware of the ajax4jsf status tag, it's exactly what I needed and its working now. I don't know why my javascript call didn't work--I suspect its some kind of JS scoping issue--but at least for now I don't care :-)
Thanks!