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
5
votes
1answer
1k views

reRender checkboxes problem

I have a menu (screen below) where the two section are refreshed using rerender. Depending to main object the sections are refreshed. The input checkboxes checked for the 1st main object are deleted ...
0
votes
1answer
267 views

Rendered in Tabpanel

I am getting an error like PDF generation failed for render in a tab panel. I need to do conditionally show the tab panel. Can some suggest a way out. Please find the snippet from my page here. <...
1
vote
2answers
198 views

Do not Show Image while Printing?

I have a Visualforce Page( Header with Logo-Image + Content) which is rendered as Pdf. This Vf page will be Emailed via Custom Controller Scenerio : When Email is Forwarded I want to Have Header(...
2
votes
2answers
432 views

How can I get my VisualForce Dashboards to Display Properly?

Looking through the VisualForce Developer's Guider, there is information on how to create a dashboard with VisualForce. I have no problem adding a VisualForce component or selecting the VF Page as ...
0
votes
2answers
592 views

PDF rendering Issue when Break Tag Is Used

I am getting this Issues in Vf Page when rendered as PDF "To" is Taking Spaces This is my HTML Tag <b>To,</b><br/> <b>ABC XYZ Ltd</b> when I Use the <br/> ...
3
votes
2answers
2k views

Render pageBlockSection based on RecordType

I am trying to build a custom New Case page, but am having issues getting sections to load based on the Record Type. <apex:outputField label="Record Type: " value="{!Case.RecordTypeId}"/> <...
0
votes
1answer
1k views

How to display 1 out of 2 possible fields values in same column : visual force

I have a column that needs to display date if there is no condition else display a combination of text+date if a criteria is met. I have to append a text Week Of to a date field if a custom field ...
1
vote
2answers
598 views

Appending text to Date field-Visualforce

I have to append a text PUNS to a date field (weird customer requirement!) if a custom field "Material Group" material_group__c in Object Order Line has certain values A, AB, C.. Since changing this ...
1
vote
2answers
3k views

How to restrict a column to display value if value exists

I have a pageblocktable that is inside pageblocksection. The pageblocktable has many columns. I want 1 of the columns to appear only if it exist. Following is my code... <apex:...
2
votes
1answer
12k views

rendered= expressions and use of the ! operator

I have an apex element which relies on the output of two Boolean methods to be rendered. At the moment, both methods are evaluating to true, yet the apex element is not rendering. If I reverse one of ...
2
votes
0answers
629 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 ...
0
votes
2answers
683 views

Catch state of custom check box field in Apex

I have a custom object MyObject__c I've added a custom field which is of type check box. one__c If a system admin ticks this checkbox on the object in the Salesforce UI, I want an apex element to ...
0
votes
1answer
5k views

Assign rendered value using javascript [duplicate]

Folks, below is my code, <apex:inputtext value="{Account.Name}" rendered="True"/> <apex:commandbutton> am not using controller here, so i want to change the value to rendered="False" ...
0
votes
2answers
2k views

rendering the table data through apex code

I am trying to fetch the custom object data into page block table with below code. I am getting the table as expected but my need is not to get the data when page is loaded and should come true only ...
1
vote
3answers
455 views

Visualforce Email Template rendering false email not sent

I have a visualforce email template. I use a visualforce component in it and an apex controller to display some data in the email. Everything is fine till here. Now, I want to render some part of ...
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 ...
1
vote
1answer
971 views

Rerender/rendered interaction in Visualforce

I have a Visualforce component with three fields- a dropdown of fields on a Salesforce object, a dropdown of options which depends upon the fieldType, and an input field which should not appear for ...
1
vote
1answer
44 views

render Account page element based on Account team or User record field

Trying to return true for renderELEMENT based on the user being either on the AccountTeam OR having a field checked on their user record. Able to produce based on just either part, but Not able to ...
2
votes
2answers
2k views

Hide and show pageblock section

i created a visualforce page.here is small snippet from that <apex:form id="form"> <apex:outputPanel id="flowPanel"> <apex:pageBlock title="Dynamic Flow" id="pageblock" > <apex:...
3
votes
1answer
464 views

Complement result from function in rendered attribute

So in my rendered attribute I am calling a getter method that returns a boolean. However I want to set rendered to the opposite of what it returns because it is used to render one component or another....
3
votes
1answer
2k views

give function to rendered attribute

I have a visualforce page that uses various components to try to print data from a list of custom objects. The idea is that it will display a list of types of relationships and then if clicked it will ...
1
vote
1answer
404 views

Which elements get rerendered and which can't be

i previously asked a question reRender is not working .i get a good reply of that .again i am trying to rerender a pageBlock and its not getting rerendered.i want to know which elements get rerendered ...
1
vote
1answer
1k 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
2answers
729 views

selectOption Required only when Rendered

I have a vf page with radiobuttons. This is rendered only when a condition satisfied. The radiobuttons need to be mandatory only when it is rendered. But the problem is even if the radio options are ...
2
votes
2answers
1k views

Render columns in page block table based on method

I have a pageblock table with 2 columns.. Interests(custom field) and another column - just a static text that will be rendered based on some condition from a method. <apex:pageBlockTable value="...
3
votes
3answers
859 views

Need to hide the column in my pdf?

I have taken a vf page and i that i have to show the related list i have used the below code in my vf page to show this related list in my pdf. ! i got but action column is there also i want to hide ...
5
votes
1answer
6k views

Adding a border to a visualforce page rendered as a PDF

I am trying to make a visualforce page with a border that renders as a PDF. Currently, there are 2 sets of tables within the visualforce page, both of which can have variable sizes depending on the ...
3
votes
2answers
3k views

Passing multiple methods into Apex 'rendered' attribute

Can I pass a second method into the rendered attribute of the following apex element? <apex:outputText rendered="{!(firstMethod == true)}"> <img class="refresh_btn" ...
1
vote
2answers
1k views

Show the message in the same page with out going to the next page?

I am getting the list from the controller : <apex:outputPanel rendered="{!NOT(ISBLANK(quo))}"> <apex:outputText rendered="{!quo.size>999 }" value="Refine search Records ...
4
votes
2answers
5k views

Custom Buttons conditional display

Is there a way to conditionally control the display of custom buttons? To be more precise, let's say I have a button which should be visible only if Field1==X. If the button is added to a page layout, ...
3
votes
1answer
3k views

Change color theme of visualforce page

Good evening everyone. I would like to know if it is possible to change a visualforce page color the same way we choose a color for each object. At the moment, I have this VF page that can be either ...
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 ...
5
votes
2answers
17k 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
1k views

Visibility of pageblocksection on visualforce page based on profile and status of record

I need to control the visibility of multiple pageblocksections based on user's profile and status of the record.Currently I am using rendered attribute on pageblocksection and adding conditions like ...
6
votes
1answer
2k views

Visualforce rendered with jQuery

Another problem has come uppon me. I have a button which shows a form with a list of inputFields with a map as a value. Since I have to populate the Keys before I show the form, I was giving me an ...
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 ...
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 ...
7
votes
2answers
22k views

Multiple conditions on rendered attribute

I need to display text based on record type & has teammember.But it displays both messages regardless of record type.Below is the part of my visualforce page. <apex:outputLabel style="color:...
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 ...
2
votes
1answer
3k views

REndering Pageblock table based on condition

Rendering Page Block table based on condition I have 2 pageblocktables. Pageblocktable1 renders if List contains value. Pageblocktable2 renders if List doent contains value. trying out this None of ...
0
votes
2answers
2k views

Render button based on condition

I want to render/enable a command button based on a rollupsummary field value. If a rollupsummary field evalues to 0 enable it else keep it disabled. Following is the code i am trying to achieve ...
5
votes
1answer
5k views

How to prevent rendering of a specific item in the <apex:repeat> loop?

I have the following code: <ul data-role="listview" data-filter="false"> <apex:repeat value="{!Proposals}" var="item"> <li> <a href="{!$Page....

1 2
3