You need to sign in to do that
Don't have an account?
component rendering
I have a Header component inside which another component named FeedHeader is rendered. My problem is FeedHeader component should not render on load. It should get rendered on button click. Any ideas how to do it?
Follow the below steps :
- Create a boolean property in your controller class like "showHeader".
- Set it to false in constructor.
- Use renedered = "{!showHeader}" in component which you want to hide on page load
- On click of your button set this showHeader as true.
- Use rerender attribute on your button and pass the id of the component which you want to show after click. Like : rerender="headerId"
- Now you will be able to see the section after click of button.
Please let me know if you need more help on this.Thanks,
Abhishek
I tried the same in my ORG by creating a dummy component and page.
The component is not rendering when boolean is set to false.
So there might be something which you are missing.
Please cross check your code once again and if the issue still exists than please share your complete VF page and class code.
Thanks,
Abhishek