• sham_2
  • NEWBIE
  • 25 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
We had a nice pageBlockTable like so:
 
    <apex:pageBlockTable value="{!RecordView}" var="record" id="record">
    <apex:column headerValue="Name" value="{!record.RecordName}"/>
    <apex:column headerValue="Pages" value="{!record.Pages}"/>
    </apex:pageBlockTable> 
 
And it worked great in Firefox, but failed in IE. The problem was if Pages was ever null the table rendered without a line under that cell. So the table looked very strange. The question, how to get a white space into the value instead of nothing?
 
We changed it to:
    <apex:pageBlockTable value="{!RecordView}" var="record" id="record">
    <apex:column headerValue="Name">&nbsp;{!record.RecordName}</apex:column>
    <apex:column headerValue="Pages">&nbsp;{!record.Pages}</apex:column>
    </apex:pageBlockTable>  
 
Maybe we could have modified the Controller, however we fixed it in the page, it works, so I thought I'd share. Please comment if you have other solutions, or thoughts, or...well...comments.
 
Thanks,
Caleb

I don't understand why this code won't work.  I just want a comments box to appear if you select that the customer refused the survey...

 


<apex:actionRegion >
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Customer refused survey?" for="refused"/>
                    <apex:InputField value="{!Post_Install_Survey__c.Refused__c}" id="refused" required="true">
                    <apex:actionSupport event="onChange" reRender="rfcomments"/>
                    </apex:InputField>
                </apex:pageBlockSectionItem>
                </apex:actionRegion>
                <apex:InputField value="{!Post_Install_Survey__c.Services__c}"/>
                <apex:pageblockSectionItem id="rfcomments">
                <apex:InputField value="{!Post_Install_Survey__c.Refused_Comments__c}" rendered="{!Post_Install_Survey__c.Refused__c == 'Yes'}"/>
                </apex:pageblockSectionItem>
We had a nice pageBlockTable like so:
 
    <apex:pageBlockTable value="{!RecordView}" var="record" id="record">
    <apex:column headerValue="Name" value="{!record.RecordName}"/>
    <apex:column headerValue="Pages" value="{!record.Pages}"/>
    </apex:pageBlockTable> 
 
And it worked great in Firefox, but failed in IE. The problem was if Pages was ever null the table rendered without a line under that cell. So the table looked very strange. The question, how to get a white space into the value instead of nothing?
 
We changed it to:
    <apex:pageBlockTable value="{!RecordView}" var="record" id="record">
    <apex:column headerValue="Name">&nbsp;{!record.RecordName}</apex:column>
    <apex:column headerValue="Pages">&nbsp;{!record.Pages}</apex:column>
    </apex:pageBlockTable>  
 
Maybe we could have modified the Controller, however we fixed it in the page, it works, so I thought I'd share. Please comment if you have other solutions, or thoughts, or...well...comments.
 
Thanks,
Caleb