Before starting for the feature request, i would like to thank Cagatay and Team for their contribution and support.
Short Description:
This feature request is about embedding a primefaces/jsf application inside a HTML page, where a static DIV element will be replaced by dynamic content through AJAX.
Long Description:
Let say i have a HTML page like this
Code: Select all
<html>
<head> [ comes all prime resources (css, js etc.) ] </head>
<body>
<div id="primewidgetDiv">This will be replaced with dynamic content</div>
<script type="text/javascript">
primewidget = function(){
PrimeFaces.ajax.AjaxRequest(
'/webcontextname/loaddynamiccontent.jsf',
{formClientId:'form123Id',global:true},
{'primefacesPartialUpdate':'primewidgetDiv','requestparam1':'1122323', 'requestparam2':'something to test'}
);}
</script>
</body>
</html>
Important thing is, once if the dynamic content got loaded, then from now only AJAX requests must be allowed for further actions (partial update). Because making a normal refresh (h:commandLink/button) makes no sense here as the whole page will be reloaded again and nested call to load script.
The idea is similar to something like here
Vaadin: http://vaadin.com/book/-/page/applicati ... dding.html
jFrame: http://garage.pimentech.net/scripts_doc_jquery_jframe/
jFrame Demo: http://garage.pimentech.net/examples/jquery_jframes/
This feature has many advantages, where we could embed a JSF application inside a iGoogle like widget and also for other similar cases.
Any help would be great!!