function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vino2vijayvino2vijay 

In pageBlockButtons, <apex:facet> only works with top set of buttons

Its works only top set of buttons :( 

any help .. Thanks in advance .........

 

<apex:pageBlockButtons >
<apex:actionStatus id="processStatus">
<apex:facet name="start">
<apex:outputPanel >
<img src="/img/loading.gif" alt="Loading graphic" />
<apex:commandButton value="Processing..." status="processStatus" disabled="true" />
</apex:outputPanel>
</apex:facet>
<apex:facet name="stop">
<apex:outputPanel >
<apex:commandButton value="Save & Continue" action="{!doSave}" reRender="pnlfullPage" status="processStatus" />
<apex:commandButton value="Previous" action="{!getdetails}" rendered="{!if(PreviousPage,true,false)}"/>
<apex:commandButton value="Cancel" onclick="return confirmCancel()" action="{!doCancel}" />
</apex:outputPanel>
</apex:facet>
</apex:actionStatus>
</apex:pageBlockButtons>

 

 

BharathimohanBharathimohan

Hi,

 

Can you please describe your issue with more details.

 

 

Regards,

Bharathi
Salesforce For All

 

 

vino2vijayvino2vijay

Hi 

actually i have using  action status tag for progressing text showing on pageblockbuttons . 

Basically once pageblockbuttons has been rendered it will be showing 2 set of buttons rite .. the actionstatus tag functioanlity working for only one set of buttons .. i mean top of buttons .... 

 

 

 

 


Bharathi Mohan wrote:

Hi,

 

Can you please describe your issue with more details.

 

 

Regards,

Bharathi
Salesforce For All

 

 


 

vino2vijayvino2vijay

any one any suggestion ... please let me know .............. 

BharathimohanBharathimohan

Hi Vino,

 

I tried your code, and observed that loading status shows only on the top of pageBlockButtons not below.

Sorry, i could not find anyway of doing it. Also this requirement is something very new to me and never tried it before.

Why dont you try to show the Loading status in the Middle of Pageblock buttons, where it has rows of data like the standard salesforce behavior? as below which i wrote it for you.

 

<apex:page standardController="Contact" recordSetVar="Contacts" >

<apex:form >

<apex:pageBlock >

    <apex:pageBlockbuttons >

        <apex:commandButton value="New Contact" reRender="theTable" status="LoadDetail" />

        <apex:commandButton value="Add to Campaign"/>

        <apex:commandButton value="Invite to Connect"/>

    </apex:pageBlockbuttons>

    <apex:actionStatus id="LoadDetail">

        <apex:facet name="start">

        <apex:outputPanel style="align:center">

        <center>

            <br/><br/><br/><br/>           

            <apex:image value="/img/loading32.gif" style="height: 15px;"/>&nbsp;&nbsp;

            <apex:outputText >Loading..</apex:outputText>

            <br/><br/><br/><br/><br/><br/><br/><br/>

        </center>           

        </apex:outputPanel>

        </apex:facet>

        <apex:facet name="stop">

        <apex:outputPanel >              

        <apex:pageBlockTable value="{!Contacts}" var="contact" id="theTable" width="100%" >               

            <apex:column headerValue="Title" value="{!contact.Title}"/>

            <apex:column headerValue="Phone" value="{!contact.Phone}"/>

            <apex:column headerValue="Email" value="{!contact.eMail}"/>

        </apex:pageBlockTable>       

        </apex:outputPanel>                                                

        </apex:facet>

    </apex:actionStatus>

    </apex:pageBlock>

</apex:form>

</apex:page>

 

 

Regards,

Bharathi
Salesforce For All