Post Reply 
Author [Solved] [Page Engine] Binding pageData to a module
GoWaPs
Member

Find all posts by this user
Quote this message in a reply
Default  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
(This post was last modified: 4 April 2014 09:48 by GoWaPs.)
GoWaPs
Member

Find all posts by this user
Quote this message in a reply
4 April 2014 09:50
The method getData of my tableController was the cause of my error though I have no idea why.
Post Reply