A requirement lead me to play around the components. while clicking button I need to toggle components.
Requirement rules:
1.Should not use render/visible property.
2.Toggle should happen page itself. it should not taken it into bean.
I studied about switcher.I got a chance to implement it.
Step 1: Have Switcher in your page. Under switcher have your components.
Important note:
Components should folds of f:facet. Switcher facet Name play key role. it will decide which will show up on the screen.
Step 2: Finally requirement accomplished.
Clicking First button,
Clicking Second button,
Download here
Requirement rules:
1.Should not use render/visible property.
2.Toggle should happen page itself. it should not taken it into bean.
I studied about switcher.I got a chance to implement it.
Step 1: Have Switcher in your page. Under switcher have your components.
Important note:
Components should folds of f:facet. Switcher facet Name play key role. it will decide which will show up on the screen.
Step 2: Finally requirement accomplished.
Clicking First button,
No comments:
Post a Comment