Salesforce

Salesforce

How to check whether a list is empty or not in Visualforce page in Salesforce?

Sample Code:         <apex:outputPanel style="visibility:{! IF(ISNULL(PGList), 'hidden', 'visible') }">            <apex:outputText styleClass="bld" value="Public Group(s) :"/><br/>            <apex:pageBlockTable value="{!PGList}" var="PG">                <apex:column value="{!PG.Name}"/>            </apex:pageBlockTable>          </apex:outputPanel> here PGList is a list variable.

Salesforce

How to get the currency symbol in Visualforce page?

Use <apex:outputField/> to show the currency symbol, instead of using <apex:outputText/>. Sample Code: Visualforce page: <apex:page controller="Sample">    <apex:pageblock >        <apex:pageBlockTable value="{!OpptyList}" var="O">            <apex:column value="{!O.Name}"/>            <apex:column >                <apex:outputField value="{!O.Amount}"/>            </apex:column>        </apex:pageBlockTable>    ....