Showing posts with label dynamic include. Show all posts
Showing posts with label dynamic include. Show all posts

Saturday, February 2, 2013

Dynamic Include

Dynamic include is a technique to programmatically include or toggle content into predefined position of a page. It can also uses to create wizard like application by toggle the contents of the wizard.

Benefits of dynamic include
- save bandwidth
- reduce page size
- reduce server memory with smaller component tree
- reduce page loading time

Disadvantages of dynamic include
- increase complexity

Example
- How to create layout with dynamic include
- dynamic include in Richfaces tabPanel
- How to create wizard with dynamic include in JSF2
- Dynamic include with richfaces popupPanel

Saturday, January 19, 2013

dynamic include in Richfaces tabPanel

The main purpose to have dynamic include in <rich:tabPanel /> is save bandwidth and reduce the page size, especially when the tabs having a lots of content.

This can be achieve through the attribute "onenter" and <a4j:jsFunction />

Saturday, January 12, 2013

How to create wizard with dynamic include in JSF2

In Richfaces, wizard can be created with <rich:togglePanel />, but the disadvantage of this solution is, the component tree would be quite large.
Because the togglePanel component needed to hold all components for all pages in <rich:togglePanelItem />
Which mean the server needs more memory in order to work well in this situation.

and this solution, applicable to Richfaces only.

In this post, I will show how to create a wizard application with dynamic include. Thus, the component tree only hold the required page. and this solution is applicable to all JSF implementation.

Steps:

Sunday, November 25, 2012

Dynamic include with richfaces popupPanel

Scenario:
this post is to show how to dynamically include a page popupPanel when open, and remove the included page when closed.

The purpose to use dynamic include in popupPanel  are to avoid mandatory validation inside the popup, and to reduce the component tree size, thus reduce the network bandwidth.

Steps:
ManagedBean
1. create a placeholder in managedBean.
2. create a addIncludeUrl method in manageBean
3. create a hideIncludeUrl method in managedBean

LinkWithin

Related Posts Plugin for WordPress, Blogger...