UI Layout Initialization Error-The center-pane element does not exist

后端 未结 4 1654
无人共我
无人共我 2021-01-18 09:01

I am using a Layout structure that has centerLayout, westLayout,northLayout

When i run the file, i take this following error: \"/UI Layout Initialization Error. Th

4条回答
  •  情书的邮戳
    2021-01-18 09:23

    On primefaces 5.1 I had the case when options ware set by controler bean

    
    

    and in that controler I was setting child layoutPanes that ware not defined

    // options for nested center layout
    LayoutOptions childCenterOptions = new LayoutOptions();
    center.setChildOptions(childCenterOptions);
    
    // options for center-north pane
    LayoutOptions centerNorth = new LayoutOptions();
    centerNorth.addOption("size", "50%");
    childCenterOptions.setNorthOptions(centerNorth);
    

    So if you are extending primefaces showcase, be sure to disable configuration on the unexsisting panes.

    Since this error is not shown on other missing panes (east, west,..) this could be a big headache to solve.

提交回复
热议问题