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
sunkanna kuruvasunkanna kuruva 

Issue with multiple components in visualforce page

HI ,

I am facing problem in in Visualforce page.

my visualforce page contains in side one more visualforce page in that pages i have two Components

Component 1
component 2

and  i am using sames controller for these two components.

i am diaplaying list of accounts in component 1,

and provided on click functionality foreach record, when i click on particualr record it's opening component 2 with clicked record deatil,

on click of records i am passing reocrd id using param tag.

it's working fine for first time .

second click it's not working just it's rerendering component with empty data..........

if anybody knows kindly suggest me how to solve this problem.
Surendra nuneSurendra nune
"ids" of elements take a major role when you are using same component multiple times.
try to generate unique ids for all the elements in the vf page.
sunkanna kuruvasunkanna kuruva
i am not using one component multiple time  i am using different components
Surendra nuneSurendra nune
Please share the code
Umesh BetiUmesh Beti
Hi Surendra nune
i am running with same issue, i have used random numbers for eac component, event it is overriding over the first component.