PrimeFaces dialog lazy loading (dynamic="true") funktioniert nicht?

Habe ich vor kurzem geändert alle meine Bohnen aus RequestScoped zu ViewScoped. Plötzlich, das verzögerte laden von Dialogen funktioniert nicht. Ich bin mit PrimeFaces JSF-Bibliothek.

<html>
<h:body>
<f:view>    
    <h:form>
        <p:commandButton id="addId" value="Add" title="Add" type="button" onclick="dlgMultiFileSelect.show();"/>
        ...
    </h:form>    
    <p:dialog header="Dialog" widgetVar="dlgMultiFileSelect" modal="true" resizable="true" dynamic="true"> 
        <ui:include src="/dialogs/media_browser.xhtml"/>
    </p:dialog>
</f:view>   
</h:body>
</html>

Scheint, wie dynamic="true" funktioniert nicht, da der backing-bean in media_browser.xhtml wird sofort initialisiert, und nicht, wenn die Schaltfläche geklickt wird.

Mache ich etwas falsch?

Verwendung Von PrimeFaces 3.5.0.

Vielleicht hat zu tun mit PARTIAL_STATE_SAVING? stackoverflow.com/questions/5541813/...

InformationsquelleAutor Danijel | 2013-05-14

Schreibe einen Kommentar