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
FengFeng 

Is a patch released today???? Rendered attribute is no longer working

Is a patch released today , our salesforce pages experience problems, which used to working fine, here is the code to test
Code:
<apex:page controller="TestPage_Controller" showheader="true" sidebar="false" action="{!Init}" >
<apex:form >
    <apex:outputpanel rendered="{! Not RenderIt}" >    
  abc
    </apex:outputpanel>
</apex:form>
</apex:page>

 Controller :

Code:
public class TestPage_Controller {
    
    public String TheId = null;    
    public TestPage_Controller() {
                       
    }
    public void Init()
    {
     TheId = 'abc';
     System.Debug('----------' + Theid);
    }
    public boolean getRenderIt()
    {
     if(TheId == null)
     {
      throw new MyCustomizedException('The Id is null');
     }
     return true;
    }  
}

 
it looks this line of code not execute correctly

<apex:outputpanel rendered="{! RenderIt}" id="abc">

the variables in the getRenderIt method change to null for somehow

Cheers


Message Edited by Feng on 11-06-2008 09:27 PM
XactiumBenXactiumBen
I had similar problems using rendered on a pageBlockSectionItem - I was generating a pdf so I just thought it had something to do with that.

For some reason I could use rendered="{!value != 'text'}"  but I couldn't use rendered="{!value == 'text'}".  I had to put the rendered attribute on each of my tags within the pageBlockSectionItem.  Are these two problems related?