Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rendered]

rendered is an attribute in Visualforce Components used to determine whether the Component should be visible in Visualforce Page or not by passing true or false.

30
votes
2answers
36k views

Is it possible to test list size from a VisualForce page?

Consider a simple example of a VF page that shows an account, with a pageBlockTable to display contacts on the account. But if there are no contacts for the accounts, instead of an empty table we ...
3
votes
1answer
8k views

Conditional Rendering inside Visualforce pages

I have an overwritten edit page for my custom object, which have different record types with different fields. The simplified desktop version of this VF page looks like this: <apex:page ...
5
votes
2answers
16k views

Using an inline IF statement to format a field value in VisualForce page

I'm trying to do some conditional formatting for the Opportunity Amount field on a VisualForce page that just displays the currently set amount. There is a chance that the amount can be negative (due ...
3
votes
1answer
723 views

Password protected Visualforce Page rendered as PDF

Is it possible that a Visualforce page rendered as pdf can be password protected? I am using Messaging.SingleEmailMessage to send mail with attachment, but I need the attachment password protected.
3
votes
2answers
3k views

Rerender pageblock on change of picklist

I am working with with picklist. Here I have to show a pageblocksection on change picklist but when I change the picklist it rerenders all the page and I am able to see pageblocksection but my ...
7
votes
2answers
13k views

Rendering section if checkbox is unchecked

Is it possible to render a section if checkbox is unchecked. I tried this. <apex:pageBlockSection columns="1" id="Test" > <apex:inputcheckbox value="{!test.Same_Address__c}" label="Same ...
8
votes
4answers
27k views

Rendering Output Panel if List is not null

I want to render an outputpanel if list is not null. <apex:outputPanel id="opformofauth" style="width:100%" rendered="{!lstPersonWrapper != null}"> .... </apex:outputpanel> This is not ...
2
votes
0answers
28 views

Render based on TemplateId [duplicate]

I have a requirement to show an apex page message "XX YY" if the selected template id to email is "Update Status". (This message needs to be displayed when they make the selection not when they click ...
1
vote
2answers
544 views

Check List of List size in rendered

I have a List of List of account declared in controller like this: public List<List<Account>> listofListOfAccount {get; set;} Now I want to determine size of 1st list item in the List of ...
4
votes
1answer
1k views

inlineEditSupport not working for components which are not rendered when page is loaded

I have a page with fields sorted out in a couple of pageBlocks. Some blocks start off hiden (rendered=false) and are only rendered if the user click some button. The fields use inlineEditSupport with ...
3
votes
1answer
700 views

showOnEdit within commandButton not working when PageBlock section starts with rendered=false

On my visualforce page I have a pageblocksection that starts off hidden, this pageblock is shown when the user selects a value from a picklist. This feature works, but breaks the 'showOnEdit' ...
2
votes
0answers
566 views

Rendered not working translated picklist value radio buttons

Im trying to translate visualforce page. I have used custom labels to built the page. the page is translated good. For picklist values I used the below code, the picklist values are also translated ...
1
vote
1answer
842 views

reRender is not working

i write a simple visualforce page <apex:page controller="Sample1"> <!-- Begin Default Content REMOVE THIS --> <h1>Congratulations</h1> This is your new Page <apex:...
1
vote
1answer
383 views

Displaying fields based on picklist (apex:selectOption)

I've been spending a lot more time than I thought I would trying to get this to work. On my VisualForce page I have a pick list that depending on the value will display or hide additional fields. I ...
0
votes
0answers
224 views

Rendered is not working

In my code, I have 2 pageblockTable with 2 values(apex). They are displaying data in 2 different tables. First pageblockTable displays the data based on search button after giving input. Second ...