All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sections.layout.customContentLayout.xhtml Maven / Gradle / Ivy

There is a newer version: 1.1.0.6-jre15
Show newest version


    
        
            
        
        
            To place any custom content between layout panes there are three alternative ways:
            

  • Place a nested layout pane (pe:layoutPane) within a div element with the class "ui-layout-content". This approach is applied in this example.
  • Add the option "containerSelector" to child options (see LayoutOptions class). The value of "containerSelector" points to a wrapper-div element which acts as a container for nested layout panes.
  • Use the header facet (f:facet name="header") for any custom content. This is very handy. For instance, if you place messages there, they will be always visible because only pane's inner "content container" gets scrollbars. The header facet always stays fixed. This approach is demonstrated in this example.
Note: Use the widget's method sizeContent(pane) to manually trigger a resize from your own code when the custom content between layout panes gets updated and changes its size. sizeContent(pane) resizes the "content container" inside the specified pane (e.g. sizeContent('center_west')). Content is resized automatically when the pane is resized or opened, so this method only needs to be called manually if something "changes the height" of a header or footer element in the pane.

Please refer examples on the plugin homepage to see how it works in detail. ${showcase:getFileContent('/sections/layout/example-customContent.xhtml')} // Included page with nested child layout ${showcase:getFileContent('/sections/layout/example-customContentOne.xhtml')} ${showcase:getFileContent('/org/primefaces/extensions/showcase/controller/layout/CustomContentLayoutController.java')}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy