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.

Filter by
Sorted by
Tagged with
31
votes
2answers
41k 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 ...
3
votes
2answers
4k 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 ...
3
votes
1answer
954 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.
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
29k 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
1k 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
741 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
618 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
979 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
597 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
331 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 ...