function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EzmoEzmo 

Passing parameters from custom component to visualforce page

Hi there,

 

I was just wondering if someone knows a quick way of doing this.

 

I've built a custom component that I want to put into some of my visualforce pages. This component has a list in it, when I click on a value I want it to be transferred into a field on the page. I've got it working using <apex:param> and an outputlink, however this requires the page to refresh which then clears any data already inputted into any other fields, which I don't want to happen.

 

Any ideas would be fab.

 

Thanks

 

Ezmo

Navatar_DbSupNavatar_DbSup

Hi,


You can call the action function through JavaScript event(oncomplete call) on outputlink and use the rerender attribute to restrict the page refresh with apex:outpanel. You can restrict the whole page reload by giving the id of outputpanel in rerender attribute.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.