This content has been marked as final.
Show 4 replies
-
1. Re: launch modal panel on load
rogermorituesta.rogermori.yahoo.com Apr 29, 2011 10:34 AM (in response to simomon)<!-- Load modal panel after loading the page --> <script type="text/javascript"> jQuery(document).ready(function(){ Richfaces.showModalPanel('MP_ADD_REQINFO'); }); </script>
-
2. Re: launch modal panel on load
simomon May 1, 2011 2:46 AM (in response to simomon)thank you for the response.
i am trying to launch a template/fragment that i have already created called
confirm_modal_dialogue
view-id="/WEB-INF/templates/fragment/confirm_modal_dialogue.xhtml"
is it possible to launch a template in a similar manner ?
<!-- Load modal panel after loading the page -->
<script type="text/javascript">
jQuery(document).ready(function(){
Richfaces.launchFragment("confirm_modal_dialogue"); << ??
});
</script>
thanks -
3. Re: launch modal panel on load
simomon May 1, 2011 7:40 PM (in response to simomon)actually thankyou roger the above was the answer :)
ie name of modal template i made id = confirmation
<script type="text/javascript">
jQuery(document).ready(function(){
Richfaces.showModalPanel('confirmation');
});
</script> -
4. Re: launch modal panel on load
simomon May 2, 2011 8:32 PM (in response to simomon)actually
the above script won't work unless there is a reference to the fragment on the page
<script type="text/javascript">
jQuery(document).ready(function(){
Richfaces.showModalPanel('confirmation');
});
<ui:include
src="/WEB-INF/templates/fragment/confirm_modal_dialogue.xhtml">
</ui:include>
cheers