Aria Templates Forums
[Solved] [Page Engine] Binding pageData to a module - Printable Version

+- Aria Templates Forums (http://ariatemplates.com/forum)
+-- Forum: Public forums (/forumdisplay.php?fid=3)
+--- Forum: Support (/forumdisplay.php?fid=8)
+--- Thread: [Solved] [Page Engine] Binding pageData to a module (/showthread.php?tid=199)



[Solved] [Page Engine] Binding pageData to a module - GoWaPs - 3 April 2014 10:34

Hi!

I'm coming back to you since I have got a strange error while binding page data to a module defined in the page composition.

I get this error : " [aria.pageEngine.SiteRootModule] Assert #2 failed in aria.pageEngine.SiteRootModule "

Binding is defined in the TableController module.
When binding is deleted from my module definition, it works fine.
When my binding is defined in the siteConfiguration, it works fine.


Purpose of this binding is to retrieve the data of an answered request sent by the SearchContainer, to the TableContainer which will display it.
Here is my code :

page.json :
pageComposition : {
        placeholders : {
            "tableContainer" : {
                "template" : "mypath.widget.Table.Table",
                "module" : "tableController",
                "args" : [
                    "tabletest",
                    "tabResults"
                ]
            },
            
            "searchContainer" : {
                "template" : "mypath.searchContainer.SearchContainer",
                "module" : "common:searchContainerController"
            },
        modules : {
            "tableController" : {
                classpath : "mypath.modules.TableController",
                bind : {
                    "tableBindableProperty" : "pageData:tabResults"
                }    
            },
        pageData : {
            "defaultSelectedMode" : "PNR",
            "tabResults" : []
        }
    }

Thanks for the help Smile


RE: [Solved] [Page Engine] Binding pageData to a module - GoWaPs - 4 April 2014 09:50

The method getData of my tableController was the cause of my error though I have no idea why.