+ Start a Discussion
MG05MG05 

Reference component in commandbutton

Hi,

Any idea on how to render a vf component using a commandbutton? I would like to display a pop-up window when the button is clicked. I created a vf component for the pop-up window but have no idea on how to associate it with a command button/link

Thanks!
ssssssssssssss
You can use a commandbutton along with the attribute 'onclick'. On onclick, you can open a window using window.open.

Thanks.

~S