This content has been marked as final.
Show 1 reply
-
1. Re: displaying ModalPanel without refreshing the page
nbelaevski Apr 12, 2010 12:33 PM (in response to orkun)Hi,
Yes, you can show it via client-side API. Two possible options to deliver script to the client in AJAX request:
1. Pass script text into AjaxContext#setOncomplete (this will overwrite previously-defined script)
2. Place inline script code on the page and re-render this part, e.g.:
<a4j:outputPanel ajaxRendered="true"> <span> <script type="text/javascript"> //...script body </script> </span> </a4j:outputPanel>
As far as I remember, photoalbum demo application uses the second approach.