Skip to main content
added 136 characters in body
Source Link

And, sometimes this code works properly without any issues in Chrome & Firefox, but not at all working in IE. It acts totally weird.

Any help is really Appreciated. !!

Any help is really Appreciated. !!

And, sometimes this code works properly without any issues in Chrome & Firefox, but not at all working in IE. It acts totally weird.

Any help is really Appreciated. !!

Added controller code
Source Link

Controller code:

public class TestController {
        public Boolean uhasAccess {get;set;}
        public Boolean isExists {get;set;}
        public String selReason {get;set;}
        public List<SelectOption> lstReason {get;set;}
        public Boolean isReplacement {get;set;}

        public TestController () {
            BindValues();
        }
    public List<SelectOption> getlstReason()
        {
            List<SelectOption> options = new List<SelectOption>();
           
            options.add(new SelectOption('select','----Select----')); 
            options.add(new SelectOption('H/W - Crash','H/W - Crash'));
            options.add(new SelectOption('H/W - Motherboard change','H/W - Motherboard change'));               
            return options;
        }  
    public void BindValues()
    {
        isReplacement = false;  
        isExists = true;
        uhasAccess = true;
    }    
        public void SetChangeFlag()
        {        
            if(selReason != 'select')
            {
                isReplacement = true;
            }
            else
            isReplacement = false;     
        }
}

I have a checkbox and a dropdownlist. On changing the dropdownlist, the {!isReplacement} flag will be set reRendering the outputpanel rPanel2. But on reRendering, the subPanel Panel3 remains hidden even when {!isExists} is true/checked. it looks like Panel3 is not reRendered

I have a checkbox and a dropdownlist. On changing the dropdownlist, the {!isReplacement} flag will be set reRendering the outputpanel rPanel2. But on reRendering, the subPanel Panel3 remains hidden even when {!isExists} is true/checked. it looks like Panel3 is not reRendered

Controller code:

public class TestController {
        public Boolean uhasAccess {get;set;}
        public Boolean isExists {get;set;}
        public String selReason {get;set;}
        public List<SelectOption> lstReason {get;set;}
        public Boolean isReplacement {get;set;}

        public TestController () {
            BindValues();
        }
    public List<SelectOption> getlstReason()
        {
            List<SelectOption> options = new List<SelectOption>();
           
            options.add(new SelectOption('select','----Select----')); 
            options.add(new SelectOption('H/W - Crash','H/W - Crash'));
            options.add(new SelectOption('H/W - Motherboard change','H/W - Motherboard change'));               
            return options;
        }  
    public void BindValues()
    {
        isReplacement = false;  
        isExists = true;
        uhasAccess = true;
    }    
        public void SetChangeFlag()
        {        
            if(selReason != 'select')
            {
                isReplacement = true;
            }
            else
            isReplacement = false;     
        }
}

I have a checkbox and a dropdownlist. On changing the dropdownlist, the {!isReplacement} flag will be set reRendering the outputpanel rPanel2. But on reRendering, the subPanel Panel3 remains hidden even when {!isExists} is true/checked. it looks like Panel3 is not reRendered

added 314 characters in body
Source Link

I have a checkbox and a dropdownlist. On changing the dropdownlist, the {!isReplacement} flag will be set reRendering the outputpanel rPanel2rPanel2. But on reRendering, the subPanel Panel3Panel3 remains hidden even when {!isExists} is true/checked. it looks like Panel3Panel3 is not reRendered

And also, inside the same panel {!isExists} shows as true at Panel1 and the same variable shows as false at Panel3 on reRendering. I have tried most of the ways by wrapping the output panel inside pageBlock and another Output Panel, also tried to reRender Panel3 alone. But none of it helps..!!

I have a checkbox and a dropdownlist. On changing the dropdownlist, the {!isReplacement} flag will be set reRendering the outputpanel rPanel2. But on reRendering, the subPanel Panel3 remains hidden even when {!isExists} is true/checked. it looks like Panel3 is not reRendered

I have a checkbox and a dropdownlist. On changing the dropdownlist, the {!isReplacement} flag will be set reRendering the outputpanel rPanel2. But on reRendering, the subPanel Panel3 remains hidden even when {!isExists} is true/checked. it looks like Panel3 is not reRendered

And also, inside the same panel {!isExists} shows as true at Panel1 and the same variable shows as false at Panel3 on reRendering. I have tried most of the ways by wrapping the output panel inside pageBlock and another Output Panel, also tried to reRender Panel3 alone. But none of it helps..!!

Source Link
Loading